| | |
| | | import com.zt.common.validator.group.AddGroup; |
| | | import com.zt.common.validator.group.DefaultGroup; |
| | | import com.zt.common.validator.group.UpdateGroup; |
| | | import com.zt.life.modules.baselineRelease.model.BaselineReleaseRemark; |
| | | import com.zt.life.modules.configItemChange.dto.ConfigItemChangeDto; |
| | | import com.zt.life.modules.configItemChange.model.ConfigItemChange; |
| | | import com.zt.life.modules.configItemChange.service.ConfigItemChangeService; |
| | |
| | | |
| | | @Autowired |
| | | private WarehouseConfigItemService configItemService; |
| | | |
| | | @GetMapping("page") |
| | | @ApiOperation("分页") |
| | | @ApiImplicitParams({ |
| | |
| | | |
| | | @GetMapping("getItemList") |
| | | @ApiOperation("获取入库配置项列表") |
| | | public PageResult<WarehouseConfigItem> getItemList(Long projectId,String ids) { |
| | | List<WarehouseConfigItem> resultList = configItemService.warehouseConfigList(projectId,ids); |
| | | public PageResult<WarehouseConfigItem> getItemList(Long projectId, String ids, String pageCode) { |
| | | String type = ""; |
| | | if ("demand".equals(pageCode)) { |
| | | type = "1"; |
| | | } else if ("product".equals(pageCode)) { |
| | | type = "2"; |
| | | } |
| | | List<WarehouseConfigItem> resultList = configItemService.warehouseConfigList(projectId, ids, type); |
| | | for (WarehouseConfigItem result : resultList) { |
| | | if (result.getSelectId() != null) { |
| | | Long configItemId = result.getSelectId(); |
| | | OssDto ossDto = sysOssConfigService.getOssByBusiType(configItemId, "config_item_warehouse"); |
| | | if (ossDto != null) { |
| | | result.setFiles(ossDto); |
| | | } |
| | | } |
| | | } |
| | | return PageResult.ok(resultList); |
| | | } |
| | | |
| | | @GetMapping("exportConfigChange") |
| | | @ApiOperation("打印变更申请单") |
| | | @LogOperation("打印变更申请单") |