Merge branch 'master' of http://10.153.19.25:10105/r/YiWuProject
| | |
| | | LambdaQueryWrapper<EdgStorageDeviceTaskHistory> wrapper = new LambdaQueryWrapper<EdgStorageDeviceTaskHistory>() |
| | | .eq(EdgStorageDeviceTaskHistory::getDeviceId, request.getDeviceId()) |
| | | .eq(StringUtils.checkValNotNull(request.getTaskState()), EdgStorageDeviceTaskHistory::getTaskState, request.getTaskState()) |
| | | .eq(StringUtils.checkValNotNull(request.getTaskType()), EdgStorageDeviceTaskHistory::getTaskState, request.getTaskType()) |
| | | .eq(StringUtils.checkValNotNull(request.getTaskType()), EdgStorageDeviceTaskHistory::getTaskType, request.getTaskType()) |
| | | .between(StringUtils.checkValNotNull(request.getStartTime()), EdgStorageDeviceTaskHistory::getCreateTime, request.getStartTime(), |
| | | request.getEndTime()).orderByDesc(EdgStorageDeviceTaskHistory::getCreateTime).last("limit 20"); |
| | | if (StringUtils.isNotBlank(request.getGlassId())) { |
| | |
| | | import com.github.yulichang.base.MPJBaseServiceImpl; |
| | | import com.github.yulichang.toolkit.JoinWrappers; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.google.common.collect.Lists; |
| | | import com.mes.base.entity.vo.BigStorageVO; |
| | | import com.mes.bigstorage.entity.BigStorageCage; |
| | | import com.mes.bigstorage.entity.BigStorageCageDetails; |
| | |
| | | .orderByAsc(BigStorageCageDetails::getTemperingFeedSequence) |
| | | ); |
| | | if (CollectionUtils.isNotEmpty(temperingGlassInfos)) { |
| | | temperingGlassInfoService.saveBatch(temperingGlassInfos); |
| | | //避免大量数据插入导致sqlserver数据库异常,分批次每调存储依次 |
| | | List<List<TemperingGlassInfo>> temperingGlassInfoLists = Lists.partition(temperingGlassInfos, 50); |
| | | for (List<TemperingGlassInfo> item : temperingGlassInfoLists) { |
| | | temperingGlassInfoService.saveBatch(item); |
| | | } |
| | | return true; |
| | | } |
| | | } |
| | |
| | | ) |
| | | select * |
| | | from result |
| | | order by engineer_id |
| | | order by engineer_id,tempering_layout_id |
| | | </select> |
| | | |
| | | <select id="queryIsAllNeedDispatchVirtualSlot" resultMap="virtualSlotSequenceDTO"> |
| | |
| | | } |
| | | @ApiOperation("删除原片") |
| | | @PostMapping("/deleteWarehousing") |
| | | public Result<Object> deleteWarehousing(@RequestBody Long slotId) { |
| | | public Result<Object> deleteWarehousing(Long slotId) { |
| | | return Result.success(rawGlassStorageDetailsService.deleteWarehousing(slotId)); |
| | | } |
| | | |
| | | @ApiOperation("原片出库") |
| | | @PostMapping("/outWarehousing") |
| | | public Result<Object> outWarehousing(@RequestBody Long slotId) { |
| | | public Result<Object> outWarehousing(Long slotId) { |
| | | return Result.success(rawGlassStorageDetailsService.outWarehousing(slotId)); |
| | | } |
| | | |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | return Result.build(200, "破损/拿走成功", null); |
| | | } |
| | | |
| | | @ApiOperation("中空理片笼格子禁用/启用") |
| | | @GetMapping("/updateHollowStorageCageDisabled") |
| | | public Result updateHollowStorageCageDisabled(int slot, int enableState) { |
| | | hollowBigStorageCageDetailsService.updateHollowStorageCageDisabled(slot, enableState); |
| | | return Result.build(200, "启用/禁用成功", 1); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | List<HollowBigStorageCageDetails> queryPairGlassList(String flowCardId, Integer totalLayer, Integer totalPairQuantity,Integer isOut); |
| | | |
| | | /** |
| | | * 更新理片笼格子状态 |
| | | * @param slot |
| | | * @param enableState |
| | | * @return |
| | | */ |
| | | Boolean updateHollowStorageCageDisabled(int slot, int enableState); |
| | | } |
| | | |
| | |
| | | import com.mes.common.config.Const; |
| | | import com.mes.glassinfo.entity.GlassInfo; |
| | | import com.mes.glassinfo.service.GlassInfoService; |
| | | import com.mes.hollow.entity.HollowBigStorageCage; |
| | | import com.mes.hollow.entity.HollowBigStorageCageDetails; |
| | | import com.mes.hollow.entity.HollowGlassRelationInfo; |
| | | import com.mes.hollow.entity.dto.*; |
| | |
| | | return baseMapper.queryPairGlassList(flowCardId, totalLayer, totalPairQuantity, isOut); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean updateHollowStorageCageDisabled(int slot, int enableState) { |
| | | return hollowBigStorageCageService.update(new LambdaUpdateWrapper<HollowBigStorageCage>() |
| | | .set(HollowBigStorageCage::getEnableState, enableState) |
| | | .eq(HollowBigStorageCage::getSlot, slot)); |
| | | } |
| | | |
| | | private List<HollowBigStorageAndDetailsDTO> hollowBigStorageCageDetailsChild(String glassId, Integer deviceId, Integer slot, int state) { |
| | | //将对应格子号的玻璃id置为101 |
| | | this.update(new LambdaUpdateWrapper<HollowBigStorageCageDetails>() |