文档库-分阶段实施详情相关开发。
This commit is contained in:
@@ -223,3 +223,5 @@ INSERT INTO `laws_weilai`.`sys_dict` (`id`, `dict_name`, `dict_code`, `descripti
|
||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1628228171473039361', '1628227874969300994', '在产车', '34e90bd6a000471bbdcd0ff325898740', NULL, 1, 1, 'admin', '2023-02-22 11:00:22', NULL, NULL, 1, NULL, NULL, '0', 'Car in production');
|
||||
INSERT INTO `laws_weilai`.`sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`) VALUES ('1628228101830815745', '1628227874969300994', '新车型', '2148610ff06641849106321531656bfc', NULL, 2, 1, 'admin', '2023-02-22 11:00:05', 'admin', '2023-02-22 11:00:27', 1, NULL, NULL, '0', 'New car model');
|
||||
|
||||
-- 文档库-分阶段实施详情表-增加排序号字段 2023-02-23 未同步生产环境
|
||||
ALTER TABLE `phased_implementation_details` ADD COLUMN `order_num` int(10) NULL COMMENT '排序号' AFTER `remarks`;
|
||||
|
||||
+4
@@ -86,4 +86,8 @@ public class PhasedImplementationDetailsEO implements Serializable {
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
|
||||
/**排序号*/
|
||||
@Excel(name = "排序号", width = 15)
|
||||
@ApiModelProperty(value = "排序号")
|
||||
private Integer orderNum;
|
||||
}
|
||||
|
||||
+6
@@ -1737,6 +1737,9 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||
|
||||
String key = entry.getKey();
|
||||
if(StringUtils.equals(key,"phasedImplementationDetailsEOList")){
|
||||
continue;
|
||||
}
|
||||
Object value = entry.getValue();
|
||||
//es全文新增数据(数据转换)
|
||||
esFullText(cut, fieldList, categoryList, dictItemList, mapList, sbCn,sbEn, entry);
|
||||
@@ -6727,10 +6730,13 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
if(map.containsKey("phasedImplementationDetailsEOList")){
|
||||
PhasedImplementationDetailsEO phasedImplDetailsEO = null;
|
||||
JSONArray phasedImplDetailsEOJsonArr = JSONObject.parseArray(JSONObject.toJSONString(map.get("phasedImplementationDetailsEOList")));
|
||||
Integer orderNum = 1;
|
||||
for (Object phasedImplDetailsEOJson : phasedImplDetailsEOJsonArr) {
|
||||
phasedImplDetailsEO = JSONObject.parseObject(JSONObject.toJSONString(phasedImplDetailsEOJson),PhasedImplementationDetailsEO.class);
|
||||
phasedImplDetailsEO.setBussDocumentLibraryId(id);
|
||||
phasedImplDetailsEO.setOrderNum(orderNum);
|
||||
phasedImplDetailsEOList.add(phasedImplDetailsEO);
|
||||
orderNum ++;
|
||||
}
|
||||
|
||||
boolean insertPhasedBatchFlag = this.phasedImplementationDetailsEOService.insertBatch(phasedImplDetailsEOList);
|
||||
|
||||
Reference in New Issue
Block a user