| | |
| | | import com.mes.bigstoragecagetask.entity.request.BigStorageCageHistoryRequest; |
| | | import com.mes.bigstoragecagetask.mapper.BigStorageCageHistoryTaskMapper; |
| | | import com.mes.bigstoragecagetask.service.BigStorageCageHistoryTaskService; |
| | | import com.mes.job.OPCPlcSlicecage; |
| | | import com.mes.largenscreen.entity.DailyProductionVO; |
| | | import com.mes.largenscreen.entity.RunTime; |
| | | import com.mes.tools.DateUtil; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @Service |
| | | public class BigStorageCageHistoryTaskServiceImpl extends ServiceImpl<BigStorageCageHistoryTaskMapper, BigStorageCageHistoryTask> implements BigStorageCageHistoryTaskService { |
| | | |
| | | @Resource |
| | | OPCPlcSlicecage opcPlcSlicecage; |
| | | |
| | | @Override |
| | | public Page<BigStorageCageHistoryTask> queryBigStorageCageHistoryTask(BigStorageCageHistoryRequest request) { |
| | |
| | | return baseMapper.queryRunTimes(days); |
| | | } |
| | | |
| | | @Override |
| | | public String queryAllMessage() { |
| | | try { |
| | | opcPlcSlicecage.plcStorageCageTask(); |
| | | return "success"; |
| | | } catch (Exception exception) { |
| | | exception.printStackTrace(); |
| | | } |
| | | return "fail"; |
| | | } |
| | | |
| | | } |
| | | |