Commit a7d4f295 by huluobin

update

parent 9b18a684
...@@ -3,7 +3,6 @@ package com.blt.other.module.cost.controller.cost; ...@@ -3,7 +3,6 @@ package com.blt.other.module.cost.controller.cost;
import com.bailuntec.cost.api.dto.CostDto; import com.bailuntec.cost.api.dto.CostDto;
import com.bailuntec.cost.api.response.CostResult; import com.bailuntec.cost.api.response.CostResult;
import com.blt.other.common.util.AxiosUtil; import com.blt.other.common.util.AxiosUtil;
import com.blt.other.module.cost.dto.CostApiDto;
import com.blt.other.module.cost.dto.UpdateCostResp; import com.blt.other.module.cost.dto.UpdateCostResp;
import com.blt.other.module.cost.model.CostDomain; import com.blt.other.module.cost.model.CostDomain;
import com.blt.other.module.cost.service.CostCashiercallbackService; import com.blt.other.module.cost.service.CostCashiercallbackService;
...@@ -14,7 +13,6 @@ import io.swagger.annotations.ApiOperation; ...@@ -14,7 +13,6 @@ import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.InputStreamResource; import org.springframework.core.io.InputStreamResource;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
......
package com.blt.other.module.cost.controller.costplan; package com.blt.other.module.cost.controller.costplan;
import com.blt.other.common.util.CurUtils; import com.blt.other.common.util.CurUtils;
import com.blt.other.module.cost.dto.CostPlanNewApiDto;
import com.blt.other.module.cost.dto.RestResp; import com.blt.other.module.cost.dto.RestResp;
import com.blt.other.module.cost.dto.SaveResp; import com.blt.other.module.cost.dto.SaveResp;
import com.blt.other.module.cost.service.CostPlanService; import com.blt.other.module.cost.service.CostPlanService;
......
...@@ -2,7 +2,7 @@ package com.blt.other.module.cost.controller.costtemplate; ...@@ -2,7 +2,7 @@ package com.blt.other.module.cost.controller.costtemplate;
import com.bailuntec.cost.api.response.CostResult; import com.bailuntec.cost.api.response.CostResult;
import com.blt.other.module.cost.dto.CostTemplateBaseColApiReq; import com.blt.other.module.cost.dto.AddReq;
import com.blt.other.module.cost.model.CostTemplateBaseCol; import com.blt.other.module.cost.model.CostTemplateBaseCol;
import com.blt.other.module.cost.service.ICostTemplateBaseColService; import com.blt.other.module.cost.service.ICostTemplateBaseColService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -37,7 +37,7 @@ public class CostTemplateBaseColController { ...@@ -37,7 +37,7 @@ public class CostTemplateBaseColController {
@ApiOperation("新增费用单基础字段") @ApiOperation("新增费用单基础字段")
@PostMapping("/add") @PostMapping("/add")
public CostResult<CostTemplateBaseCol> add(@RequestBody CostTemplateBaseColApiReq.AddReq req) { public CostResult<CostTemplateBaseCol> add(@RequestBody AddReq req) {
CostTemplateBaseCol costTemplateBaseCol = costTemplateBaseColService.add(req); CostTemplateBaseCol costTemplateBaseCol = costTemplateBaseColService.add(req);
return CostResult.success(costTemplateBaseCol); return CostResult.success(costTemplateBaseCol);
} }
......
...@@ -2,7 +2,7 @@ package com.blt.other.module.cost.controller.costtemplate; ...@@ -2,7 +2,7 @@ package com.blt.other.module.cost.controller.costtemplate;
import com.bailuntec.cost.api.response.CostResult; import com.bailuntec.cost.api.response.CostResult;
import com.blt.other.module.cost.dto.CostTemplateColApiReq; import com.blt.other.module.cost.dto.QueryListReq;
import com.blt.other.module.cost.model.CostTemplateCol; import com.blt.other.module.cost.model.CostTemplateCol;
import com.blt.other.module.cost.service.ICostTemplateColService; import com.blt.other.module.cost.service.ICostTemplateColService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -51,7 +51,7 @@ public class CostTemplateColController { ...@@ -51,7 +51,7 @@ public class CostTemplateColController {
@ApiOperation("/筛选费用单模版字段") @ApiOperation("/筛选费用单模版字段")
@PostMapping("/queryList") @PostMapping("/queryList")
public CostResult<List<CostTemplateCol>> queryList(@RequestBody CostTemplateColApiReq.QueryListReq req) { public CostResult<List<CostTemplateCol>> queryList(@RequestBody QueryListReq req) {
List<CostTemplateCol> resp = costTemplateColService.queryList(req); List<CostTemplateCol> resp = costTemplateColService.queryList(req);
return CostResult.success(resp); return CostResult.success(resp);
} }
......
...@@ -2,7 +2,7 @@ package com.blt.other.module.cost.controller.costtemplate; ...@@ -2,7 +2,7 @@ package com.blt.other.module.cost.controller.costtemplate;
import com.bailuntec.cost.api.response.CostResult; import com.bailuntec.cost.api.response.CostResult;
import com.blt.other.module.cost.dto.CostTemplateApiDto; import com.blt.other.module.cost.dto.QueryListReq;
import com.blt.other.module.cost.model.CostTemplate; import com.blt.other.module.cost.model.CostTemplate;
import com.blt.other.module.cost.service.ICostTemplateService; import com.blt.other.module.cost.service.ICostTemplateService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -51,7 +51,7 @@ public class CostTemplateController { ...@@ -51,7 +51,7 @@ public class CostTemplateController {
@ApiOperation("查询费用单模板列表") @ApiOperation("查询费用单模板列表")
@GetMapping("/queryList") @GetMapping("/queryList")
public CostResult<List<CostTemplate>> queryList(CostTemplateApiDto.QueryListReq req) { public CostResult<List<CostTemplate>> queryList(QueryListReq req) {
List<CostTemplate> costTemplateList = costTemplateService.queryList(req); List<CostTemplate> costTemplateList = costTemplateService.queryList(req);
return CostResult.success(costTemplateList); return CostResult.success(costTemplateList);
} }
......
...@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
...@@ -54,4 +55,25 @@ public class QueryListReq { ...@@ -54,4 +55,25 @@ public class QueryListReq {
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private LocalDateTime updateTimeEnd; private LocalDateTime updateTimeEnd;
/**/
private BigDecimal enableAutoReview;
private String templateName;
private BigDecimal enableDepartmentReview;
private BigDecimal enableFinalReview;
private BigDecimal enableFinancialAutoReview;
private LocalDateTime startTime;
private LocalDateTime endTime;
private LocalDateTime createStartTime;
private LocalDateTime createEndTime;
private Boolean setAutoCheck;
} }
package com.blt.other.module.cost.service; package com.blt.other.module.cost.service;
import com.blt.other.module.cost.dto.CostApiDto;
import com.blt.other.module.cost.dto.GetByKeyResp; import com.blt.other.module.cost.dto.GetByKeyResp;
import com.blt.other.module.cost.model.CostDomain; import com.blt.other.module.cost.model.CostDomain;
import com.blt.other.module.cost.vo.CostListSearchKeysVo; import com.blt.other.module.cost.vo.CostListSearchKeysVo;
......
package com.blt.other.module.cost.service; package com.blt.other.module.cost.service;
import com.blt.other.module.cost.dto.CostPlanApiDto;
import com.blt.other.module.cost.dto.SearchByKeyResp; import com.blt.other.module.cost.dto.SearchByKeyResp;
public interface CostPlanSearchService { public interface CostPlanSearchService {
......
package com.blt.other.module.cost.service; package com.blt.other.module.cost.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blt.other.module.cost.dto.CostPlanApiDto;
import com.blt.other.module.cost.dto.GetAllCostPlanReq; import com.blt.other.module.cost.dto.GetAllCostPlanReq;
import com.blt.other.module.cost.dto.GetAllCostPlanResp; import com.blt.other.module.cost.dto.GetAllCostPlanResp;
import com.blt.other.module.cost.dto.GetCostPlanResp; import com.blt.other.module.cost.dto.GetCostPlanResp;
......
...@@ -4,7 +4,6 @@ import com.bailuntec.cost.api.dto.CostDto; ...@@ -4,7 +4,6 @@ import com.bailuntec.cost.api.dto.CostDto;
import com.bailuntec.cost.api.dto.CostListPrintDto; import com.bailuntec.cost.api.dto.CostListPrintDto;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blt.other.module.cost.dto.CheckCostListReq; import com.blt.other.module.cost.dto.CheckCostListReq;
import com.blt.other.module.cost.dto.CostApiDto;
import com.blt.other.module.cost.dto.CostPageResult; import com.blt.other.module.cost.dto.CostPageResult;
import com.blt.other.module.cost.dto.UpdateCostResp; import com.blt.other.module.cost.dto.UpdateCostResp;
import com.blt.other.module.cost.model.CostDomain; import com.blt.other.module.cost.model.CostDomain;
......
package com.blt.other.module.cost.service; package com.blt.other.module.cost.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.blt.other.module.cost.dto.AddReq;
import com.blt.other.module.cost.dto.CostTemplateBaseColApiReq; import com.blt.other.module.cost.dto.CostTemplateBaseColApiReq;
import com.blt.other.module.cost.model.CostTemplateBaseCol; import com.blt.other.module.cost.model.CostTemplateBaseCol;
import com.blt.other.module.cost.model.CostTemplateCol; import com.blt.other.module.cost.model.CostTemplateCol;
...@@ -34,7 +35,7 @@ public interface ICostTemplateBaseColService extends IService<CostTemplateBaseCo ...@@ -34,7 +35,7 @@ public interface ICostTemplateBaseColService extends IService<CostTemplateBaseCo
* *
* @param req req * @param req req
*/ */
CostTemplateBaseCol add(CostTemplateBaseColApiReq.AddReq req); CostTemplateBaseCol add(AddReq req);
/** /**
* <p> * <p>
......
package com.blt.other.module.cost.service; package com.blt.other.module.cost.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.blt.other.module.cost.dto.CostTemplateColApiReq; import com.blt.other.module.cost.dto.QueryListReq;
import com.blt.other.module.cost.model.CostTemplate; import com.blt.other.module.cost.model.CostTemplate;
import com.blt.other.module.cost.model.CostTemplateCol; import com.blt.other.module.cost.model.CostTemplateCol;
...@@ -71,7 +71,7 @@ public interface ICostTemplateColService extends IService<CostTemplateCol> { ...@@ -71,7 +71,7 @@ public interface ICostTemplateColService extends IService<CostTemplateCol> {
* @param req req * @param req req
* @return res * @return res
*/ */
List<CostTemplateCol> queryList(CostTemplateColApiReq.QueryListReq req); List<CostTemplateCol> queryList(QueryListReq req);
/** /**
* <p> * <p>
......
package com.blt.other.module.cost.service; package com.blt.other.module.cost.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.blt.other.module.cost.dto.CostTemplateApiDto; import com.blt.other.module.cost.dto.QueryListReq;
import com.blt.other.module.cost.model.CostTemplate; import com.blt.other.module.cost.model.CostTemplate;
import org.springframework.lang.Nullable; import org.springframework.lang.Nullable;
...@@ -62,5 +62,5 @@ public interface ICostTemplateService extends IService<CostTemplate> { ...@@ -62,5 +62,5 @@ public interface ICostTemplateService extends IService<CostTemplate> {
* @param req req * @param req req
* @return * @return
*/ */
List<CostTemplate> queryList(CostTemplateApiDto.QueryListReq req); List<CostTemplate> queryList(QueryListReq req);
} }
...@@ -3,7 +3,6 @@ package com.blt.other.module.cost.service.impl; ...@@ -3,7 +3,6 @@ package com.blt.other.module.cost.service.impl;
import com.bailuntec.cost.api.dto.CostDto; import com.bailuntec.cost.api.dto.CostDto;
import com.blt.other.module.cost.dao.CostDao; import com.blt.other.module.cost.dao.CostDao;
import com.blt.other.module.cost.dao.CostListSearchDao; import com.blt.other.module.cost.dao.CostListSearchDao;
import com.blt.other.module.cost.dto.CostApiDto;
import com.blt.other.module.cost.dto.GetByKeyResp; import com.blt.other.module.cost.dto.GetByKeyResp;
import com.blt.other.module.cost.model.CostDomain; import com.blt.other.module.cost.model.CostDomain;
import com.blt.other.module.cost.service.CostListSearchService; import com.blt.other.module.cost.service.CostListSearchService;
......
...@@ -24,7 +24,6 @@ import com.blt.other.module.auth.model.OaUser; ...@@ -24,7 +24,6 @@ import com.blt.other.module.auth.model.OaUser;
import com.blt.other.module.auth.service.UserService; import com.blt.other.module.auth.service.UserService;
import com.blt.other.module.cost.dao.*; import com.blt.other.module.cost.dao.*;
import com.blt.other.module.cost.dto.CheckCostListReq; import com.blt.other.module.cost.dto.CheckCostListReq;
import com.blt.other.module.cost.dto.CostApiDto;
import com.blt.other.module.cost.dto.CostPageResult; import com.blt.other.module.cost.dto.CostPageResult;
import com.blt.other.module.cost.dto.UpdateCostResp; import com.blt.other.module.cost.dto.UpdateCostResp;
import com.blt.other.module.cost.model.CostDetailDomain; import com.blt.other.module.cost.model.CostDetailDomain;
......
...@@ -5,7 +5,6 @@ import com.bailuntec.cost.api.dto.CostPlanDto; ...@@ -5,7 +5,6 @@ import com.bailuntec.cost.api.dto.CostPlanDto;
import com.blt.other.common.exception.BizRuntimeException; import com.blt.other.common.exception.BizRuntimeException;
import com.blt.other.module.auth.dao.UserDao; import com.blt.other.module.auth.dao.UserDao;
import com.blt.other.module.cost.dao.*; import com.blt.other.module.cost.dao.*;
import com.blt.other.module.cost.dto.CostPlanApiDto;
import com.blt.other.module.cost.dto.GetAllCostPlanReq; import com.blt.other.module.cost.dto.GetAllCostPlanReq;
import com.blt.other.module.cost.dto.GetAllCostPlanResp; import com.blt.other.module.cost.dto.GetAllCostPlanResp;
import com.blt.other.module.cost.dto.GetCostPlanResp; import com.blt.other.module.cost.dto.GetCostPlanResp;
......
...@@ -5,7 +5,7 @@ import com.bailuntec.common.ListUtil; ...@@ -5,7 +5,7 @@ import com.bailuntec.common.ListUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blt.other.module.auth.dao.UserDao; import com.blt.other.module.auth.dao.UserDao;
import com.blt.other.module.cost.dao.CostTemplateBaseColMapper; import com.blt.other.module.cost.dao.CostTemplateBaseColMapper;
import com.blt.other.module.cost.dto.CostTemplateBaseColApiReq; import com.blt.other.module.cost.dto.AddReq;
import com.blt.other.module.cost.model.CostTemplateBaseCol; import com.blt.other.module.cost.model.CostTemplateBaseCol;
import com.blt.other.module.cost.model.CostTemplateCol; import com.blt.other.module.cost.model.CostTemplateCol;
import com.blt.other.module.cost.service.ICostTemplateBaseColService; import com.blt.other.module.cost.service.ICostTemplateBaseColService;
...@@ -36,7 +36,7 @@ public class CostTemplateBaseColServiceImpl extends ServiceImpl<CostTemplateBase ...@@ -36,7 +36,7 @@ public class CostTemplateBaseColServiceImpl extends ServiceImpl<CostTemplateBase
} }
@Override @Override
public CostTemplateBaseCol add(CostTemplateBaseColApiReq.AddReq req) { public CostTemplateBaseCol add(AddReq req) {
if (!req.getIsExtension()) { if (!req.getIsExtension()) {
throw new RuntimeException("只能添加扩展字段"); throw new RuntimeException("只能添加扩展字段");
} }
...@@ -47,8 +47,6 @@ public class CostTemplateBaseColServiceImpl extends ServiceImpl<CostTemplateBase ...@@ -47,8 +47,6 @@ public class CostTemplateBaseColServiceImpl extends ServiceImpl<CostTemplateBase
} }
@Override @Override
public void modify(CostTemplateBaseCol costTemplateBaseCol) { public void modify(CostTemplateBaseCol costTemplateBaseCol) {
this.updateById(costTemplateBaseCol); this.updateById(costTemplateBaseCol);
......
...@@ -8,7 +8,7 @@ import com.blt.other.common.exception.BizRuntimeException; ...@@ -8,7 +8,7 @@ import com.blt.other.common.exception.BizRuntimeException;
import com.blt.other.module.auth.dao.UserDao; import com.blt.other.module.auth.dao.UserDao;
import com.blt.other.module.cost.dao.CostCompanyDao; import com.blt.other.module.cost.dao.CostCompanyDao;
import com.blt.other.module.cost.dao.CostTemplateColMapper; import com.blt.other.module.cost.dao.CostTemplateColMapper;
import com.blt.other.module.cost.dto.CostTemplateColApiReq; import com.blt.other.module.cost.dto.QueryListReq;
import com.blt.other.module.cost.model.CostTemplate; import com.blt.other.module.cost.model.CostTemplate;
import com.blt.other.module.cost.model.CostTemplateCol; import com.blt.other.module.cost.model.CostTemplateCol;
import com.blt.other.module.cost.service.ICostTemplateBaseColService; import com.blt.other.module.cost.service.ICostTemplateBaseColService;
...@@ -128,7 +128,7 @@ public class CostTemplateColServiceImpl extends ServiceImpl<CostTemplateColMappe ...@@ -128,7 +128,7 @@ public class CostTemplateColServiceImpl extends ServiceImpl<CostTemplateColMappe
} }
@Override @Override
public List<CostTemplateCol> queryList(CostTemplateColApiReq.QueryListReq req) { public List<CostTemplateCol> queryList(QueryListReq req) {
return costTemplateService.queryDetail(req.getCostTemplateId()).getCostTemplateColList() return costTemplateService.queryDetail(req.getCostTemplateId()).getCostTemplateColList()
.stream() .stream()
......
...@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; ...@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blt.other.module.auth.service.UserService; import com.blt.other.module.auth.service.UserService;
import com.blt.other.module.cost.dao.CostTemplateMapper; import com.blt.other.module.cost.dao.CostTemplateMapper;
import com.blt.other.module.cost.dto.CostTemplateApiDto; import com.blt.other.module.cost.dto.QueryListReq;
import com.blt.other.module.cost.model.CostTemplate; import com.blt.other.module.cost.model.CostTemplate;
import com.blt.other.module.cost.model.CostTemplateBaseCol; import com.blt.other.module.cost.model.CostTemplateBaseCol;
import com.blt.other.module.cost.model.CostTemplateCol; import com.blt.other.module.cost.model.CostTemplateCol;
...@@ -97,7 +97,7 @@ public class CostTemplateServiceImpl extends ServiceImpl<CostTemplateMapper, Cos ...@@ -97,7 +97,7 @@ public class CostTemplateServiceImpl extends ServiceImpl<CostTemplateMapper, Cos
} }
@Override @Override
public List<CostTemplate> queryList(CostTemplateApiDto.QueryListReq req) { public List<CostTemplate> queryList(QueryListReq req) {
LambdaQueryWrapper<CostTemplate> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CostTemplate> wrapper = new LambdaQueryWrapper<>();
if (req.getEnableAutoReview() != null) { if (req.getEnableAutoReview() != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment