| | |
| | | import cn.hutool.core.util.IdUtil; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.aps.common.core.constant.SecurityConstants; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import com.aps.common.core.utils.StringUtils; |
| | | import com.aps.common.core.utils.uuid.IdUtils; |
| | |
| | | import com.aps.job.mapper.ApsStandardProcessRouteLineJobMapper; |
| | | import com.aps.job.mapper.ApsWorkOrderJobLogMapper; |
| | | import com.aps.job.service.IApsStandardProcessRouteHeaderJobService; |
| | | import com.aps.system.api.RemoteCoreService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.HttpEntity; |
| | |
| | | |
| | | @Autowired |
| | | private RestTemplate restTemplate; |
| | | |
| | | @Autowired |
| | | private RemoteCoreService remoteCoreService; |
| | | |
| | | /** |
| | | * 查询标准工艺路线Header |
| | |
| | | if(!res){ |
| | | return false; |
| | | } |
| | | remoteCoreService.setProcessRouteDataToRedis(SecurityConstants.INNER); |
| | | apsStandardProcessRouteHeaderJobMapper.deleteProcessRouteHeader(); |
| | | apsStandardProcessRouteLineJobMapper.deleteProcessRouteLine(); |
| | | apsStandardProcessRouteHeaderJobMapper.insertIntoProcessRouteHeader(); |