no message

main
HUOJIN\92525 2024-12-10 15:20:49 +08:00
parent fd0b6580cc
commit 4bfc48abe0
4 changed files with 5 additions and 5 deletions

View File

@ -56,6 +56,6 @@ public interface LogRepository extends JpaRepository<Log, Long>, JpaSpecificatio
*/
@Modifying
@Transactional
@Query(value = "delete from sys_log where create_time < DATE_SUB(NOW(), INTERVAL 1 MONTH) ", nativeQuery = true)
@Query(value = "delete from sys_log where create_time < DATE_SUB(NOW(), INTERVAL 1 MONTH) LIMIT 10000 ", nativeQuery = true)
void cleanSysLog();
}

View File

@ -339,7 +339,7 @@ public class MesServiceImpl implements MesService {
private void moveFxOffLine(TransTask transTask) {
if (!gtLineMap.containsKey(transTask.getPointCode())) {
throw new BadRequestException(transTask.getPointCode() + "点位不存在,请核实!");
throw new BadRequestException(transTask.getPointCode() + "点位不是下线点,请核实!");
}
List<String> points = gtLineMap.getData(transTask.getPointCode());

View File

@ -159,7 +159,7 @@ public class TaskServiceImpl implements TaskService {
@Override
@Transactional(rollbackFor = Exception.class)
public void allocatePick(Pick pick) {
public synchronized void allocatePick(Pick pick) {
//目标库位
Point endPoint = null;

View File

@ -21,8 +21,8 @@ public class GtLineMap {
// 初始化Map
dataMap.put("BYDGT006", Arrays.asList("FX001", "BYDGT002"));
dataMap.put("BYDGT007", Arrays.asList("FX001", "BYDGT002"));
dataMap.put("BVDGT001", Arrays.asList("FX001", "BYDGT002"));
dataMap.put("BXDGT003", Arrays.asList("FX001", "BYDGT004"));
dataMap.put("BYDGT001", Arrays.asList("FX001", "BYDGT002"));
dataMap.put("BYDGT003", Arrays.asList("FX001", "BYDGT004"));
dataMap.put("BYDGT005", Arrays.asList("FX001", "BYDGT008"));
}