|  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     @ApiOperation("新增") | 
 |  |  |     public AjaxResult add(@RequestBody AccountExpense accountExpense) { | 
 |  |  |         accountExpense.setInputTime(new Date()); | 
 |  |  |         LoginUser loginUser = SecurityUtils.getLoginUser(); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @DeleteMapping("/del") | 
 |  |  |     @ApiOperation("删除") | 
 |  |  |     public AjaxResult delQualityInspect(@RequestBody List<Integer> ids) { | 
 |  |  |         if(CollectionUtils.isEmpty(ids)){ | 
 |  |  |             return AjaxResult.error("请选择至少一条数据"); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/update") | 
 |  |  |     @ApiOperation("修改") | 
 |  |  |     public AjaxResult update(@RequestBody AccountExpense accountExpense) { | 
 |  |  |         return AjaxResult.success(accountExpenseService.updateById(accountExpense)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/listPage") | 
 |  |  |     @ApiOperation("分页查询") | 
 |  |  |     public AjaxResult accountExpenseListPage(Page page, AccountExpense accountExpense) { | 
 |  |  |         return AjaxResult.success(accountExpenseService.accountExpenseListPage(page, accountExpense)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/{id}") | 
 |  |  |     @ApiOperation("详情") | 
 |  |  |     public AjaxResult accountExpenseDetail(@PathVariable("id") Integer id) { | 
 |  |  |         return AjaxResult.success(accountExpenseService.getById(id)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @param accountExpense | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/export") | 
 |  |  |     @ApiOperation("导出") | 
 |  |  |     public void accountExpenseExport(HttpServletResponse response,AccountExpense accountExpense) { | 
 |  |  |         accountExpenseService.accountExpenseExport(response, accountExpense); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/report/forms") | 
 |  |  |     @ApiOperation("财务报表图表查询") | 
 |  |  |     public AjaxResult report(DateQueryDto dateQueryDto) { | 
 |  |  |         return AjaxResult.success(accountExpenseService.report(dateQueryDto)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/report/income") | 
 |  |  |     @ApiOperation("财务报表图表收入年度查询") | 
 |  |  |     public AjaxResult reportIncome() { | 
 |  |  |         return AjaxResult.success(accountIncomeService.reportIncome()); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/report/expense") | 
 |  |  |     @ApiOperation("财务报表图表支出年度查询") | 
 |  |  |     public AjaxResult reportExpense() { | 
 |  |  |         return AjaxResult.success(accountExpenseService.reportExpense()); | 
 |  |  |     } | 
 
 |  |  | 
 |  |  | import com.ruoyi.framework.web.domain.AjaxResult; | 
 |  |  | import com.ruoyi.quality.pojo.QualityInspectFile; | 
 |  |  | import com.ruoyi.quality.service.IQualityInspectFileService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import org.springframework.util.CollectionUtils; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | 
 |  |  |  */ | 
 |  |  | @RestController | 
 |  |  | @RequestMapping("/account/accountFile") | 
 |  |  | @Api(tags = "财务附件") | 
 |  |  | public class AccountFileController { | 
 |  |  |  | 
 |  |  |  | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     @ApiOperation("新增") | 
 |  |  |     public AjaxResult add(@RequestBody AccountFile accountFile) { | 
 |  |  |         return AjaxResult.success(accountFileService.save(accountFile)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @DeleteMapping("/del") | 
 |  |  |     @ApiOperation("删除") | 
 |  |  |     public AjaxResult delAccountFile(@RequestBody List<Integer> ids) { | 
 |  |  |         if(CollectionUtils.isEmpty(ids)){ | 
 |  |  |             return AjaxResult.error("请选择至少一条数据"); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/listPage") | 
 |  |  |     @ApiOperation("分页查询") | 
 |  |  |     public AjaxResult accountFileListPage(Page page, AccountFile accountFile) { | 
 |  |  |         return AjaxResult.success(accountFileService.accountFileListPage(page, accountFile)); | 
 |  |  |     } | 
 
 |  |  | 
 |  |  | import com.ruoyi.quality.service.IQualityInspectFileService; | 
 |  |  | import com.ruoyi.quality.service.IQualityInspectParamService; | 
 |  |  | import com.ruoyi.quality.service.IQualityInspectService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import org.springframework.util.CollectionUtils; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | 
 |  |  |  */ | 
 |  |  | @RestController | 
 |  |  | @RequestMapping("/account/accountIncome") | 
 |  |  | @Api(tags = "财务管理--收入管理") | 
 |  |  | public class AccountIncomeController { | 
 |  |  |  | 
 |  |  |     @Resource | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     @ApiOperation("新增") | 
 |  |  |     public AjaxResult add(@RequestBody AccountIncome accountIncome) { | 
 |  |  |         accountIncome.setInputTime(new Date()); | 
 |  |  |         LoginUser loginUser = SecurityUtils.getLoginUser(); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @DeleteMapping("/del") | 
 |  |  |     @ApiOperation("删除") | 
 |  |  |     public AjaxResult delQualityInspect(@RequestBody List<Integer> ids) { | 
 |  |  |         if(CollectionUtils.isEmpty(ids)){ | 
 |  |  |             return AjaxResult.error("请选择至少一条数据"); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/update") | 
 |  |  |     @ApiOperation("修改") | 
 |  |  |     public AjaxResult update(@RequestBody AccountIncome accountIncome) { | 
 |  |  |         return AjaxResult.success(accountIncomeService.updateById(accountIncome)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/listPage") | 
 |  |  |     @ApiOperation("分页查询") | 
 |  |  |     public AjaxResult accountIncomeListPage(Page page, AccountIncome accountIncome) { | 
 |  |  |         return AjaxResult.success(accountIncomeService.accountIncomeListPage(page, accountIncome)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/{id}") | 
 |  |  |     @ApiOperation("详情") | 
 |  |  |     public AjaxResult accountIncomeDetail(@PathVariable("id") Integer id) { | 
 |  |  |         return AjaxResult.success(accountIncomeService.getById(id)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @param accountIncome | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/export") | 
 |  |  |     @ApiOperation("导出") | 
 |  |  |     public void accountIncomeExport(HttpServletResponse response,AccountIncome accountIncome) { | 
 |  |  |         accountIncomeService.accountIncomeExport(response, accountIncome); | 
 |  |  |     } | 
 
 |  |  | 
 |  |  | import com.ruoyi.framework.security.LoginUser; | 
 |  |  | import com.ruoyi.framework.web.domain.AjaxResult; | 
 |  |  | import com.ruoyi.project.system.domain.SysDept; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  | 
 |  |  |  | 
 |  |  | @RestController | 
 |  |  | @RequestMapping("/approveProcess") | 
 |  |  | @Api(tags = "审批") | 
 |  |  | public class ApproveProcessController { | 
 |  |  |  | 
 |  |  |     @GetMapping("/test") | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     @Transactional(rollbackFor = Exception.class) | 
 |  |  |     @ApiOperation(value = "添加审批") | 
 |  |  |     public AjaxResult add(@RequestBody ApproveProcessVO approveProcessVO) throws Exception { | 
 |  |  |         if (approveProcessVO == null) { | 
 |  |  |             return AjaxResult.warn("参数不能为空"); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/get") | 
 |  |  |     @ApiOperation(value = "审批详情") | 
 |  |  |     public AjaxResult get(ApproveGetAndUpdateVo approveGetAndUpdateVo){ | 
 |  |  |         if (approveGetAndUpdateVo.getId() == null || approveGetAndUpdateVo.getId().isEmpty()) { | 
 |  |  |             return AjaxResult.warn("参数不能为空"); | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/update") | 
 |  |  |     @Transactional(rollbackFor = Exception.class) | 
 |  |  |     @ApiOperation(value = "更新审批") | 
 |  |  |     public AjaxResult update(@RequestBody ApproveGetAndUpdateVo approveGetAndUpdateVo) throws IOException { | 
 |  |  |         if (approveGetAndUpdateVo == null) { | 
 |  |  |             return AjaxResult.warn("参数不能为空"); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/list") | 
 |  |  |     @ApiOperation(value = "获取审批列表") | 
 |  |  |     public AjaxResult list(Page page, ApproveProcess approveProcess) { | 
 |  |  |         return AjaxResult.success(approveProcessService.listAll(page, approveProcess)); | 
 |  |  |     } | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @DeleteMapping("/deleteIds") | 
 |  |  |     @ApiOperation(value = "删除审批") | 
 |  |  |     @Transactional(rollbackFor = Exception.class) | 
 |  |  |     public AjaxResult deleteIds(@RequestBody Long[] ids) { | 
 |  |  |         if (ids == null || ids.length == 0) { | 
 
 |  |  | 
 |  |  | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; | 
 |  |  | import com.ruoyi.framework.web.controller.BaseController; | 
 |  |  | import com.ruoyi.framework.web.domain.AjaxResult; | 
 |  |  | import com.ruoyi.framework.web.page.TableDataInfo; | 
 |  |  | import com.ruoyi.procurementrecord.dto.*; | 
 |  |  | import com.ruoyi.procurementrecord.service.ProcurementRecordService; | 
 |  |  | import com.ruoyi.purchase.dto.InvoicePurchaseReportDto; | 
 |  |  | import com.ruoyi.quality.pojo.QualityInspect; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @GetMapping("/listPage") | 
 |  |  |     @Log(title = "采购入库-入库管理-入库查询", businessType = BusinessType.OTHER) | 
 |  |  |     @ApiOperation(value = "入库查询") | 
 |  |  |     public AjaxResult listPage(Page page, ProcurementPageDto procurementDto) { | 
 |  |  |         IPage<ProcurementPageDto> result =procurementRecordService.listPage(page, procurementDto); | 
 |  |  |         return AjaxResult.success(result); | 
 
 |  |  | 
 |  |  |         t2.unit, | 
 |  |  |         t2.tax_rate, | 
 |  |  |         t2.tax_inclusive_unit_price, | 
 |  |  |         t2.tax_inclusive_total_price, | 
 |  |  |         t2.tax_exclusive_total_price, | 
 |  |  |         (t1.inbound_num * t2.tax_inclusive_unit_price) as taxInclusiveTotalPrice, | 
 |  |  |         (t1.inbound_num * t2.tax_inclusive_unit_price - t1.inbound_num * t2.tax_inclusive_unit_price * t2.tax_rate / 100) as taxExclusiveTotalPrice, | 
 |  |  |         t1.inbound_batches, | 
 |  |  |         t1.inbound_num, | 
 |  |  |         t1.inbound_num as inboundNum0, |