Browse Source

修改

zhanglei
ligaode 4 weeks ago
parent
commit
4756a74701
  1. 18
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/fincollectionconfirmation/FinCollectionConfirmationService.java
  2. 2
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finselectedreceivablesdetailed/FinSelectedReceivablesDetailedMapper.java
  3. 4
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finselectedreceivablesdetailed/FinSelectedReceivablesDetailedService.java
  4. 8
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanbecollectionveh/LoanBeCollectionVehFeign.java
  5. 67
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanbecollectionveh/LoanBeCollectionVehFeignFallback.java
  6. 37
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFeign.java
  7. 72
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFeignFallback.java
  8. 22
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbecollectionveh/LoanBeCollectionVehRest.java
  9. 13
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbecollectionveh/LoanBeCollectionVehService.java
  10. 23
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehMapper.java
  11. 7
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehMapper.xml
  12. 51
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehRest.java
  13. 35
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehService.java

18
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/fincollectionconfirmation/FinCollectionConfirmationService.java

@ -99,6 +99,7 @@ import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign;
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery;
import com.yxt.anrui.portal.api.sysuser.SysUserFeign;
import com.yxt.anrui.portal.api.sysuser.SysUserVo;
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehFeign;
import com.yxt.anrui.riskcenter.api.loandiff.LoanDiffFeign;
import com.yxt.anrui.riskcenter.api.loandiff.LoanDiffsDto;
import com.yxt.anrui.riskcenter.api.loandiffdetails.LoanDiffDetailssDto;
@ -123,6 +124,8 @@ import com.yxt.anrui.riskcenter.api.loansettleapply.SettleFinVo;
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutions;
import com.yxt.anrui.riskcenter.api.loansolutionsdetail.LoanSolutionsDetail;
import com.yxt.anrui.riskcenter.api.loansolutionsotherpolicy.LoanSolutionsOtherpolicy;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign;
import com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebateDto;
import com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebateFeign;
import com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebateVehDto;
@ -234,6 +237,10 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl
private SysMappingFeign sysMappingFeign;
@Autowired
private LoanRestoreReportApplyFeign loanRestoreReportApplyFeign;
@Autowired
private LoanVehClearanceVehFeign loanVehClearanceVehFeign;
@Autowired
private LoanBeCollectionVehFeign loanBeCollectionVehFeign;
private QueryWrapper<FinCollectionConfirmation> createQueryWrapper(FinCollectionConfirmationQuery query) {
// todo: 这里根据具体业务调整查询条件
@ -4341,6 +4348,15 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl
//与收款金额作比较:更新认款状态 1未认款/2部分认款/3已认款
confirmation.setPaymentState(3);
baseMapper.updateById(confirmation);
//修改控制状态
FinSelectedReceivablesDetailedVo finSelectedReceivablesDetailedVo = finSelectedReceivablesDetailedService.fetchKzfByCillSid(confirmation.getSid());
if (finSelectedReceivablesDetailedVo != null) {
FinUncollectedReceivablesDetailedJR finUncollectedReceivablesDetailedJR = finUncollectedReceivablesDetailedJRService.fetchBySid(finSelectedReceivablesDetailedVo.getReceivablesSid());
List<LoanVehClearanceVehDetailsVo> data = loanVehClearanceVehFeign.selByMainSid(finUncollectedReceivablesDetailedJR.getApplySid()).getData();
for (LoanVehClearanceVehDetailsVo datum : data) {
loanBeCollectionVehFeign.updateLockState(datum.getSaleVehSid(), "3", "4");
}
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat sdfTimes = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String collectionDate = confirmation.getCollectionDate();
@ -4689,8 +4705,6 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl
collectionAfterVoucher.setVoucherDetails(collectionAfterVoucherDetails);
finKingDeeFeignRest.saveFeeVoucher(collectionAfterVoucher);
}
return rb.success().setMsg("款项确认成功");
}

2
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finselectedreceivablesdetailed/FinSelectedReceivablesDetailedMapper.java

@ -72,6 +72,8 @@ public interface FinSelectedReceivablesDetailedMapper extends BaseMapper<FinSele
@Select("select * from fin_selected_receivables_detailed where collSid = #{sid}")
List<FinSelectedReceivablesDetailedVo> fetchByCillSid(String sid);
@Select("select * from fin_selected_receivables_detailed where collSid = #{collSid} and receivablesName = '远程控制费'")
FinSelectedReceivablesDetailedVo fetchKzfByCillSid(String collSid);
/**
* 手机端查询可使用款项明细列表

4
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finselectedreceivablesdetailed/FinSelectedReceivablesDetailedService.java

@ -906,4 +906,8 @@ public class FinSelectedReceivablesDetailedService extends MybatisBaseService<Fi
BigDecimal rkMoney = baseMapper.selRkByBillSid(billSid);
return rb.success().setData(rkMoney);
}
public FinSelectedReceivablesDetailedVo fetchKzfByCillSid(String collSid) {
return baseMapper.fetchKzfByCillSid(collSid);
}
}

8
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanbecollectionveh/LoanBeCollectionVehFeign.java

@ -37,8 +37,7 @@ import org.springframework.web.bind.annotation.*;
@FeignClient(
contextId = "anrui-riskcenter-LoanBeCollectionVeh",
name = "anrui-riskcenter",
path = "v1/loanbecollectionveh",
fallback = LoanBeCollectionVehFeignFallback.class)
path = "v1/loanbecollectionveh")
public interface LoanBeCollectionVehFeign {
@ApiOperation("根据条件分页查询数据的列表")
@ -70,4 +69,9 @@ public interface LoanBeCollectionVehFeign {
@PostMapping("/saveDbr")
@ResponseBody
public ResultBean saveDbr(@RequestBody LoanBeCollectionVehDbrDto dto);
@ApiOperation("修改控制状态")
@GetMapping("/updateLockState")
@ResponseBody
ResultBean updateLockState(@RequestParam("saleVehSid") String saleVehSid, @RequestParam("s") String s, @RequestParam("x") String x);
}

67
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanbecollectionveh/LoanBeCollectionVehFeignFallback.java

@ -1,67 +0,0 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanbecollectionveh;
import com.yxt.common.core.query.PagerQuery;
import com.yxt.common.core.result.ResultBean;
import com.yxt.common.core.vo.PagerVo;
import org.springframework.stereotype.Component;
@Component
public class LoanBeCollectionVehFeignFallback implements LoanBeCollectionVehFeign {
@Override
public ResultBean<PagerVo<LoanBeCollectionVehVo>> listPage(PagerQuery<LoanBeCollectionVehQuery> pq){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanbecollectionveh/listPage无法访问");
}
@Override
public ResultBean save(LoanBeCollectionVehDto dto){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanbecollectionveh/save无法访问");
}
@Override
public ResultBean delBySids( String[] sids){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanbecollectionveh/delBySids无法访问");
}
@Override
public ResultBean<LoanBeCollectionVehDetailsVo> fetchDetailsBySid(String sid){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanbecollectionveh/fetchDetailsBySid无法访问");
}
@Override
public ResultBean<LoanBeCollectionVehDbrDetailsVo> initDbr(String saleVehSid) {
return null;
}
@Override
public ResultBean saveDbr(LoanBeCollectionVehDbrDto dto) {
return null;
}
}

37
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFeign.java

@ -35,44 +35,15 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceVehFeign.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "车辆远程解控车辆")
@FeignClient(
contextId = "anrui-riskcenter-LoanVehClearanceVeh",
name = "anrui-riskcenter",
path = "v1/loanvehclearanceveh",
fallback = LoanVehClearanceVehFeignFallback.class)
path = "v1/loanvehclearanceveh")
public interface LoanVehClearanceVehFeign {
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
@ApiOperation("根据申请sid获取子表")
@GetMapping("/selByMainSid/{sid}")
@ResponseBody
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceVehQuery> pq);
@ApiOperation("新增或修改")
@PostMapping("/save")
@ResponseBody
public ResultBean save(@RequestBody LoanVehClearanceVehDto dto);
@ApiOperation("根据sid删除记录")
@DeleteMapping("/delBySids")
@ResponseBody
public ResultBean delBySids(@RequestBody String[] sids);
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
@ResponseBody
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid);
ResultBean<List<LoanVehClearanceVehDetailsVo>> selByMainSid(@PathVariable("applySid") String applySid);
}

72
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanvehclearanceveh/LoanVehClearanceVehFeignFallback.java

@ -1,72 +0,0 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.anrui.riskcenter.api.loanvehclearanceveh;
import com.yxt.common.core.query.PagerQuery;
import com.yxt.common.core.result.ResultBean;
import com.yxt.common.core.vo.PagerVo;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceVehFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeignFallback <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Component
public class LoanVehClearanceVehFeignFallback implements LoanVehClearanceVehFeign {
@Override
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(PagerQuery<LoanVehClearanceVehQuery> pq){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceveh/listPage无法访问");
}
@Override
public ResultBean save(LoanVehClearanceVehDto dto){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceveh/save无法访问");
}
@Override
public ResultBean delBySids( String[] sids){
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loanvehclearanceveh/delBySids无法访问");
}
@Override
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(String sid){
ResultBean rb = ResultBean.fireFail();
return rb.setMsg("接口anrui-riskcenter/loanvehclearanceveh/fetchDetailsBySid无法访问");
}
}

22
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbecollectionveh/LoanBeCollectionVehRest.java

@ -37,21 +37,8 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* Project: anrui-riskcenter(催收措施申请) <br/>
* File: LoanBeCollectionVehFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanbecollectionveh.LoanBeCollectionVehRest <br/>
* Description: 逾期催收车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-12 16:06:20 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "逾期催收车辆")
@RestController("com.yxt.anrui.riskcenter.biz.loanbecollectionveh.LoanBeCollectionVehRest")
@RestController
@RequestMapping("v1/loanbecollectionveh")
public class LoanBeCollectionVehRest implements LoanBeCollectionVehFeign {
@ -107,4 +94,11 @@ public class LoanBeCollectionVehRest implements LoanBeCollectionVehFeign {
loanBeCollectionVehService.saveDbr(dto);
return rb.success();
}
@Override
public ResultBean updateLockState(String saleVehSid, String s, String x) {
ResultBean rb = ResultBean.fireFail();
loanBeCollectionVehService.updateLockState(saleVehSid, s, x);
return rb.success();
}
}

13
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbecollectionveh/LoanBeCollectionVehService.java

@ -56,19 +56,6 @@ import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* Project: anrui-riskcenter(催收措施申请) <br/>
* File: LoanBeCollectionVehService.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanbecollectionveh.LoanBeCollectionVehService <br/>
* Description: 逾期催收车辆 业务逻辑. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-12 16:06:20 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Service
public class LoanBeCollectionVehService extends MybatisBaseService<LoanBeCollectionVehMapper, LoanBeCollectionVeh> {

23
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehMapper.java

@ -39,32 +39,9 @@ import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceVehMapper.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehMapper <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Mapper
public interface LoanVehClearanceVehMapper extends BaseMapper<LoanVehClearanceVeh> {
//@Update("update loan_veh_clearance_veh set name=#{msg} where id=#{id}")
//IPage<LoanVehClearanceVehVo> voPage(IPage<LoanVehClearanceVeh> page, @Param(Constants.WRAPPER) QueryWrapper<LoanVehClearanceVeh> qw);
IPage<LoanVehClearanceVehVo> selectPageVo(IPage<LoanVehClearanceVeh> page, @Param(Constants.WRAPPER) Wrapper<LoanVehClearanceVeh> qw);
List<LoanVehClearanceVehVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanVehClearanceVeh> qw);
@Select("select * from loan_veh_clearance_veh")
List<LoanVehClearanceVehVo> selectListVo();
@Delete("delete from loan_veh_clearance_veh where mainSid = #{dtoSid}")
void delByMainSid(String dtoSid);

7
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehMapper.xml

@ -3,11 +3,4 @@
<mapper namespace="com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehMapper">
<!-- <where> ${ew.sqlSegment} </where>-->
<!-- ${ew.customSqlSegment} -->
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo">
SELECT * FROM loan_veh_clearance_veh <where> ${ew.sqlSegment} </where>
</select>
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo">
SELECT * FROM loan_veh_clearance_veh <where> ${ew.sqlSegment} </where>
</select>
</mapper>

51
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehRest.java

@ -34,6 +34,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVeh;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehQuery;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehVo;
@ -41,21 +42,8 @@ import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetai
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDto;
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFeign;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceVehFeignFallback.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehRest <br/>
* Description: 车辆远程解控车辆. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Api(tags = "车辆远程解控车辆")
@RestController("com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehRest")
@RestController
@RequestMapping("v1/loanvehclearanceveh")
public class LoanVehClearanceVehRest implements LoanVehClearanceVehFeign {
@ -63,38 +51,9 @@ public class LoanVehClearanceVehRest implements LoanVehClearanceVehFeign {
private LoanVehClearanceVehService loanVehClearanceVehService;
@Override
@ApiOperation("根据条件分页查询数据的列表")
@PostMapping("/listPage")
public ResultBean<PagerVo<LoanVehClearanceVehVo>> listPage(@RequestBody PagerQuery<LoanVehClearanceVehQuery> pq){
ResultBean rb = ResultBean.fireFail();
PagerVo<LoanVehClearanceVehVo> pv = loanVehClearanceVehService.listPageVo(pq);
return rb.success().setData(pv);
}
@Override
@ApiOperation("新增或修改")
@PostMapping("/save")
public ResultBean save(@RequestBody LoanVehClearanceVehDto dto){
ResultBean rb = ResultBean.fireFail();
loanVehClearanceVehService.saveOrUpdateDto(dto);
return rb.success();
}
@Override
@ApiOperation("根据sid批量删除")
@PostMapping("/delBySids")
public ResultBean delBySids(@RequestBody String[] sids){
ResultBean rb = ResultBean.fireFail();
loanVehClearanceVehService.delBySids(sids);
return rb.success();
}
@Override
@ApiOperation("根据SID获取一条记录")
@GetMapping("/fetchDetailsBySid/{sid}")
public ResultBean<LoanVehClearanceVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
public ResultBean<List<LoanVehClearanceVehDetailsVo>> selByMainSid(String applySid) {
ResultBean rb = ResultBean.fireFail();
LoanVehClearanceVehDetailsVo vo = loanVehClearanceVehService.fetchDetailsVoBySid(sid);
return rb.success().setData(vo);
List<LoanVehClearanceVehDetailsVo> loanVehClearanceVehDetailsVos = loanVehClearanceVehService.selByMainSid(applySid);
return rb.success().setData(loanVehClearanceVehDetailsVos);
}
}

35
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanvehclearanceveh/LoanVehClearanceVehService.java

@ -45,36 +45,8 @@ import org.springframework.stereotype.Service;
import java.util.List;
/**
* Project: anrui-riskcenter(车辆远程解控申请) <br/>
* File: LoanVehClearanceVehService.java <br/>
* Class: com.yxt.anrui.riskcenter.biz.loanvehclearanceveh.LoanVehClearanceVehService <br/>
* Description: 车辆远程解控车辆 业务逻辑. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2023-12-29 10:25:57 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Service
public class LoanVehClearanceVehService extends MybatisBaseService<LoanVehClearanceVehMapper, LoanVehClearanceVeh> {
private QueryWrapper<LoanVehClearanceVeh> createQueryWrapper(LoanVehClearanceVehQuery query) {
// todo: 这里根据具体业务调整查询条件
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
QueryWrapper<LoanVehClearanceVeh> qw = new QueryWrapper<>();
return qw;
}
public PagerVo<LoanVehClearanceVehVo> listPageVo(PagerQuery<LoanVehClearanceVehQuery> pq) {
LoanVehClearanceVehQuery query = pq.getParams();
QueryWrapper<LoanVehClearanceVeh> qw = createQueryWrapper(query);
IPage<LoanVehClearanceVeh> page = PagerUtil.queryToPage(pq);
IPage<LoanVehClearanceVehVo> pagging = baseMapper.selectPageVo(page, qw);
PagerVo<LoanVehClearanceVehVo> p = PagerUtil.pageToVo(pagging, null);
return p;
}
public void saveOrUpdateDto(LoanVehClearanceVehDto dto) {
String dtoSid = dto.getSid();
@ -101,13 +73,6 @@ public class LoanVehClearanceVehService extends MybatisBaseService<LoanVehCleara
baseMapper.updateById(entity);
}
public LoanVehClearanceVehDetailsVo fetchDetailsVoBySid(String sid){
LoanVehClearanceVeh entity = fetchBySid(sid);
LoanVehClearanceVehDetailsVo vo = new LoanVehClearanceVehDetailsVo();
BeanUtil.copyProperties(entity, vo);
return vo;
}
public void delByMainSid(String dtoSid) {
baseMapper.delByMainSid(dtoSid);
}

Loading…
Cancel
Save