修改APP担保人信息为3个是提示报错问题修改
This commit is contained in:
parent
df42224d4c
commit
489b36176a
@ -45,12 +45,13 @@ public class bondsmanDoManage extends AbstractAweDoQueryManage {
|
||||
Transaction sqlca, JBOTransaction tx, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception {
|
||||
setParamMap(fieldMap);
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
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 && (id == null || "".equals(id))) {
|
||||
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("fail").toString(), "担保人信息不能超过三个!!!");
|
||||
ReturnMapUtil.setReturnMap(body,RestfullConstant.baseProperty.get("fail").toString(), "担保人信息不能超过三个!!!");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user