| | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.whyc.dto.*; |
| | | import com.whyc.pojo.db_abe_ram.AbeInf; |
| | | import com.whyc.pojo.db_param.PageParam; |
| | | import com.whyc.pojo.db_wms.Task; |
| | | import com.whyc.util.HttpUtil; |
| | |
| | | private TaskService taskService; |
| | | |
| | | @Autowired |
| | | private PageParamService paramService; |
| | | private AbeInfService abeInfService; |
| | | |
| | | public Response getMaterialList() { |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/Wms_material/get_all"; |
| | |
| | | task.setPallets(pallet); |
| | | task.setDes(palletDto.getDes()); |
| | | |
| | | List<String> activateParameter = palletDto.getActivateParameter(); |
| | | task.setActivateParameter(String.join(",",activateParameter)); |
| | | if(palletDto.getDes()==3) { //活化,填入活化参数 |
| | | List<String> activateParameter = palletDto.getActivateParameter(); |
| | | task.setActivateParameter(String.join(",", activateParameter)); |
| | | } |
| | | task.setCreateTime(date); |
| | | |
| | | taskService.add(task); |
| | |
| | | if(pallet == null){ |
| | | pallet = taskService.getByTaskNo(taskNo).getPallets(); |
| | | } |
| | | //更新电池单体编号 |
| | | PageParam pageParam = new PageParam(); |
| | | pageParam.setId(3); |
| | | pageParam.setValue(Integer.valueOf(pallet)); |
| | | paramService.updateById(pageParam); |
| | | //更新电池单体编号和任务编号 |
| | | AbeInf abeInf = abeInfService.get(); |
| | | abeInf.setAbeMonId(Integer.valueOf(pallet)); |
| | | abeInf.setTaskNo(taskNo); |
| | | abeInfService.updateById(abeInf); |
| | | //更新任务时间 |
| | | task.setPickUpStartTime(statusTime); |
| | | }break; |