虚拟清单导入--输入框类型字符限制
This commit is contained in:
+44
-11
@@ -856,6 +856,13 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
|||||||
}
|
}
|
||||||
//编号
|
//编号
|
||||||
String serialNumber = dummyInventoryInfoEO.getSerialNumber();
|
String serialNumber = dummyInventoryInfoEO.getSerialNumber();
|
||||||
|
//子标题
|
||||||
|
String subtitle = dummyInventoryInfoEO.getSubtitle();
|
||||||
|
//wvtaId
|
||||||
|
String wvtaId = dummyInventoryInfoEO.getWvtaId();
|
||||||
|
//备注remark
|
||||||
|
String remark = dummyInventoryInfoEO.getRemark();
|
||||||
|
|
||||||
//认证级别
|
//认证级别
|
||||||
String attestationRank = dummyInventoryInfoEO.getAttestationRank();
|
String attestationRank = dummyInventoryInfoEO.getAttestationRank();
|
||||||
//责任领域
|
//责任领域
|
||||||
@@ -890,6 +897,43 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
|||||||
//编号(输入框必填)
|
//编号(输入框必填)
|
||||||
flag = must(dummyInventoryInfoEO, errorMsg, msgList, serialNumber, "编号", "serial number");
|
flag = must(dummyInventoryInfoEO, errorMsg, msgList, serialNumber, "编号", "serial number");
|
||||||
|
|
||||||
|
//子标题
|
||||||
|
if(StringUtils.isNotBlank(subtitle)){
|
||||||
|
if(subtitle.length() > 100){
|
||||||
|
String message = "";
|
||||||
|
if(CutEnum.CN.getValue().equals(dummyInventoryInfoEOTemp.getCut())){
|
||||||
|
message = errorMsg + "子标题不能超过100个字符";
|
||||||
|
}else{
|
||||||
|
message = errorMsg + " Subheadings cannot be checked more than 100 characters";
|
||||||
|
}
|
||||||
|
msgList.add(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//WVTA ID
|
||||||
|
if(StringUtils.isNotBlank(wvtaId)){
|
||||||
|
if(wvtaId.length() > 100){
|
||||||
|
String message = "";
|
||||||
|
if(CutEnum.CN.getValue().equals(dummyInventoryInfoEOTemp.getCut())){
|
||||||
|
message = errorMsg + "WVTA ID不能超过100个字符";
|
||||||
|
}else{
|
||||||
|
message = errorMsg + " The WVTA ID cannot contain more than 100 characters";
|
||||||
|
}
|
||||||
|
msgList.add(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//备注 remark
|
||||||
|
if(StringUtils.isNotBlank(remark)){
|
||||||
|
if(remark.length() > 300){
|
||||||
|
String message = "";
|
||||||
|
if(CutEnum.CN.getValue().equals(dummyInventoryInfoEOTemp.getCut())){
|
||||||
|
message = errorMsg + "备注不能超过300个字符";
|
||||||
|
}else{
|
||||||
|
message = errorMsg + " Note The value cannot exceed 300 characters";
|
||||||
|
}
|
||||||
|
msgList.add(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//实施类别(单选不必填)
|
//实施类别(单选不必填)
|
||||||
value = pullSingle(dictItemList, dummyInventoryInfoEO, errorMsg, implementType,msgList,"实施类别","implementation category","implement_type");
|
value = pullSingle(dictItemList, dummyInventoryInfoEO, errorMsg, implementType,msgList,"实施类别","implementation category","implement_type");
|
||||||
@@ -897,17 +941,6 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
|||||||
dummyInventoryInfoEO.setImplementType(value);
|
dummyInventoryInfoEO.setImplementType(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
//新车实施日期 xin1Che1Xing2Shi2Shi1Ri4Qi1
|
|
||||||
// flag = dateVerify(dummyInventoryInfoEO, errorMsg, xin1Che1Xing2Shi2Shi1Ri4Qi1,msgList,"新车实施日期","new car implementation date");
|
|
||||||
// if(flag){
|
|
||||||
// dummyInventoryInfoEO.setXin1Che1Xing2Shi2Shi1Ri4Qi1(xin1Che1Xing2Shi2Shi1Ri4Qi1);
|
|
||||||
// }
|
|
||||||
|
|
||||||
//在产车实施日期 implementTime
|
|
||||||
// flag = dateVerify(dummyInventoryInfoEO, errorMsg, implementTime,msgList,"在产车实施日期","on the production vehicle implementation date");
|
|
||||||
// if(flag){
|
|
||||||
// dummyInventoryInfoEO.setImplementTime(implementTime);
|
|
||||||
// }
|
|
||||||
//认证类型(单选不必填)
|
//认证类型(单选不必填)
|
||||||
value = pullSingle(dictItemList, dummyInventoryInfoEO, errorMsg, attestationType,msgList,"认证类型","certification type","attestation_type");
|
value = pullSingle(dictItemList, dummyInventoryInfoEO, errorMsg, attestationType,msgList,"认证类型","certification type","attestation_type");
|
||||||
if(StringUtils.isNotBlank(value)){
|
if(StringUtils.isNotBlank(value)){
|
||||||
|
|||||||
Reference in New Issue
Block a user