feat: 重汽国标外标增加备注字段
This commit is contained in:
@@ -181,3 +181,17 @@ update sys_depart set es_select_flag = 1 where parent_id = '1005000000';
|
|||||||
-- 2024-07-10 征求意见截止时间
|
-- 2024-07-10 征求意见截止时间
|
||||||
ALTER TABLE `process_es_revision`
|
ALTER TABLE `process_es_revision`
|
||||||
ADD COLUMN `total_advice_deadline` datetime NULL COMMENT '征求意见总截至日期' AFTER `review_user`;
|
ADD COLUMN `total_advice_deadline` datetime NULL COMMENT '征求意见总截至日期' AFTER `review_user`;
|
||||||
|
|
||||||
|
-- 2024-08-02 新车型实施日期备注 在产车实施日期备注
|
||||||
|
ALTER TABLE `laws_overseas_standard`
|
||||||
|
ADD COLUMN `new_model_implementation_date_remarks` varchar(500) NULL DEFAULT NULL COMMENT '新车型实施日期备注',
|
||||||
|
ADD COLUMN `on_the_production_date_remarks` varchar(500) NULL DEFAULT NULL COMMENT '在产车实施日期备注';
|
||||||
|
|
||||||
|
ALTER TABLE `laws_domestic_standard`
|
||||||
|
ADD COLUMN `new_model_implementation_date_remarks` varchar(500) NULL DEFAULT NULL COMMENT '新车型实施日期备注',
|
||||||
|
ADD COLUMN `on_the_production_date_remarks` varchar(500) NULL DEFAULT NULL COMMENT '在产车实施日期备注';
|
||||||
|
|
||||||
|
INSERT INTO `laws_tag` (`id`, `table_name`, `db_field_name`, `db_field_en_name`, `db_field_txt`, `order_num`, `db_field_name_old`, `db_is_key`, `db_is_null`, `db_type`, `db_length`, `db_point_length`, `db_default_val`, `dict_field`, `dict_table`, `dict_text`, `field_show_type`, `field_href`, `field_length`, `field_valid_type`, `field_must_input`, `field_extend_json`, `field_default_value`, `is_show_form_create`, `is_query`, `is_show_form`, `is_show_list`, `is_read_only`, `query_mode`, `main_table`, `main_field`, `update_by`, `update_time`, `create_time`, `create_by`, `converter`, `query_def_val`, `query_dict_text`, `query_dict_field`, `query_dict_table`, `query_show_type`, `query_config_flag`, `query_valid_type`, `query_must_input`, `sort_flag`, `show_area`, `is_show_laws_list`, `is_show_search`, `del_flag`, `is_model`, `dict_id`, `home_search_context_order`, `home_search_file_order`, `dict_field_search`, `dict_table_search`, `dict_text_search`, `usable_range`) VALUES ('1818916543200575482', 'laws_overseas_standard', 'new_model_implementation_date_remarks', 'New model implementation date Remarks', '新车型实施日期备注', 13, 'new_model_implementation_date_remarks', 0, 1, 'String', 500, NULL, NULL, NULL, NULL, NULL, '5', NULL, NULL, NULL, '0', NULL, NULL, 1, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, '2024-08-01 15:47:52', 'ldq1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '1694630597254553601', NULL, 0, 0, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||||
|
INSERT INTO `laws_tag` (`id`, `table_name`, `db_field_name`, `db_field_en_name`, `db_field_txt`, `order_num`, `db_field_name_old`, `db_is_key`, `db_is_null`, `db_type`, `db_length`, `db_point_length`, `db_default_val`, `dict_field`, `dict_table`, `dict_text`, `field_show_type`, `field_href`, `field_length`, `field_valid_type`, `field_must_input`, `field_extend_json`, `field_default_value`, `is_show_form_create`, `is_query`, `is_show_form`, `is_show_list`, `is_read_only`, `query_mode`, `main_table`, `main_field`, `update_by`, `update_time`, `create_time`, `create_by`, `converter`, `query_def_val`, `query_dict_text`, `query_dict_field`, `query_dict_table`, `query_show_type`, `query_config_flag`, `query_valid_type`, `query_must_input`, `sort_flag`, `show_area`, `is_show_laws_list`, `is_show_search`, `del_flag`, `is_model`, `dict_id`, `home_search_context_order`, `home_search_file_order`, `dict_field_search`, `dict_table_search`, `dict_text_search`, `usable_range`) VALUES ('1818916543200575489', 'laws_domestic_standard', 'new_model_implementation_date_remarks', 'New model implementation date Remarks', '新车型实施日期备注', 12, 'new_model_implementation_date_remarks', 0, 1, 'String', 500, NULL, NULL, NULL, NULL, NULL, '5', NULL, NULL, NULL, '0', NULL, NULL, 1, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, '2024-08-01 15:47:52', 'ldq1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '1499657602378825729', NULL, 0, 0, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||||
|
INSERT INTO `laws_tag` (`id`, `table_name`, `db_field_name`, `db_field_en_name`, `db_field_txt`, `order_num`, `db_field_name_old`, `db_is_key`, `db_is_null`, `db_type`, `db_length`, `db_point_length`, `db_default_val`, `dict_field`, `dict_table`, `dict_text`, `field_show_type`, `field_href`, `field_length`, `field_valid_type`, `field_must_input`, `field_extend_json`, `field_default_value`, `is_show_form_create`, `is_query`, `is_show_form`, `is_show_list`, `is_read_only`, `query_mode`, `main_table`, `main_field`, `update_by`, `update_time`, `create_time`, `create_by`, `converter`, `query_def_val`, `query_dict_text`, `query_dict_field`, `query_dict_table`, `query_show_type`, `query_config_flag`, `query_valid_type`, `query_must_input`, `sort_flag`, `show_area`, `is_show_laws_list`, `is_show_search`, `del_flag`, `is_model`, `dict_id`, `home_search_context_order`, `home_search_file_order`, `dict_field_search`, `dict_table_search`, `dict_text_search`, `usable_range`) VALUES ('1818916929537916923', 'laws_overseas_standard', 'on_the_production_date_remarks', 'Remarks on date of implementation in production ve', '在产车实施日期备注', 13, 'on_the_production_date_remarks', 0, 1, 'String', 500, NULL, NULL, NULL, NULL, NULL, '5', NULL, NULL, NULL, '0', NULL, NULL, 1, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, '2024-08-01 15:49:25', 'ldq1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '1694630597254553601', NULL, 0, 0, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||||
|
INSERT INTO `laws_tag` (`id`, `table_name`, `db_field_name`, `db_field_en_name`, `db_field_txt`, `order_num`, `db_field_name_old`, `db_is_key`, `db_is_null`, `db_type`, `db_length`, `db_point_length`, `db_default_val`, `dict_field`, `dict_table`, `dict_text`, `field_show_type`, `field_href`, `field_length`, `field_valid_type`, `field_must_input`, `field_extend_json`, `field_default_value`, `is_show_form_create`, `is_query`, `is_show_form`, `is_show_list`, `is_read_only`, `query_mode`, `main_table`, `main_field`, `update_by`, `update_time`, `create_time`, `create_by`, `converter`, `query_def_val`, `query_dict_text`, `query_dict_field`, `query_dict_table`, `query_show_type`, `query_config_flag`, `query_valid_type`, `query_must_input`, `sort_flag`, `show_area`, `is_show_laws_list`, `is_show_search`, `del_flag`, `is_model`, `dict_id`, `home_search_context_order`, `home_search_file_order`, `dict_field_search`, `dict_table_search`, `dict_text_search`, `usable_range`) VALUES ('1818916929537916929', 'laws_domestic_standard', 'on_the_production_date_remarks', 'Remarks on date of implementation in production ve', '在产车实施日期备注', 12, 'on_the_production_date_remarks', 0, 1, 'String', 500, NULL, NULL, NULL, NULL, NULL, '5', NULL, NULL, NULL, '0', NULL, NULL, 1, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, '2024-08-01 15:49:25', 'ldq1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '1499657602378825729', NULL, 0, 0, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||||
|
|||||||
+6
-3
@@ -1,8 +1,5 @@
|
|||||||
package com.jero.modules.laws.localTool.entity;
|
package com.jero.modules.laws.localTool.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.jero.common.aspect.annotation.Dict;
|
import com.jero.common.aspect.annotation.Dict;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
@@ -60,6 +57,12 @@ public class StandardEarlyWarning {
|
|||||||
@Excel(name = "在产车实施日期", width = 15)
|
@Excel(name = "在产车实施日期", width = 15)
|
||||||
@ApiModelProperty(value = "在产车实施日期")
|
@ApiModelProperty(value = "在产车实施日期")
|
||||||
private java.lang.String onTheProductionDate;
|
private java.lang.String onTheProductionDate;
|
||||||
|
/**在产车实施日期备注*/
|
||||||
|
@ApiModelProperty(value = "在产车实施日期备注")
|
||||||
|
private java.lang.String onTheProductionDateRemarks;
|
||||||
|
/**新车型实施日期备注*/
|
||||||
|
@ApiModelProperty(value = "新车型实施日期备注")
|
||||||
|
private java.lang.String newModelImplementationDateRemarks;
|
||||||
/**新车型实施日期*/
|
/**新车型实施日期*/
|
||||||
@Excel(name = "新车型实施日期", width = 15)
|
@Excel(name = "新车型实施日期", width = 15)
|
||||||
@ApiModelProperty(value = "新车型实施日期")
|
@ApiModelProperty(value = "新车型实施日期")
|
||||||
|
|||||||
+10
-2
@@ -10,7 +10,9 @@
|
|||||||
dataInfo.standard_name,
|
dataInfo.standard_name,
|
||||||
dataInfo.responsible_department,
|
dataInfo.responsible_department,
|
||||||
dataInfo.new_model_implementation_date,
|
dataInfo.new_model_implementation_date,
|
||||||
|
dataInfo.new_model_implementation_date_remarks,
|
||||||
dataInfo.on_the_production_date,
|
dataInfo.on_the_production_date,
|
||||||
|
dataInfo.on_the_production_date_remarks,
|
||||||
dataInfo.implementation_date
|
dataInfo.implementation_date
|
||||||
FROM
|
FROM
|
||||||
(SELECT DISTINCT
|
(SELECT DISTINCT
|
||||||
@@ -33,6 +35,8 @@
|
|||||||
<if test="param.onTheProductionDate == null or param.onTheProductionDate == ''">
|
<if test="param.onTheProductionDate == null or param.onTheProductionDate == ''">
|
||||||
standard.on_the_production_date,
|
standard.on_the_production_date,
|
||||||
</if>
|
</if>
|
||||||
|
standard.new_model_implementation_date_remarks,
|
||||||
|
standard.on_the_production_date_remarks,
|
||||||
standard.implementation_date
|
standard.implementation_date
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
@@ -44,7 +48,9 @@
|
|||||||
lds.responsible_department,
|
lds.responsible_department,
|
||||||
lds.on_the_production_date,
|
lds.on_the_production_date,
|
||||||
lds.new_model_implementation_date,
|
lds.new_model_implementation_date,
|
||||||
lds.implementation_date
|
lds.implementation_date,
|
||||||
|
lds.on_the_production_date_remarks,
|
||||||
|
lds.new_model_implementation_date_remarks
|
||||||
FROM
|
FROM
|
||||||
laws_domestic_standard lds
|
laws_domestic_standard lds
|
||||||
WHERE
|
WHERE
|
||||||
@@ -57,7 +63,9 @@
|
|||||||
los.responsible_department,
|
los.responsible_department,
|
||||||
los.on_the_production_date,
|
los.on_the_production_date,
|
||||||
los.new_model_implementation_date,
|
los.new_model_implementation_date,
|
||||||
los.implementation_date
|
los.implementation_date,
|
||||||
|
los.on_the_production_date_remarks,
|
||||||
|
los.new_model_implementation_date_remarks
|
||||||
FROM
|
FROM
|
||||||
laws_overseas_standard los
|
laws_overseas_standard los
|
||||||
WHERE
|
WHERE
|
||||||
|
|||||||
+32
@@ -81,6 +81,38 @@ public class LawsStandardEarlyWarningServiceImpl implements ILawsStandardEarlyWa
|
|||||||
standardEarlyWarning.setDayStrings(dayStrings);
|
standardEarlyWarning.setDayStrings(dayStrings);
|
||||||
Page<StandardEarlyWarning> page = new Page<>(pageNo, pageSize);
|
Page<StandardEarlyWarning> page = new Page<>(pageNo, pageSize);
|
||||||
IPage<StandardEarlyWarning> pageList = lawsStandardEarlyWarningMapper.pageList(page, standardEarlyWarning);
|
IPage<StandardEarlyWarning> pageList = lawsStandardEarlyWarningMapper.pageList(page, standardEarlyWarning);
|
||||||
|
// 需要处理新车型实施日期备注
|
||||||
|
if (CollectionUtils.isNotEmpty(pageList.getRecords())) {
|
||||||
|
pageList.getRecords().forEach(data -> {
|
||||||
|
try {
|
||||||
|
String newModelImplementationDate = data.getNewModelImplementationDate();
|
||||||
|
String newModelImplementationDateRemarks = data.getNewModelImplementationDateRemarks();
|
||||||
|
String onTheProductionDate = data.getOnTheProductionDate();
|
||||||
|
String onTheProductionDateRemarks = data.getOnTheProductionDateRemarks();
|
||||||
|
// 根据字符串匹配找到对应的备注后去除前面的日期
|
||||||
|
if (StringUtils.isNotBlank(newModelImplementationDateRemarks)) {
|
||||||
|
String[] split = newModelImplementationDateRemarks.split(",");
|
||||||
|
for (String s : split) {
|
||||||
|
if (s.contains(newModelImplementationDate)) {
|
||||||
|
data.setNewModelImplementationDateRemarks(
|
||||||
|
s.replace(newModelImplementationDate, ""));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(onTheProductionDateRemarks)) {
|
||||||
|
String[] split = onTheProductionDateRemarks.split(",");
|
||||||
|
for (String s : split) {
|
||||||
|
if (s.contains(onTheProductionDate)) {
|
||||||
|
data.setOnTheProductionDateRemarks(
|
||||||
|
s.replace(onTheProductionDate, ""));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("标准预警:处理备注异常", e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
return pageList;
|
return pageList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user