Browse Source

Merge remote-tracking branch 'origin/master'

master
fanzongzhe 2 years ago
parent
commit
3580f19680
  1. 4
      anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/basevehicleactualsales/BaseVehicleActualSalesService.java
  2. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busdeliveredapply/AppDeliveredApplyPageVo.java
  3. 3
      anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyMapper.xml
  4. 19
      anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyService.java
  5. 1
      anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busmaindeposit/BusMainDepositService.java
  6. 2
      anrui-buscenter/anrui-finmanage-ui/src/utils/request.js
  7. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutions/app/SolutionsDetailsVo.java
  8. 3
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutions/app/SolutionsDto.java
  9. 3
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutionsotherpolicy/LoanSolutionsOtherpolicy.java
  10. 11
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java
  11. 2
      anrui-scm/anrui-scm-api/src/main/java/com/yxt/anrui/scm/api/scmvehiclegression/AppScmVehicleGressionPageVo.java
  12. 3
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehiclegression/ScmVehicleGressionMapper.xml
  13. 10
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehiclegression/ScmVehicleGressionService.java
  14. 45
      anrui-scm/anrui-scm-ui/src/views/weishoumaiduan/weishoumaiduanguanli/unsoldAdd.vue
  15. 72
      anrui-terminal/anrui-terminal-biz/src/main/java/com/yxt/anrui/terminal/biz/app/AppService.java

4
anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/basevehicleactualsales/BaseVehicleActualSalesService.java

@ -441,11 +441,11 @@ public class BaseVehicleActualSalesService extends MybatisBaseService<BaseVehicl
if (r == 0) {
return rb.setMsg("操作失败!提交的数据不一致");
}
if ("1".equals(dto.getIsPay())) {
/*if ("1".equals(dto.getIsPay())) {
if (new BigDecimal(dto.getMoney()).compareTo(new BigDecimal(dto.getPayAccountAll())) != 0) {
return rb.setMsg("买断费用合计与付款费用合计不一致,不允许提交");
}
}
}*/
//保存或修改未售买断申请
dto.setOrgSidPath(orgSidPath);
ResultBean<String> resultBean = saveOrUpdateVehicleSales(dto);

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busdeliveredapply/AppDeliveredApplyPageVo.java

@ -34,4 +34,6 @@ public class AppDeliveredApplyPageVo implements Vo {
@ApiModelProperty("车架号")
private String vinNo;
private String createBySid;
}

3
anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyMapper.xml

@ -51,7 +51,8 @@
DATE_FORMAT(bd.createTime, '%Y-%m-%d') as `date`,
(select CONCAT_WS(',', group_concat(vinNo))
from bus_delivered_apply_details bss
where bss.applySid = bd.sid) as vinNo
where bss.applySid = bd.sid) as vinNo,
bd.createBySid
FROM bus_delivered_apply bd
<where>
${ew.sqlSegment}

19
anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyService.java

@ -1582,6 +1582,23 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp
}
IPage<AppDeliveredApplyPageQuery> page = PagerUtil.queryToPage(pagerQuery);
IPage<AppDeliveredApplyPageVo> iPage = baseMapper.getRetrievalApplyList(page, qw, pagerQuery.getParams().getName());
List<AppDeliveredApplyPageVo> records = iPage.getRecords();
records.removeAll(Collections.singleton(null));
if(!records.isEmpty()){
for (AppDeliveredApplyPageVo appDeliveredApplyPageVo : records){
if(query.getUserSid().equals(appDeliveredApplyPageVo.getCreateBySid()) && appDeliveredApplyPageVo.isShowDelete()){
appDeliveredApplyPageVo.setShowDelete(true);
}else{
appDeliveredApplyPageVo.setShowDelete(false);
}
if(query.getUserSid().equals(appDeliveredApplyPageVo.getCreateBySid()) && appDeliveredApplyPageVo.isShowUpdata()){
appDeliveredApplyPageVo.setShowUpdata(true);
}else{
appDeliveredApplyPageVo.setShowUpdata(false);
}
}
}
PagerVo<AppDeliveredApplyPageVo> p = PagerUtil.pageToVo(iPage, null);
return p;
}
@ -2129,6 +2146,8 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp
}else{
variables.put("isDanBao",false);
}
}else{
variables.put("isDanBao",false);
}
}else{
variables.put("isDanBao",false);

1
anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busmaindeposit/BusMainDepositService.java

@ -1229,6 +1229,7 @@ public class BusMainDepositService extends MybatisBaseService<BusMainDepositMapp
busMainDeposit.setDepositBillType("车辆预订");
busMainDeposit.setDepositBillTypeKey("02");
busMainDeposit.setCreateDate(dateFormat.format(new Date()));
busMainDeposit.setOrgSidPath(dto.getOrgPath());
// 车辆客户信息
BusDepositVehicleCustomer customer = new BusDepositVehicleCustomer();

2
anrui-buscenter/anrui-finmanage-ui/src/utils/request.js

@ -7,7 +7,7 @@ import { getToken, getStorage } from '@/utils/auth'
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 30000 // request timeout
timeout: 60000 // request timeout
})
// request interceptor

5
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutions/app/SolutionsDetailsVo.java

@ -4,6 +4,8 @@ import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
/**
* @Author dimengzhe
* @Date 2023/3/22 11:40
@ -162,6 +164,9 @@ public class SolutionsDetailsVo implements Vo {
@ApiModelProperty("上装成交价")
private String szPrice;
@ApiModelProperty("实际首付比例")
private String downPayAmountsRatio;
}

3
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutions/app/SolutionsDto.java

@ -159,4 +159,7 @@ public class SolutionsDto implements Dto {
@ApiModelProperty("名义留购价")
private String nominalPrice;
@ApiModelProperty("实际首付比例")
private String downPayAmountsRatio;
}

3
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loansolutionsotherpolicy/LoanSolutionsOtherpolicy.java

@ -79,5 +79,8 @@ public class LoanSolutionsOtherpolicy extends BaseEntity {
@ApiModelProperty("其它融年利率")
private String otherPolicyYearRatio;
@ApiModelProperty("实际首付比例")
private String downPayAmountsRatio;
}

11
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java

@ -438,6 +438,12 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
} else {
monthlyRepay = monthlyRepay1.toString() + "/-";
}
//实际首付比例
String downPayAmountsRatio = "";
BigDecimal downPayAmountsRatio1 = loanDownPay.divide(loanTotal, 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
downPayAmountsRatio = downPayAmountsRatio1.toString() + "%";
loanSolutionsOtherpolicy.setDownPayAmountsRatio(downPayAmountsRatio);
//预计首期还款日
String returnTime = dto.getReturnTime();
@ -458,6 +464,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
BigDecimal loanAmountTotal = new BigDecimal(BigInteger.ZERO);
loanAmountTotal = loanAmountTotal.add(loanAmount).add(otherPolicyAmount1);
loanSolutionsOtherpolicy.setLoanAmountTotal(loanAmountTotal);
//实际首付比例
String downPayAmountsRatio = "";
BigDecimal downPayAmountsRatio1 = loanDownPay.divide(loanTotal, 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
downPayAmountsRatio = downPayAmountsRatio1.toString() + "%";
loanSolutionsOtherpolicy.setDownPayAmountsRatio(downPayAmountsRatio);
//期数 = 其它融期数拼接剩余期数(6/18)
int i = Integer.valueOf(loanPeriod) - ii;
String period = ii + "/" + i;

2
anrui-scm/anrui-scm-api/src/main/java/com/yxt/anrui/scm/api/scmvehiclegression/AppScmVehicleGressionPageVo.java

@ -86,4 +86,6 @@ public class AppScmVehicleGressionPageVo implements Vo {
@ApiModelProperty("实例id")
private String procInstId;
private String createBySid;
}

3
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehiclegression/ScmVehicleGressionMapper.xml

@ -57,7 +57,8 @@
svg.applicantDate as applyDate,
svg.applicantFunds as applyPrice,
svg.taskId,
svg.procInstId
svg.procInstId,
svg.createBySid
FROM scm_vehicle_gression svg
left join scm_vehicle_gression_veh svgg on svg.sid = svgg.mainSid
<where>

10
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehiclegression/ScmVehicleGressionService.java

@ -481,6 +481,16 @@ public class ScmVehicleGressionService extends MybatisBaseService<ScmVehicleGres
for (AppScmVehicleGressionPageVo record : records) {
List<ScmVehicleGressionVehVo> scmVehicleGressionVehVos = scmVehicleGressionVehService.selectInfoVoByMainSid(record.getSid());
record.setScmVehicleGressionVehs(scmVehicleGressionVehVos);
if(query.getUserSid().equals(record.getCreateBySid()) && record.isShowDetectBtn()){
record.setShowDetectBtn(true);
}else{
record.setShowDetectBtn(false);
}
if(query.getUserSid().equals(record.getCreateBySid()) && record.isShowUpdateBtn()){
record.setShowUpdateBtn(true);
}else{
record.setShowUpdateBtn(false);
}
if ("已办结".equals(record.getState())) {
record.setShowDownloadBtn(true);
//查询出门证

45
anrui-scm/anrui-scm-ui/src/views/weishoumaiduan/weishoumaiduanguanli/unsoldAdd.vue

@ -9,7 +9,7 @@
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="save()">保存
</el-button>
<el-button type="primary" size="small" @click="submitVehicleApply()">提交
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submitVehicleApply()">提交
</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
@ -459,14 +459,11 @@ export default {
if (valid) {
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((resp) => {
this.submitdisabled = false
if (resp.success) {
this.$message({
showClose: true,
type: 'success',
message: resp.msg
})
this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
@ -477,23 +474,22 @@ export default {
})
},
submitVehicleApply() {
if (this.formobj.isPay == '1' && this.formobj.payAccountAll !== this.formobj.money) {
this.$message({ showClose: true, type: 'error', message: '因买断金额合计与付款金额合计不一致,提交失败' })
return
}
req.submitVehicleApply(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '提交成功'
})
this.handleReturn('true')
} else {
this.$message({
showClose: true,
type: 'error',
message: '提交失败'
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.submitVehicleApply(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '提交成功'
})
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
@ -575,6 +571,7 @@ export default {
purchaseSystemName: ''
}
this.dialogStatus = ''
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')
},

72
anrui-terminal/anrui-terminal-biz/src/main/java/com/yxt/anrui/terminal/biz/app/AppService.java

@ -45,33 +45,47 @@ public class AppService {
ResultBean<FlowRecordVo> resultBean = flowTaskFeign.businessFlowRecord(procInsId);
List<AppFlowableRecordVo> voList = Optional.ofNullable(resultBean.getData().getFlowList()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), AppFlowableRecordVo.class)).collect(Collectors.toList());
voList.removeAll(Collections.singleton(null));
for (int i = 0; i < voList.size(); i++) {
AppFlowableRecordVo vo = voList.get(i);
if (vo.getFinishTime() != null) {
AppFlowCommentVo commentVo = vo.getComment();
//类型
String type = commentVo.getType();
String comment = commentVo.getComment();
if (StringUtils.isNotBlank(comment)) {
vo.setContent(comment);
}
String stateValue = FlowComment.getRemarkByType(type);
if (StringUtils.isNotBlank(stateValue)) {
String processEndTime = vo.getProcessEndTime();
vo.setStateValue(stateValue);
if (StringUtils.isNotBlank(processEndTime) && i == 0 && !"6".equals(type)) {
if (!voList.isEmpty()) {
for (int i = 0; i < voList.size(); i++) {
AppFlowableRecordVo vo = voList.get(i);
if (vo.getFinishTime() != null) {
AppFlowCommentVo commentVo = vo.getComment();
//类型
String type = commentVo.getType();
String comment = commentVo.getComment();
if (StringUtils.isNotBlank(comment)) {
vo.setContent(comment);
}
String stateValue = FlowComment.getRemarkByType(type);
if (StringUtils.isNotBlank(stateValue)) {
String processEndTime = vo.getProcessEndTime();
vo.setStateValue(stateValue);
/* if (StringUtils.isNotBlank(processEndTime) && i == 0 && !"6".equals(type)) {
vo.setStateValue("已办结");//流程已办结
}*/
if (StringUtils.isNotBlank(processEndTime) && i == voList.size() - 1 && !"6".equals(type)) {
voList.get(i - 1).setStateValue("已办结");//流程已办结
}
}
}
if (StringUtils.isNotBlank(type)) {
/* if (StringUtils.isNotBlank(type)) {
String processEndTime = vo.getProcessEndTime();
vo.setStateKey(type);
if (StringUtils.isNotBlank(processEndTime) && i == 0 && !"6".equals(type)) {
vo.setStateKey("8");//流程已办结
}
}*/
if (StringUtils.isNotBlank(type)) {
String processEndTime = vo.getProcessEndTime();
vo.setStateKey(type);
if (StringUtils.isNotBlank(processEndTime) && i == voList.size() - 1 && !"6".equals(type)) {
voList.get(i - 1).setStateKey("8");//流程已办结
}
}
}
}
}
return rb.success().setData(voList);
}
@ -87,9 +101,9 @@ public class AppService {
a.setFlowableRecordVo(f);
a.setState(0 + "");
List<AppUserVo> taskUserInfos = f.getTaskUserInfos();
if(taskUserInfos.size() == 1){
if (taskUserInfos.size() == 1) {
AppUserVo appUserVo = taskUserInfos.get(0);
if("admin".equals(appUserVo.getAssigneeName())){
if ("admin".equals(appUserVo.getAssigneeName())) {
return;
}
}
@ -106,20 +120,20 @@ public class AppService {
list.add(a);
});
// list.sort((t1, t2) -> t2.getTime().compareTo(t1.getTime()));
if(progressList.size()>0){
AppFlowableRecordVo appFlowableRecordVo = progressList.get(progressList.size()-1);
if(!"Event_end".equals(appFlowableRecordVo.getTaskDefKey())){
if (progressList.size() > 0) {
AppFlowableRecordVo appFlowableRecordVo = progressList.get(progressList.size() - 1);
if (!"Event_end".equals(appFlowableRecordVo.getTaskDefKey())) {
String proDefId = appFlowableRecordVo.getProcDefId();
Map<String,Object> map = appFlowableRecordVo.getProcVars();
Map<String, Object> map = appFlowableRecordVo.getProcVars();
FlowableQuery flowableQuery = new FlowableQuery();
flowableQuery.setModelId(proDefId);
flowableQuery.setTaskDefKey(appFlowableRecordVo.getTaskDefKey());
flowableQuery.setMap(map);
ResultBean<List<Map<String,Object>>> resultBean = flowTaskFeign.yuyanTest(flowableQuery);
if(resultBean.getData() != null){
if(!resultBean.getData().isEmpty()){
List<Map<String,Object>> mapList = resultBean.getData();
mapList.forEach(f->{
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.yuyanTest(flowableQuery);
if (resultBean.getData() != null) {
if (!resultBean.getData().isEmpty()) {
List<Map<String, Object>> mapList = resultBean.getData();
mapList.forEach(f -> {
AppFlowableRecordAndCommentVo a = new AppFlowableRecordAndCommentVo();
AppFlowableRecordVo app = new AppFlowableRecordVo();
app.setTaskName(f.get("nodeName").toString());
@ -131,7 +145,7 @@ public class AppService {
}
}
}
list.sort(Comparator.nullsLast(Comparator.comparing(AppFlowableRecordAndCommentVo::getTime,nullComparator)));
list.sort(Comparator.nullsLast(Comparator.comparing(AppFlowableRecordAndCommentVo::getTime, nullComparator)));
return rb.success().setData(list);
}

Loading…
Cancel
Save