pjb
2025-06-20 60fdc9564c65b90a8911ff10a25f3f3a63d3812c
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/WorkServiceImpl.java
@@ -4,6 +4,7 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.zy.asrs.framework.common.Cools;
import com.zy.asrs.framework.common.DateUtils;
import com.zy.asrs.framework.exception.CoolException;
import com.zy.asrs.wms.asrs.entity.*;
import com.zy.asrs.wms.asrs.entity.enums.*;
@@ -15,6 +16,8 @@
import com.zy.asrs.wms.utils.LocUtils;
import com.zy.asrs.wms.utils.OrderUtils;
import com.zy.asrs.wms.utils.Utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -23,6 +26,8 @@
@Service("workService")
public class WorkServiceImpl implements WorkService {
    public static final Logger logger = LoggerFactory.getLogger(WorkServiceImpl.class);
    @Autowired
    private TaskService taskService;
@@ -77,9 +82,11 @@
    @Override
    public String generateTaskNo(Long taskType) {
        String format = DateUtils.format(new Date(), "MMddHHmm");
        Random random = new Random();
        int nextInt = random.nextInt(99999);
        return "R" + nextInt;
        logger.info("R" + format + nextInt);
        return "R" + format + nextInt;
    }
    @Override