虚拟清单和法规清单导入(备注的字符限制由300改为1000)
SQL(法规清单和虚拟清单中备注字段长度由300改为1000)
This commit is contained in:
@@ -1114,4 +1114,12 @@ INSERT INTO `laws_weilai`.`sys_permission`(`id`, `parent_id`, `name`, `url`, `co
|
||||
|
||||
-- 上报库 添加项目目标市场 2022-09-19
|
||||
ALTER TABLE `laws_weilai`.`params_report`
|
||||
ADD COLUMN `target_market` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '目标市场' AFTER `title`;
|
||||
ADD COLUMN `target_market` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '目标市场' AFTER `title`;
|
||||
|
||||
-- 虚拟清单表修改备注字段长度由300改为1000 2022-09-23 未同步生产环境
|
||||
ALTER TABLE `laws_weilai`.`dummy_inventory_info`
|
||||
MODIFY COLUMN `remark` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `duty_territory`;
|
||||
|
||||
-- 法规清单表修改备注字段长度由300改为1000 2022-09-23 未同步生产环境
|
||||
ALTER TABLE `laws_weilai`.`project_laws_inventory`
|
||||
MODIFY COLUMN `remark` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `engineering_interface_person`;
|
||||
|
||||
+3
-3
@@ -1277,12 +1277,12 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
||||
}
|
||||
//备注 remark
|
||||
if(StringUtils.isNotBlank(remark)){
|
||||
if(remark.length() > 300){
|
||||
if(remark.length() > 1000){
|
||||
String message = "";
|
||||
if(CutEnum.CN.getValue().equals(dummyInventoryInfoEOTemp.getCut())){
|
||||
message = errorMsg + "备注不能超过300个字符, ";
|
||||
message = errorMsg + "备注不能超过1000个字符, ";
|
||||
}else{
|
||||
message = errorMsg + " Note The value cannot exceed 300 characters, ";
|
||||
message = errorMsg + " Note The value cannot exceed 1000 characters, ";
|
||||
}
|
||||
msgList.add(message);
|
||||
}
|
||||
|
||||
+9
-9
@@ -5199,12 +5199,12 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
}
|
||||
//备注 remark
|
||||
if(StringUtils.isNotBlank(remark)){
|
||||
if(remark.length() > 300){
|
||||
if(remark.length() > 1000){
|
||||
String message = "";
|
||||
if(CutEnum.CN.getValue().equals(projectLawsInventoryEOTemp.getCut())){
|
||||
message = errorMsg + "备注不能超过300个字符, ";
|
||||
message = errorMsg + "备注不能超过1000个字符, ";
|
||||
}else{
|
||||
message = errorMsg + " Note The value cannot exceed 300 characters, ";
|
||||
message = errorMsg + " Note The value cannot exceed 1000 characters, ";
|
||||
}
|
||||
msgList.add(message);
|
||||
}
|
||||
@@ -5517,12 +5517,12 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
}
|
||||
//备注 remark
|
||||
if(StringUtils.isNotBlank(remark)){
|
||||
if(remark.length() > 300){
|
||||
if(remark.length() > 1000){
|
||||
String message = "";
|
||||
if(CutEnum.CN.getValue().equals(projectLawsInventoryEOTemp.getCut())){
|
||||
message = errorMsg + "备注不能超过300个字符, ";
|
||||
message = errorMsg + "备注不能超过1000个字符, ";
|
||||
}else{
|
||||
message = errorMsg + " Note The value cannot exceed 300 characters, ";
|
||||
message = errorMsg + " Note The value cannot exceed 1000 characters, ";
|
||||
}
|
||||
msgList.add(message);
|
||||
}
|
||||
@@ -5824,12 +5824,12 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
// }
|
||||
// //备注 remark
|
||||
// if(StringUtils.isNotBlank(remark)){
|
||||
// if(remark.length() > 300){
|
||||
// if(remark.length() > 1000){
|
||||
// String message = "";
|
||||
// if(CutEnum.CN.getValue().equals(projectLawsInventoryEOTemp.getCut())){
|
||||
// message = errorMsg + "备注不能超过300个字符, ";
|
||||
// message = errorMsg + "备注不能超过1000个字符, ";
|
||||
// }else{
|
||||
// message = errorMsg + " Note The value cannot exceed 300 characters, ";
|
||||
// message = errorMsg + " Note The value cannot exceed 1000 characters, ";
|
||||
// }
|
||||
// msgList.add(message);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user