Commit d113b3c9 authored by hezhuozhi's avatar hezhuozhi

车用气瓶登记,保存并提交时,需对使用登记表(签章)进行必填检验

parent 7bba9680
package com.yeejoin.amos.boot.module.jg.biz.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
......@@ -207,8 +208,8 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
try {
if(SUBMIT_TYPE_FLOW.equals(submit)){
//校验登记表字段是否有值
String useRegistrationFormFile = map.getString("useRegistrationFormFile");
if(StringUtils.isEmpty(useRegistrationFormFile)){
JSONArray useRegistrationFormFile = map.getJSONArray("useRegistrationFormFile");
if(CollUtil.isEmpty(useRegistrationFormFile)){
throw new BadRequest("使用登记表(签章后)为空");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment