Commit e7eec840 authored by suhuiguang's avatar suhuiguang

reafact(jg): 业务作废

1.作废按钮放出,通过页面提示校验进行约束
parent 60317ff1
......@@ -155,9 +155,10 @@ public class JgVehicleInformationController extends BaseController {
list.getRecords().forEach(x -> {
x.put("companyType", info.getCompany().getCompanyType());
x.put("regTypeDesc", RegTypeEnum.getNameByCode(String.valueOf(x.get("regType"))).orElse(RegTypeEnum.REGISTRATION_NEW.getName()));
x.put("canVoided", Optional.ofNullable(x.get("useRegistrationCode"))
.map(jgVehicleInformationServiceImpl::countUseTimesForInvalid)
.orElse(true));
// x.put("canVoided", Optional.ofNullable(x.get("useRegistrationCode"))
// .map(jgVehicleInformationServiceImpl::countUseTimesForInvalid)
// .orElse(true));
x.put("canVoided", true);
});
return ResponseHelper.buildResponse(list);
}
......
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