| | |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.eam.aspect.annotation.EquipmentHistoryLog; |
| | | import org.jeecg.modules.eam.constant.AssetStatusEnum; |
| | | import org.jeecg.modules.eam.constant.EquipmentMaintenanceStatus; |
| | |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | | import org.jeecg.modules.eam.entity.EamEquipmentExtend; |
| | | import org.jeecg.modules.eam.mapper.EamEquipmentMapper; |
| | | import org.jeecg.modules.eam.request.EamEquipmentQuery; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentExtendService; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentService; |
| | | import org.jeecg.modules.eam.tree.FindsEquipmentProductionUtil; |
| | |
| | | return treeList; |
| | | } |
| | | |
| | | @Override |
| | | public IPage<EamEquipment> queryPageList(IPage<EamEquipment> page, EamEquipmentQuery eamEquipment) { |
| | | QueryWrapper<EamEquipment> queryWrapper = new QueryWrapper<>(); |
| | | //用户权限 |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | if(sysUser == null){ |
| | | return page; |
| | | } |
| | | queryWrapper.exists("select 1 from mdc_user_production t where t.user_id=? and t.pro_id=e.org_id", sysUser.getId()); |
| | | if(eamEquipment != null){ |
| | | if(StringUtils.isNotBlank(eamEquipment.getEquipmentCode())){ |
| | | queryWrapper.like("e.equipment_code", eamEquipment.getEquipmentCode()); |
| | | } |
| | | if(StringUtils.isNotBlank(eamEquipment.getEquipmentName())){ |
| | | queryWrapper.like("e.equipment_name", eamEquipment.getEquipmentName()); |
| | | } |
| | | if(StringUtils.isNotBlank(eamEquipment.getEquipmentImportance())){ |
| | | queryWrapper.eq("e.equipment_importance", eamEquipment.getEquipmentImportance()); |
| | | } |
| | | if(StringUtils.isNotBlank(eamEquipment.getAssetStatus())){ |
| | | queryWrapper.like("e.asset_status", eamEquipment.getAssetStatus()); |
| | | } |
| | | if(StringUtils.isNotBlank(eamEquipment.getTechnologyStatus())){ |
| | | queryWrapper.like("e.technology_status", eamEquipment.getTechnologyStatus()); |
| | | } |
| | | if(StringUtils.isNotBlank(eamEquipment.getOperationSystem())){ |
| | | queryWrapper.like("e.operation_system", eamEquipment.getOperationSystem()); |
| | | } |
| | | if(StringUtils.isNotBlank(eamEquipment.getOrgId())){ |
| | | queryWrapper.like("e.org_id", eamEquipment.getOrgId()); |
| | | } |
| | | if(StringUtils.isNotBlank(eamEquipment.getEquipmentCategory())){ |
| | | queryWrapper.like("e.equipment_category", eamEquipment.getEquipmentCategory()); |
| | | } |
| | | //排序 |
| | | if(StringUtils.isNotBlank(eamEquipment.getColumn()) && StringUtils.isNotBlank(eamEquipment.getOrder())){ |
| | | //queryWrapper.like("column", eamEquipment.getColumn()); |
| | | queryWrapper.orderByDesc("e.create_time"); |
| | | }else { |
| | | queryWrapper.orderByDesc("e.create_time"); |
| | | } |
| | | }else { |
| | | queryWrapper.orderByDesc("e.create_time"); |
| | | } |
| | | |
| | | IPage<EamEquipment> ipage = eamEquipmentMapper.queryPageList(page, queryWrapper); |
| | | return ipage; |
| | | } |
| | | |
| | | /** |
| | | * 获取所有的产线id(包含所有上级) |
| | | */ |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备故障原因维护-分页列表查询") |
| | | @ApiOperation(value="设备故障原因维护-分页列表查询", notes="设备故障原因维护-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamEquipmentFaultReason eamEquipmentFaultReason, |
| | |
| | | * @param eamEquipmentFaultReason |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备故障原因维护-添加") |
| | | @ApiOperation(value="设备故障原因维护-添加", notes="设备故障原因维护-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamEquipmentFaultReason eamEquipmentFaultReason) { |
| | |
| | | * @param eamEquipmentFaultReason |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备故障原因维护-编辑") |
| | | @ApiOperation(value="设备故障原因维护-编辑", notes="设备故障原因维护-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamEquipmentFaultReason eamEquipmentFaultReason) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备故障原因维护-通过id删除") |
| | | @ApiOperation(value="设备故障原因维护-通过id删除", notes="设备故障原因维护-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备故障原因维护-批量删除") |
| | | @ApiOperation(value="设备故障原因维护-批量删除", notes="设备故障原因维护-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备故障原因维护-通过id查询") |
| | | @ApiOperation(value="设备故障原因维护-通过id查询", notes="设备故障原因维护-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-分页列表查询") |
| | | @ApiOperation(value="精度参数维护-分页列表查询", notes="精度参数维护-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamPrecisionParameters eamPrecisionParameters, |
| | |
| | | * @param eamPrecisionParameters |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-添加") |
| | | @ApiOperation(value="精度参数维护-添加", notes="精度参数维护-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamPrecisionParameters eamPrecisionParameters) { |
| | |
| | | * @param eamPrecisionParameters |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-编辑") |
| | | @ApiOperation(value="精度参数维护-编辑", notes="精度参数维护-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamPrecisionParameters eamPrecisionParameters) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-通过id删除") |
| | | @ApiOperation(value="精度参数维护-通过id删除", notes="精度参数维护-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-批量删除") |
| | | @ApiOperation(value="精度参数维护-批量删除", notes="精度参数维护-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-通过id查询") |
| | | @ApiOperation(value="精度参数维护-通过id查询", notes="精度参数维护-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工序参数维护-分页列表查询") |
| | | @ApiOperation(value="工序参数维护-分页列表查询", notes="工序参数维护-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamProcessParameters eamProcessParameters, |
| | |
| | | * @param eamProcessParameters |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工序参数维护-添加") |
| | | @ApiOperation(value="工序参数维护-添加", notes="工序参数维护-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamProcessParameters eamProcessParameters) { |
| | |
| | | * @param eamProcessParameters |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工序参数维护-编辑") |
| | | @ApiOperation(value="工序参数维护-编辑", notes="工序参数维护-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamProcessParameters eamProcessParameters) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工序参数维护-通过id删除") |
| | | @ApiOperation(value="工序参数维护-通过id删除", notes="工序参数维护-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工序参数维护-批量删除") |
| | | @ApiOperation(value="工序参数维护-批量删除", notes="工序参数维护-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工序参数维护-通过id查询") |
| | | @ApiOperation(value="工序参数维护-通过id查询", notes="工序参数维护-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件库存信息-分页列表查询") |
| | | @ApiOperation(value = "备件库存信息-分页列表查询", notes = "备件库存信息-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamSparePartInventory eamSparePartInventory, |
| | |
| | | * @param eamSparePartInventory |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件库存信息-添加") |
| | | @ApiOperation(value = "备件库存信息-添加", notes = "备件库存信息-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamSparePartInventory eamSparePartInventory) { |
| | |
| | | * @param eamSparePartInventory |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件库存信息-编辑") |
| | | @ApiOperation(value = "备件库存信息-编辑", notes = "备件库存信息-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamSparePartInventory eamSparePartInventory) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件库存信息-通过id删除") |
| | | @ApiOperation(value = "备件库存信息-通过id删除", notes = "备件库存信息-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件库存信息-批量删除") |
| | | @ApiOperation(value = "备件库存信息-批量删除", notes = "备件库存信息-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件库存信息-通过id查询") |
| | | @ApiOperation(value = "备件库存信息-通过id查询", notes = "备件库存信息-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件领用单-分页列表查询") |
| | | @ApiOperation(value = "备品备件领用单-分页列表查询", notes = "备品备件领用单-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamSparePartReceive eamSparePartReceive, |
| | |
| | | * @param eamSparePartReceive |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件领用单-添加") |
| | | @ApiOperation(value = "备品备件领用单-添加", notes = "备品备件领用单-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamSparePartReceive eamSparePartReceive) { |
| | |
| | | * @param eamSparePartReceive |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件领用单-编辑") |
| | | @ApiOperation(value = "备品备件领用单-编辑", notes = "备品备件领用单-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamSparePartReceive eamSparePartReceive) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件领用单-通过id删除") |
| | | @ApiOperation(value = "备品备件领用单-通过id删除", notes = "备品备件领用单-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件领用单-批量删除") |
| | | @ApiOperation(value = "备品备件领用单-批量删除", notes = "备品备件领用单-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件领用单-通过id查询") |
| | | @ApiOperation(value = "备品备件领用单-通过id查询", notes = "备品备件领用单-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "领用单明细-分页列表查询") |
| | | @ApiOperation(value = "领用单明细-分页列表查询", notes = "领用单明细-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamSparePartReceiveDetail eamSparePartReceiveDetail, |
| | |
| | | * @param eamSparePartReceiveDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "领用单明细-添加") |
| | | @ApiOperation(value = "领用单明细-添加", notes = "领用单明细-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamSparePartReceiveDetail eamSparePartReceiveDetail) { |
| | |
| | | * @param eamSparePartReceiveDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "领用单明细-编辑") |
| | | @ApiOperation(value = "领用单明细-编辑", notes = "领用单明细-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamSparePartReceiveDetail eamSparePartReceiveDetail) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "领用单明细-通过id删除") |
| | | @ApiOperation(value = "领用单明细-通过id删除", notes = "领用单明细-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "领用单明细-批量删除") |
| | | @ApiOperation(value = "领用单明细-批量删除", notes = "领用单明细-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "领用单明细-通过id查询") |
| | | @ApiOperation(value = "领用单明细-通过id查询", notes = "领用单明细-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件请购单-分页列表查询") |
| | | @ApiOperation(value = "备件请购单-分页列表查询", notes = "备件请购单-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamSparePartRequisition eamSparePartRequisition, |
| | |
| | | * @param eamSparePartRequisition |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件请购单-添加") |
| | | @ApiOperation(value = "备件请购单-添加", notes = "备件请购单-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamSparePartRequisition eamSparePartRequisition) { |
| | |
| | | * @param eamSparePartRequisition |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件请购单-编辑") |
| | | @ApiOperation(value = "备件请购单-编辑", notes = "备件请购单-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamSparePartRequisition eamSparePartRequisition) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件请购单-通过id删除") |
| | | @ApiOperation(value = "备件请购单-通过id删除", notes = "备件请购单-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件请购单-批量删除") |
| | | @ApiOperation(value = "备件请购单-批量删除", notes = "备件请购单-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件请购单-通过id查询") |
| | | @ApiOperation(value = "备件请购单-通过id查询", notes = "备件请购单-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件清购单明细-分页列表查询") |
| | | @ApiOperation(value = "备件清购单明细-分页列表查询", notes = "备件清购单明细-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamSparePartRequisitionDetail eamSparePartRequisitionDetail, |
| | |
| | | * @param eamSparePartRequisitionDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件清购单明细-添加") |
| | | @ApiOperation(value = "备件清购单明细-添加", notes = "备件清购单明细-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamSparePartRequisitionDetail eamSparePartRequisitionDetail) { |
| | |
| | | * @param eamSparePartRequisitionDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件清购单明细-编辑") |
| | | @ApiOperation(value = "备件清购单明细-编辑", notes = "备件清购单明细-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamSparePartRequisitionDetail eamSparePartRequisitionDetail) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件清购单明细-通过id删除") |
| | | @ApiOperation(value = "备件清购单明细-通过id删除", notes = "备件清购单明细-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件清购单明细-批量删除") |
| | | @ApiOperation(value = "备件清购单明细-批量删除", notes = "备件清购单明细-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备件清购单明细-通过id查询") |
| | | @ApiOperation(value = "备件清购单明细-通过id查询", notes = "备件清购单明细-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件报废-分页列表查询") |
| | | @ApiOperation(value = "备品备件报废-分页列表查询", notes = "备品备件报废-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamSparePartScrap eamSparePartScrap, |
| | |
| | | * @param eamSparePartScrap |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件报废-添加") |
| | | @ApiOperation(value = "备品备件报废-添加", notes = "备品备件报废-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamSparePartScrap eamSparePartScrap) { |
| | |
| | | * @param eamSparePartScrap |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件报废-编辑") |
| | | @ApiOperation(value = "备品备件报废-编辑", notes = "备品备件报废-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamSparePartScrap eamSparePartScrap) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件报废-通过id删除") |
| | | @ApiOperation(value = "备品备件报废-通过id删除", notes = "备品备件报废-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件报废-批量删除") |
| | | @ApiOperation(value = "备品备件报废-批量删除", notes = "备品备件报废-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件报废-通过id查询") |
| | | @ApiOperation(value = "备品备件报废-通过id查询", notes = "备品备件报废-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件管理-分页列表查询") |
| | | @ApiOperation(value = "备品备件管理-分页列表查询", notes = "备品备件管理-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamSpareParts eamSpareParts, |
| | |
| | | * @param eamSpareParts |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件管理-添加") |
| | | @ApiOperation(value = "备品备件管理-添加", notes = "备品备件管理-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamSpareParts eamSpareParts) { |
| | |
| | | * @param eamSpareParts |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件管理-编辑") |
| | | @ApiOperation(value = "备品备件管理-编辑", notes = "备品备件管理-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamSpareParts eamSpareParts) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件管理-通过id删除") |
| | | @ApiOperation(value = "备品备件管理-通过id删除", notes = "备品备件管理-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件管理-批量删除") |
| | | @ApiOperation(value = "备品备件管理-批量删除", notes = "备品备件管理-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "备品备件管理-通过id查询") |
| | | @ApiOperation(value = "备品备件管理-通过id查询", notes = "备品备件管理-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备附件管理-分页列表查询") |
| | | @ApiOperation(value = "设备附件管理-分页列表查询", notes = "设备附件管理-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamSysFiles eamSysFiles, |
| | |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备附件管理-添加") |
| | | @ApiOperation(value = "设备附件管理-添加", notes = "设备附件管理-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamSysFilesRequest request) { |
| | |
| | | * @param eamSysFiles |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备附件管理-编辑") |
| | | @ApiOperation(value = "设备附件管理-编辑", notes = "设备附件管理-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamSysFiles eamSysFiles) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备附件管理-通过id删除") |
| | | @ApiOperation(value = "设备附件管理-通过id删除", notes = "设备附件管理-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name = "id", required = true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备附件管理-批量删除") |
| | | @ApiOperation(value = "设备附件管理-批量删除", notes = "设备附件管理-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备附件管理-通过id查询") |
| | | @ApiOperation(value = "设备附件管理-通过id查询", notes = "设备附件管理-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { |