| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.zy.asrs.entity.CommandInfoLog; |
| | | import com.zy.asrs.entity.TaskWrk; |
| | | import com.zy.asrs.mapper.CommandInfoMapper; |
| | | import com.zy.asrs.entity.CommandInfo; |
| | | import com.zy.asrs.service.CommandInfoLogService; |
| | | import com.zy.asrs.service.CommandInfoService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.zy.asrs.service.TaskWrkService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private CommandInfoLogService commandInfoLogService; |
| | | @Autowired |
| | | private TaskWrkService taskWrkService; |
| | | @Autowired |
| | | private CommandInfoService commandInfoService; |
| | | |
| | | @Override |
| | | public List<CommandInfo> selectByTaskNoAndWrkNo(String taskNo, Integer wrkNo) { |
| | |
| | | public List<CommandInfo> selectCompleteManualCommand() { |
| | | return this.baseMapper.selectCompleteManualCommand(); |
| | | } |
| | | |
| | | @Override |
| | | public void clearCommandInfo() { |
| | | int count = taskWrkService.selectCount(new EntityWrapper<TaskWrk>()); |
| | | if (count != 0){ |
| | | return; |
| | | } |
| | | int count1 = commandInfoService.selectCount(new EntityWrapper<CommandInfo>()); |
| | | if (count1 != 0){ |
| | | commandInfoService.delete(new EntityWrapper<>()); |
| | | } |
| | | } |
| | | } |