|
|
|
@ -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");
|
|
|
|
|