修改活体检查查询条件

This commit is contained in:
tangfutang 2020-07-29 10:53:56 +08:00
parent 8bade4e753
commit fc13af60a5

View File

@ -32,6 +32,7 @@ import com.base.util.MultipartDataUtil;
import com.base.util.ReturnMapUtil;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import apx.com.amarsoft.als.apzl.apply.contract.make.util.ContractMakeControllerUtil;
import apx.com.amarsoft.als.user.change.center.service.ApplyArchiveService;
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO;
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO_TEMP;
@ -455,13 +456,20 @@ public class ApplyArchiveServiceImpl implements ApplyArchiveService{
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
.readRequestParam(request, "UTF-8");
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
String SerialNo = fieldMap.get("serialno") == null ? "" : fieldMap.get("serialno").toString();
String sql = "SELECT serialno,whether FROM PRD_SPECIFIC_LIBRARY WHERE SerialNo='"+SerialNo+"' ";
String flowUnid = fieldMap.get("FLOWUNID") == null ? "" : fieldMap.get("FLOWUNID").toString();
String serialNo = fieldMap.get("serialNo") == null ? "" : fieldMap.get("serialNo").toString();
Map<String, String> flowParms = ContractMakeControllerUtil.getFlowParms(flowUnid);
if(flowParms == null){
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("fail").toString(), "没有查询到对应的流程实例!");
return ReturnMapUtil.getReturnMap();
}
String sql = "SELECT serialno,whether FROM PRD_SPECIFIC_LIBRARY WHERE productid='"+flowParms.get("ProductId")+"' ";
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(sql);
Map<String, Object> body = new HashMap<String, Object>();
if(dataList.size()>0){
for (Map<String, String> map : dataList) {
body.put("serialno", map.get("serialno")+"");
body.put("serialno", serialNo);
body.put("whether", map.get("whether")+"");
}
ReturnMapUtil.setReturnMap(body,RestfullConstant.baseProperty.get("success").toString(), "");