VendorPunishApplicationService

ht
qijirenjian 2 months ago
parent 2aa3a940ff
commit 6450748001

@ -27,7 +27,7 @@ public class ReturnMesWLPS_SYService extends BaseBean {
// String url = (I18nContextUtilcus.getBean(Environment.class).getProperty("htmesoasync.A040WLPS")).trim();
String url = configProp.getA040WLPS();
try {
logger_d5127138.error(String.valueOf("开始调用ReturnMesWLPS_SYService接口"));
logger_d5127138.error(String.valueOf("开始调用ReturnMesWLPS_SYService接口 param" + param.toString()));
SI_OA_HTOAApproFlowSync_OUTServiceStub stub = new SI_OA_HTOAApproFlowSync_OUTServiceStub(url);
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);

@ -69,6 +69,7 @@ public class SY_WLPS_RETURNAction extends BaseBean implements Action, EsbServerl
String value = Util.null2String(aproperty[j].getValue());
map.put(name, value);
}
logger_1852f2d3.error( "map--" + map) ;
ResourceComInfo rsCom = I18nContextUtil.getBean(ResourceComInfo.class);
String fxzt = map.get("FXZT");
String zzpdjg = map.get("ZZPDJG");

@ -50,14 +50,18 @@ public class VendorPunishApplicationService {
res.setReturnData(resData);
if (workflowId == null || workflowId.equals("")) {
resData.setIsTat("E");
log.error("流程id为空!");
resData.setMessage("流程id为空");
return res;
}
String tablename = SecondUtil.getTableName(workflowId);
log.error("tablename= " + tablename);
log.error("requestId= " + requestId);
log.error("type= " + type);
if (requestId == null || requestId.equals("")) {
resData.setIsTat("E");
log.error("请求id为空!");
resData.setMessage("请求id为空");
return res;
}
@ -67,37 +71,47 @@ public class VendorPunishApplicationService {
return res;
}else{
if("1".equals(type)){//质量问题确认
log.error("质量问题确认!");
if (isAgree == null || isAgree.equals("")) {
resData.setIsTat("E");
log.error("供应商是否同意为空!");
resData.setMessage("供应商是否同意为空!");
return res;
}else if(!isAgree.equals("0")&&!isAgree.equals("1")){
resData.setIsTat("E");
log.error("供应商是否同意传错!");
resData.setMessage("供应商是否同意传错!");
return res;
}
if (supplierOpinion == null || supplierOpinion.equals("")) {
resData.setIsTat("E");
log.error("供应商厂商意见为空!");
resData.setMessage("供应商厂商意见为空!");
return res;
}
String sql = "update "+tablename+" set sfty='"+isAgree+"',gyscsyj='"+supplierOpinion+"' where requestId= '"+requestId+"'";
rs.executeSql(sql,poolname);
log.error("VendorPunishApplicationImpl--"+requestId+"更新成功");
log.error("VendorPunishApplicationImpl--sql1"+sql);
boolean b1 = rs.executeSql(sql, poolname);
log.error("VendorPunishApplicationImpl--"+requestId+"更新成功:b1="+b1);
}else if("2".equals(type)){//罚款金额确认
log.error("罚款金额确认!");
if (supplierOpinion == null || supplierOpinion.equals("")) {
resData.setIsTat("E");
log.error("供应商厂商意见为空!");
resData.setMessage("供应商厂商意见为空!");
return res;
}
if(bearMoney<=0){
resData.setIsTat("E");
log.error("愿意承担金额必须大于02");
resData.setMessage("愿意承担金额必须大于0");
return res;
}
String sql = "update "+tablename+" set gyscsfkyj='"+supplierOpinion+"',yycdje='"+bearMoney+"' where requestId= '"+requestId+"'";
rs.executeSql(sql,poolname);
log.error("VendorPunishApplicationImpl--"+requestId+"更新成功");
log.error("VendorPunishApplicationImpl--sql2"+sql);
boolean b1 = rs.executeSql(sql, poolname);
log.error("VendorPunishApplicationImpl--"+requestId+"更新成功:b2"+b1);
}else{
resData.setIsTat("E");

Loading…
Cancel
Save