| | |
| | | package com.mes.common; |
| | | |
| | | import cn.hutool.core.date.DateTime; |
| | | import cn.hutool.json.JSONObject; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.mes.edgstoragecage.entity.EdgStorageCage; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | @Service |
| | | @Slf4j |
| | |
| | | // //mapType.put("A10_glass_status", "Word"); |
| | | // mapType.put("A09_prohibit_film_production", "Word"); |
| | | // mapType.put("A10_prohibit_film_production", "Word"); |
| | | mapValue.put("A06_request_word","1");//请求字 |
| | | mapValue.put("A05_scanning_ID","11111111111");//请求ID |
| | | mapValue.put("MES_confirmation_word","0");//MES发送字 |
| | | mapValue.put("A09_glass_status","0");//A09玻璃状态 |
| | | mapValue.put("A10_glass_status","0");//A09玻璃状态 |
| | | mapValue.put("A09_prohibit_film_production","0");//A9禁止出片 |
| | | mapValue.put("A10_prohibit_film_production","0");//A10禁止出片 |
| | | mapValue.put("A06_request_word", "1");//请求字 |
| | | mapValue.put("A05_scanning_ID", "11111111111");//请求ID |
| | | mapValue.put("MES_confirmation_word", "0");//MES发送字 |
| | | mapValue.put("A09_glass_status", "0");//A09玻璃状态 |
| | | mapValue.put("A10_glass_status", "0");//A09玻璃状态 |
| | | mapValue.put("A09_prohibit_film_production", "0");//A9禁止出片 |
| | | mapValue.put("A10_prohibit_film_production", "0");//A10禁止出片 |
| | | |
| | | } |
| | | |
| | |
| | | taskCache.setStartCell(0); |
| | | taskCache.setEndCell(edgStorageCage.getSlot()); |
| | | taskCache.setTaskType(1); |
| | | taskCache.setCreateTime(new DateTime()); |
| | | taskCache.setCreateTime(new Date()); |
| | | edgStorageCageDetailsMapper.updateById(edgStorageCageDetails); |
| | | taskCacheService.insertTaskCache(taskCache); |
| | | S7object.getinstance().plccontrol.WriteWord(mapParameter.get("MES_confirmation_word"), (short)1); |
| | | S7object.getinstance().plccontrol.WriteWord(mapParameter.get("MES_confirmation_word"), (short) 1); |
| | | } else { |
| | | log.info("不存在空格"); |
| | | } |
| | |
| | | taskCache.setStartCell(outEdgStorageCageDetails.getSlot()); |
| | | taskCache.setEndCell(endcell); |
| | | taskCache.setTaskType(2); |
| | | taskCache.setCreateTime(new DateTime()); |
| | | taskCache.setCreateTime(new Date()); |
| | | taskCacheService.insertTaskCache(taskCache); |
| | | S7object.getinstance().plccontrol.WriteWord(mapParameter.get("MES_confirmation_word"), (short)1); |
| | | S7object.getinstance().plccontrol.WriteWord(mapParameter.get("MES_confirmation_word"), (short) 1); |
| | | } |
| | | |
| | | |