| | |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.tms.entity.OutboundDetail; |
| | | import org.jeecg.modules.tms.entity.OutboundOrder; |
| | | import org.jeecg.modules.tms.entity.ToolsLossBound; |
| | | import org.jeecg.modules.tms.entity.ToolsLossBoundDetail; |
| | | import org.jeecg.modules.tms.entity.*; |
| | | import org.jeecg.modules.tms.entity.dto.LossBoundFlowDto; |
| | | import org.jeecg.modules.tms.entity.dto.OutBoundOrderFlowDto; |
| | | import org.jeecg.modules.tms.entity.vo.OutboundDetailVo; |
| | | import org.jeecg.modules.tms.enums.OutBillStatus; |
| | | import org.jeecg.modules.tms.service.IToolsLossBoundDetailService; |
| | |
| | | return Result.OK("提交成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | @AutoLog(value = "审批流程") |
| | | @ApiOperation(value = "报损单-审批流程", notes = "报损单-审批流程") |
| | | @PostMapping("/approval") |
| | | public Result<?> approval(@RequestBody LossBoundFlowDto lossBoundFlowDto) { |
| | | toolsLossBoundService.approvalProcess(lossBoundFlowDto); |
| | | return Result.OK("操作成功"); |
| | | } |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "出库申请单明细-批量删除") |
| | | @ApiOperation(value="出库申请单明细-批量删除", notes="出库申请单明细-批量删除") |
| | | @AutoLog(value = "报损单明细-批量删除") |
| | | @ApiOperation(value="报损单明细-批量删除", notes="报损单明细-批量删除") |
| | | @DeleteMapping(value = "/deleteBatchLossboundDetail") |
| | | public Result<String> deleteBatchLossboundDetail(@RequestParam(name="ids",required=true) String ids) { |
| | | this.toolsLossBoundDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | |
| | | } |
| | | |
| | | |
| | | /*--------------------------------子表处理-出库申请单明细-begin----------------------------------------------*/ |
| | | |
| | | /** |
| | | * 通过主表ID查询 |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "出库申请单明细-通过主表ID查询") |
| | | @ApiOperation(value="出报损申请单明细-通过主表ID查询", notes="出报损申请单明细-通过主表ID查询") |
| | | |
| | | @ApiOperation(value="报损申请单明细-通过主表ID查询", notes="报损申请单明细-通过主表ID查询") |
| | | @GetMapping(value = "/listlossboundDetailByMainId") |
| | | public Result<IPage<ToolsLossBoundDetail>> listlossboundDetailByMainId(ToolsLossBoundDetail toolsLossBoundDetail, |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | |
| | | IPage<ToolsLossBoundDetail> pageList = toolsLossBoundDetailService.queryPageList(page, parameterMap); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * 工具台账-报损子页面列表查询 |
| | | * |
| | | * @param toolsLossBoundDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="工具台账-报损子页面列表查询", notes="工具台账-报损子页面列表查询") |
| | | @GetMapping(value = "/toolLossDetailList") |
| | | public Result<?> toolLossDetailList(ToolsLossBoundDetail toolsLossBoundDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | @RequestParam Map<String, String> query) { |
| | | IPage<Map<String, Object>> pageList = toolsLossBoundDetailService.toolLossDetailList(pageNo,pageSize, query); |
| | | return Result.OK(pageList); |
| | | } |
| | | } |