担保人信息三个不能进入详情问题修改

This commit is contained in:
zhangjun 2020-07-20 15:02:26 +08:00
parent a8cd116bf5
commit 1c9a864551

View File

@ -46,9 +46,10 @@ public class bondsmanDoManage extends AbstractAweDoQueryManage {
throws Exception {
setParamMap(fieldMap);
String flowUnid = fieldMap.get("flowunid") == null ? "" : fieldMap.get("flowunid").toString();
String id = fieldMap.get("id") == null ? "" : fieldMap.get("id").toString();
String num = sqlca.getString("select count(1) AS num from lb_guarantee_unit_temp where FLOWUNID = '" + flowUnid + "'");
if (num != null && Integer.valueOf(num) > 2) {
if (num != null && Integer.valueOf(num) > 2 && id == null || "".equals(id)) {
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("fail").toString(), "担保人信息不能超过三个!!!");
return ReturnMapUtil.getReturnMap();
}