Commit a0c66122 authored by 张俊's avatar 张俊

添加写入字段

parent 562b1ef6
......@@ -76,47 +76,54 @@ public class DeptInfoUpdateService {
// 单位地址
String dom = StringUtils.hasText(uniInfom.getDom()) ? uniInfom.getDom() : "";
dwxxbgImp.setString(4, dom);
// 市监局发起时间
Date estDate = uniInfom.getEstDate();
if (estDate != null) {
dwxxbgImp.setDate(5, new java.sql.Date(estDate.getTime()));
} else {
dwxxbgImp.setString(5, "");
}
// 法人代表姓名
String lerep = StringUtils.hasText(uniInfom.getLerep()) ? uniInfom.getLerep() : "";
dwxxbgImp.setString(5, lerep);
dwxxbgImp.setString(6, lerep);
// 法人证件类型
String cerType = StringUtils.hasText(uniInfom.getCerType()) ? uniInfom.getCerType() : "";
dwxxbgImp.setString(6, cerType);
dwxxbgImp.setString(7, cerType);
// 法人证件号码
String cerNo = StringUtils.hasText(uniInfom.getCerNo()) ? uniInfom.getCerNo() : "";
dwxxbgImp.setString(7, cerNo);
dwxxbgImp.setString(8, cerNo);
// 经办人姓名
String operatorName = StringUtils.hasText(uniInfom.getOperatorName()) ? uniInfom.getOperatorName() : "";
dwxxbgImp.setString(8, operatorName);
dwxxbgImp.setString(9, operatorName);
// 经办人身份证号
String operatorCerNo = StringUtils.hasText(uniInfom.getOperatorCerNo()) ? uniInfom.getOperatorCerNo() : "";
dwxxbgImp.setString(9, operatorCerNo);
dwxxbgImp.setString(10, operatorCerNo);
// 经办人联系电话
String operatorPhone = StringUtils.hasText(uniInfom.getOperatorPhone()) ? uniInfom.getOperatorPhone() : "";
dwxxbgImp.setString(10, operatorPhone);
dwxxbgImp.setString(11, operatorPhone);
// 所属区域
String oplocdistrict = StringUtils.hasText(uniInfom.getOplocdistrict()) ? uniInfom.getOplocdistrict() : "";
dwxxbgImp.setString(11, oplocdistrict);
dwxxbgImp.setString(12, oplocdistrict);
// 单位性质
String unitNature = StringUtils.hasText(uniInfom.getUnitNature()) ? uniInfom.getUnitNature() : "";
dwxxbgImp.setString(12, unitNature);
dwxxbgImp.setString(13, unitNature);
// 经济类型
String economicType = StringUtils.hasText(uniInfom.getEconomicType()) ? uniInfom.getEconomicType() : "";
dwxxbgImp.setString(13, economicType);
dwxxbgImp.setString(14, economicType);
// 所属行业
String industryphy = StringUtils.hasText(uniInfom.getIndustryphy()) ? uniInfom.getIndustryphy() : "";
dwxxbgImp.setString(14, industryphy);
dwxxbgImp.setString(15, industryphy);
// 单位发薪日
String unitPayDay = StringUtils.hasText(uniInfom.getUnitPayDay()) ? uniInfom.getUnitPayDay() : "";
dwxxbgImp.setString(15, unitPayDay);
dwxxbgImp.setString(16, unitPayDay);
// 输出结果[第二个参数]
dwxxbgImp.registerOutParameter(16, OracleTypes.VARCHAR);
dwxxbgImp.registerOutParameter(17, OracleTypes.VARCHAR);
dwxxbgImp.registerOutParameter(18, OracleTypes.VARCHAR);
// 执行数据库查询操作
dwxxbgImp.execute();
// 获取出参
String errcode = dwxxbgImp.getString(16);
String errmsg = dwxxbgImp.getString(17);
String errcode = dwxxbgImp.getString(17);
String errmsg = dwxxbgImp.getString(18);
if (StringUtils.isEmpty(errcode)) {
log.info("busId:{} 执行结果 errcode:{},errmsg :{}", busId, errcode, errmsg);
} else {
......
......@@ -75,17 +75,24 @@ public class DeptLogoutService {
// 单位地址
String dom = StringUtils.hasText(uniInfom.getDom()) ? uniInfom.getDom() : "";
dwxhImp.setString(4, dom);
// 市监局发起时间
Date estDate = uniInfom.getEstDate();
if (estDate != null) {
dwxhImp.setDate(5, new java.sql.Date(estDate.getTime()));
} else {
dwxhImp.setString(5, "");
}
// 所属区域
String oplocdistrict = StringUtils.hasText(uniInfom.getOplocdistrict()) ? uniInfom.getOplocdistrict() : "";
dwxhImp.setString(5, oplocdistrict);
dwxhImp.setString(6, oplocdistrict);
// 输出结果[第二个参数]
dwxhImp.registerOutParameter(6, OracleTypes.VARCHAR);
dwxhImp.registerOutParameter(7, OracleTypes.VARCHAR);
dwxhImp.registerOutParameter(8, OracleTypes.VARCHAR);
// 执行数据库查询操作
dwxhImp.execute();
// 获取出参
String errcode = dwxhImp.getString(6);
String errmsg = dwxhImp.getString(7);
String errcode = dwxhImp.getString(7);
String errmsg = dwxhImp.getString(8);
if (StringUtils.isEmpty(errcode)) {
log.info("busId:{} 执行结果 errcode:{},errmsg :{}", busId, errcode, errmsg);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment