generated from dxfeng/secondev-chapanda-feishu
38 lines
1.3 KiB
Java
38 lines
1.3 KiB
Java
|
|
package com.engine.recruit.service.impl;
|
||
|
|
|
||
|
|
import com.engine.core.impl.Service;
|
||
|
|
import com.engine.recruit.exception.CustomizeRunTimeException;
|
||
|
|
import com.engine.recruit.service.RecruitPositionService;
|
||
|
|
import org.apache.commons.lang3.StringUtils;
|
||
|
|
import weaver.conn.RecordSet;
|
||
|
|
import weaver.general.Util;
|
||
|
|
|
||
|
|
import java.util.HashMap;
|
||
|
|
import java.util.Map;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @author:dxfeng
|
||
|
|
* @createTime: 2023/10/09
|
||
|
|
* @version: 1.0
|
||
|
|
*/
|
||
|
|
public class RecruitPositionServiceImpl extends Service implements RecruitPositionService {
|
||
|
|
/**
|
||
|
|
* 招聘职位建模表
|
||
|
|
*/
|
||
|
|
private static final String MODE_TABLE_NAME = "uf_jcl_zp_zpzw";
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public Map<String, Object> updatePostInfo(Map<String, Object> param) {
|
||
|
|
Map<String, Object> returnMap = new HashMap<>();
|
||
|
|
String zpzwfzr = Util.null2String(param.get("zpzwfzr"));
|
||
|
|
String zpxzr = Util.null2String(param.get("zpxzr"));
|
||
|
|
String ids = Util.null2String(param.get("ids"));
|
||
|
|
if (StringUtils.isBlank(ids)) {
|
||
|
|
throw new CustomizeRunTimeException("数据有误,请重试");
|
||
|
|
}
|
||
|
|
RecordSet rs = new RecordSet();
|
||
|
|
rs.executeUpdate(" update " + MODE_TABLE_NAME + " set zpzwfzr = ? ,zpxzr = ? where id in (" + ids + ")", zpzwfzr, zpxzr);
|
||
|
|
return returnMap;
|
||
|
|
}
|
||
|
|
}
|