Bläddra i källkod

企业认证非空校验

cuixq 3 år sedan
förälder
incheckning
4e99b4e91c

+ 4 - 1
tianhu-system/src/main/java/com/tianhu/system/companyAuth/controller/OwnAuthController.java

@@ -938,6 +938,9 @@ public class OwnAuthController extends BaseController {
         String scyId = CommonUtil.objToString(map.get("scyId"));
         //金额(元)
         String amount = CommonUtil.objToString(map.get("amount"));
+        if(CommonUtil.isEmpty(amount)) {
+            throw new Exception("打款金额不能为空!");
+        }
         if(!RegularUtil.isPositive(amount)){
             throw new Exception("请输入正确的金额!");
         }
@@ -1187,7 +1190,7 @@ public class OwnAuthController extends BaseController {
         String tittle = "【" +scyName+"】尊敬的用户,您好! 欢迎您来到招采云链医疗供应链金融平台,平台将提供:" +
                 "医疗招商、医疗集采、供应链金融等企业级服务,如果您再平台使用中遇到任何问题," +
                 "请再首页查看并拨打平台客服专线电话,我们将竭尽所能为您提供免费的咨询服务";
-        remoteSystemService.sendNotice(scyId,scyId,tittle,"01","00",null,"0",String.valueOf(sysUserCompanyRel.get(0).getSucrUserId()),null);
+        remoteSystemService.sendNotice(scyId,scyId,tittle,"01","00",null,"0",String.valueOf(sysUserCompanyRel.get(0).getSucrUserId()),null, null, null);
         // 刷新登录用户菜单和权限
         SysUser sysUser = loginUser.getSysUser();
         sysUser.setCompanyId(scyId);