add: acs添加操作日志,lms优化冲床空满交换逻辑,添加入库天数显示
This commit is contained in:
@@ -122,10 +122,10 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
||||
resources.setPid(null);
|
||||
addSystemTypeDict(resources);
|
||||
}
|
||||
resources.setSub_count(0);
|
||||
|
||||
baseMapper.insert(resources);
|
||||
// 计算子节点数目
|
||||
resources.setSub_count(0);
|
||||
// 更新父节点菜单数目
|
||||
updateSubCnt(resources.getPid());
|
||||
updateRootSystemType(resources);
|
||||
|
||||
@@ -54,7 +54,7 @@ public class FabController {
|
||||
private ISchBaseVehiclematerialgroupService iSchBaseVehiclematerialgroupService;
|
||||
@Autowired
|
||||
private WmsToConnectorService wmsToConnectorService;
|
||||
private static final HashMap REGION_CODE = MapOf.of("货架", "1", "外协加工", "2", "内部加工", "3", "内部过道", "4","其他加工","5");
|
||||
private static final HashMap REGION_CODE = MapOf.of("货架", "1", "内部加工", "2", "外协加工", "3", "内部过道", "4","其他加工","5");
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -168,7 +168,8 @@ public class SchBaseVehiclematerialgroup implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private String materialFile;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private String between;
|
||||
@TableField(exist = false)
|
||||
private String material_name;
|
||||
@TableField(exist = false)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package org.nl.wms.sch.group.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.date.DateUnit;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
@@ -50,6 +51,8 @@ import java.awt.image.BufferedImage;
|
||||
import java.io.*;
|
||||
import java.net.InetAddress;
|
||||
import java.net.UnknownHostException;
|
||||
import java.time.LocalDate;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -109,6 +112,9 @@ public class SchBaseVehiclematerialgroupServiceImpl extends ServiceImpl<SchBaseV
|
||||
if (CollUtil.isNotEmpty(schBaseVehiclematerialgroups)) {
|
||||
item.setHasChildren(true);
|
||||
}
|
||||
// 计算两个日期之间的天数差
|
||||
long daysBetween = DateUtil.between(DateUtil.parse(item.getCreate_time()), new Date(), DateUnit.DAY);
|
||||
item.setBetween(daysBetween + "");
|
||||
item.setHas_work(true);
|
||||
});
|
||||
return schBaseVehiclematerialgroupIPage;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.nl.wms.sch.point.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -58,7 +59,7 @@ public class SchBasePointController {
|
||||
|
||||
@Log("删除点位管理")
|
||||
@ApiOperation("删除点位管理")
|
||||
//@SaCheckPermission("@el.check('schBasePoint:del')")
|
||||
@SaCheckPermission("schBasePoint:del")
|
||||
@DeleteMapping
|
||||
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
||||
schBasePointService.deleteAll(ids);
|
||||
|
||||
@@ -43,7 +43,7 @@ public class CNTTask extends AbstractTask {
|
||||
|
||||
|
||||
private static final String TASK_CONFIG_CODE = "CNTTask";
|
||||
private static final String[] EMPTY_POINT = {"13-01-01","13-01-03"};
|
||||
private static final String[] EMPTY_POINT = {"13-01-01","13-01-04"};
|
||||
@Autowired
|
||||
private ISchBasePointService pointService;
|
||||
@Autowired
|
||||
|
||||
@@ -46,7 +46,7 @@ public class FTGTask extends AbstractTask {
|
||||
|
||||
|
||||
private static final String TASK_CONFIG_CODE = "FTGTask";
|
||||
private static final String[] EMPTY_POINT = {"13-01-02","13-01-04"};
|
||||
private static final String[] EMPTY_POINT = {"13-01-02","13-01-03"};
|
||||
@Autowired
|
||||
private ISchBasePointService pointService;
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user