| | |
| | | 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.*;
|
| | |
| | | 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;
|
| | |
| | |
|
| | | @Service("workService")
|
| | | public class WorkServiceImpl implements WorkService {
|
| | |
|
| | | public static final Logger logger = LoggerFactory.getLogger(WorkServiceImpl.class);
|
| | |
|
| | | @Autowired
|
| | | private TaskService taskService;
|
| | |
| | |
|
| | | @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
|