Commit 5a374b1f authored by hezhuozhi's avatar hezhuozhi

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

parent 680ee3b7
......@@ -205,6 +205,13 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
@GlobalTransactional(rollbackFor = Exception.class)
public List<JgVehicleInformation> save(String submit, JSONObject map) {
try {
if(SUBMIT_TYPE_FLOW.equals(submit)){
//校验登记表字段是否有值
String useRegistrationFormFile = (String)map.get("useRegistrationFormFile");
if(StringUtils.isEmpty(useRegistrationFormFile)){
throw new BadRequest("使用登记(盖章后)为空");
}
}
ReginParams reginParams = JSONObject.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())) + "", ReginParams.class);
CompanyBo company = reginParams.getCompany();
......
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