| | |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.service.AgvCommonService; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.system.entity.Config; |
| | | import com.zy.system.service.ConfigService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | private AgvCommonService agvCommonService; |
| | | @Autowired |
| | | private AgvWrkMastService agvWrkMastService; |
| | | @Autowired |
| | | private ConfigService configService; |
| | | |
| | | |
| | | public Boolean updateWrkStsByWrkNo(int wrkNo, long wrkSts) { |
| | |
| | | agvWrkMast.setWrkNo(-agvWrkMast.getWrkNo()); |
| | | } |
| | | agvTaskCreateParam.setTaskCode(agvWrkMast.getWrkNo().toString()); |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "FOUR")); |
| | | if (config != null && config.getStatus() == 1 && config.getValue().equals("1") && processUseTiShengJi(agvWrkMast.getSourceLocNo(), agvWrkMast.getLocNo())) { |
| | | // TODO 四期 |
| | | } else { |
| | | switch (agvWrkMast.getIoType()) { |
| | | case 114: |
| | | case 108: |
| | |
| | | agvTaskCreateParam.setTaskTyp("F01"); |
| | | break; |
| | | } |
| | | } |
| | | |
| | | agvTaskCreateParam.setPositionCodePath(agvTaskParamList); |
| | | |