| | |
| | | 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>() |