Browse Source

更改

master
ligaode 3 months ago
parent
commit
e53c742b21
  1. 2
      anrui-scm/anrui-scm-api/src/main/java/com/yxt/anrui/scm/api/scmspecialrebate/ScmSpecialRebateVo.java
  2. 8
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmspecialrebate/ScmSpecialRebateMapper.xml
  3. 6
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmspecialrebate/ScmSpecialRebateRest.java
  4. 10
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmspecialrebate/ScmSpecialRebateService.java
  5. 11
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebate/ScmVehRebateMapper.xml
  6. 15
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebate/ScmVehRebateRest.java
  7. 10
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebate/ScmVehRebateService.java

2
anrui-scm/anrui-scm-api/src/main/java/com/yxt/anrui/scm/api/scmspecialrebate/ScmSpecialRebateVo.java

@ -142,4 +142,6 @@ public class ScmSpecialRebateVo implements Vo {
private BigDecimal notUploadMoney;
@ApiModelProperty("二次核对状态")
private String secondCheckState;
@ApiModelProperty("备注")
private String remarks;
}

8
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmspecialrebate/ScmSpecialRebateMapper.xml

@ -8,7 +8,7 @@
expectItureCost + expectTreatCost + expectSuppCost AS expectCost,
expectItureCost + expectTreatCost + expectSuppCost AS withholdCost,
onceItureCost + onceTreatCost + onceSuppCost + secondItureCost + secondTreatCost + secondSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney
FROM scm_special_rebate
<where>
${ew.sqlSegment}
@ -129,7 +129,7 @@
*,
expectItureCost + expectTreatCost + expectSuppCost AS withholdCost,
onceItureCost + onceTreatCost + onceSuppCost + secondItureCost + secondTreatCost + secondSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney,
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney,
IF(secondaryUploadMoney > 0 AND isAdjustment = '是','是','否') AS secondCheckState,
@row_number := @row_number + 1 AS rankNo
FROM scm_special_rebate,(
@ -145,7 +145,7 @@
SELECT *,
expectItureCost + expectTreatCost + expectSuppCost AS withholdCost,
onceItureCost + onceTreatCost + onceSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney,
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney,
IF(secondaryUploadMoney > 0 AND isAdjustment = '是','是','否') AS secondCheckState,
IF(
uploadDate IS NOT NULL
@ -167,7 +167,7 @@
SELECT *,
expectItureCost + expectTreatCost + expectSuppCost AS withholdCost,
onceItureCost + onceTreatCost + onceSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney,
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney,
IF(secondaryUploadMoney > 0 AND isAdjustment = '是','是','否') AS secondCheckState,
IF(
uploadDate IS NOT NULL

6
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmspecialrebate/ScmSpecialRebateRest.java

@ -64,10 +64,6 @@ public class ScmSpecialRebateRest implements ScmSpecialRebateFeign {
@Autowired
private ScmSpecialRebateService scmSpecialRebateService;
@Autowired
private ScmSpecialRebateWithService scmSpecialRebateWithService;
@Autowired
private ScmSpecialRebateWithApplyService scmSpecialRebateWithApplyService;
@Autowired
HttpServletResponse response;
@Override
@ -242,7 +238,7 @@ public class ScmSpecialRebateRest implements ScmSpecialRebateFeign {
ScmSpecialRebate scmSpecialRebate = scmSpecialRebateService.fetchBySid(sid);
Integer state = scmSpecialRebate.getState();
if (state != 0) {
return rb.setMsg("请选择状态为未预提的记录删除");
return rb.setMsg("请选择流程状态为未预提的记录删除");
}
}
scmSpecialRebateService.delBySids(sids);

10
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmspecialrebate/ScmSpecialRebateService.java

@ -1939,6 +1939,11 @@ public class ScmSpecialRebateService extends MybatisBaseService<ScmSpecialRebate
List<OneExcelVo> oneExcelVos = baseMapper.excelListOne(qw);
for (OneExcelVo oneExcelVo : oneExcelVos) {
oneExcelVo.setCreateTime(DateUtil.formatDate(DateUtil.parseDate(oneExcelVo.getCreateTime())));
if ("1".equals(oneExcelVo.getOnceCheckState())){
oneExcelVo.setOnceCheckState("是");
}else {
oneExcelVo.setOnceCheckState("否");
}
}
return oneExcelVos;
}
@ -2010,6 +2015,11 @@ public class ScmSpecialRebateService extends MybatisBaseService<ScmSpecialRebate
List<TwoExcelVo> twoExcelVos = baseMapper.excelListTwo(qw);
for (TwoExcelVo twoExcelVo : twoExcelVos) {
twoExcelVo.setCreateTime(DateUtil.formatDate(DateUtil.parseDate(twoExcelVo.getCreateTime())));
if ("1".equals(twoExcelVo.getOnceCheckState())){
twoExcelVo.setOnceCheckState("是");
}else {
twoExcelVo.setOnceCheckState("否");
}
}
return twoExcelVos;
}

11
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebate/ScmVehRebateMapper.xml

@ -10,7 +10,8 @@
expectTreatCost + expectSuppCost AS expectCost,
expectTreatCost + expectSuppCost AS withholdCost,
onceTreatCost + onceSuppCost + secondTreatCost + secondSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney,
IF(secondaryUploadMoney > 0 AND isAdjustment = '是','是','否') AS secondCheckState
FROM
scm_veh_rebate
<where>
@ -68,7 +69,7 @@
*,
expectTreatCost + expectSuppCost AS withholdCost,
onceTreatCost + onceSuppCost + secondTreatCost + secondSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney,
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney,
IF(secondaryUploadMoney > 0 AND isAdjustment = '是','是','否') AS secondCheckState,
@row_number := @row_number + 1 AS rankNo
FROM
@ -86,7 +87,7 @@
*,
expectTreatCost + expectSuppCost AS withholdCost,
onceTreatCost + onceSuppCost + secondTreatCost + secondSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney,
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney,
IF(secondaryUploadMoney > 0 AND isAdjustment = '是','是','否') AS secondCheckState,
IF(
uploadDate IS NOT NULL
@ -110,7 +111,7 @@
*,
expectTreatCost + expectSuppCost AS withholdCost,
onceTreatCost + onceSuppCost + secondTreatCost + secondSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney,
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney,
IF(secondaryUploadMoney > 0 AND isAdjustment = '是','是','否') AS secondCheckState,
IF(
uploadDate IS NOT NULL
@ -168,7 +169,7 @@
expectTreatCost + expectSuppCost AS expectCost,
expectTreatCost + expectSuppCost AS withholdCost,
onceTreatCost + onceSuppCost + secondTreatCost + secondSuppCost AS money,
estimateRebate - uploadMoney - secondaryUploadMoney + adjustmentMoney AS notUploadMoney
estimateRebate - IFNULL(uploadMoney,0) - IFNULL(secondaryUploadMoney,0) + IFNULL(adjustmentMoney,0) AS notUploadMoney
FROM
scm_veh_rebate
<where>

15
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebate/ScmVehRebateRest.java

@ -148,8 +148,6 @@ public class ScmVehRebateRest implements ScmVehRebateFeign {
tempRow.setHeight((short) 500);
// 循环单元格填入数据
for (int j = 0; j < 30; j++) {
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
sheet.autoSizeColumn(j, true);
XSSFCell tempCell = tempRow.createCell(j);
tempCell.setCellStyle(contentStyle);
String tempValue = "";
@ -246,6 +244,8 @@ public class ScmVehRebateRest implements ScmVehRebateFeign {
break;
}
tempCell.setCellValue(tempValue);
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
sheet.autoSizeColumn(j, true);
}
}
//导出到浏览器下载
@ -350,8 +350,6 @@ public class ScmVehRebateRest implements ScmVehRebateFeign {
tempRow.setHeight((short) 500);
// 循环单元格填入数据
for (int j = 0; j < 26; j++) {
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
sheet.autoSizeColumn(j, true);
XSSFCell tempCell = tempRow.createCell(j);
tempCell.setCellStyle(contentStyle);
String tempValue = "";
@ -436,6 +434,8 @@ public class ScmVehRebateRest implements ScmVehRebateFeign {
break;
}
tempCell.setCellValue(tempValue);
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
sheet.autoSizeColumn(j, true);
}
}
//导出到浏览器下载
@ -502,8 +502,6 @@ public class ScmVehRebateRest implements ScmVehRebateFeign {
tempRow.setHeight((short) 500);
// 循环单元格填入数据
for (int j = 0; j < 26; j++) {
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
sheet.autoSizeColumn(j, true);
XSSFCell tempCell = tempRow.createCell(j);
tempCell.setCellStyle(contentStyle);
String tempValue = "";
@ -588,6 +586,8 @@ public class ScmVehRebateRest implements ScmVehRebateFeign {
break;
}
tempCell.setCellValue(tempValue);
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
sheet.autoSizeColumn(j, true);
}
}
//导出到浏览器下载
@ -633,7 +633,7 @@ public class ScmVehRebateRest implements ScmVehRebateFeign {
ScmVehRebate scmVehRebate = scmVehRebateService.fetchBySid(sid);
Integer state = scmVehRebate.getState();
if (state != 0) {
return rb.setMsg("请选择状态为未预提的记录删除");
return rb.setMsg("请选择流程状态为未预提的记录删除");
}
}
scmVehRebateService.delBySids(sids);
@ -733,7 +733,6 @@ public class ScmVehRebateRest implements ScmVehRebateFeign {
cellStyle.setBorderLeft(BorderStyle.THIN); //左边框
cellStyle.setBorderRight(BorderStyle.THIN); //右边框
cellStyle.setBorderTop(BorderStyle.THIN); //上边框
// 生成12号字体
XSSFFont font = wb.createFont();
font.setColor((short) 8);

10
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehrebate/ScmVehRebateService.java

@ -591,6 +591,11 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper,
List<OneExcelVo> oneExcelVos = baseMapper.excelListOne(qw);
for (OneExcelVo oneExcelVo : oneExcelVos) {
oneExcelVo.setCreateTime(DateUtil.formatDate(DateUtil.parseDate(oneExcelVo.getCreateTime())));
if ("1".equals(oneExcelVo.getOnceCheckState())){
oneExcelVo.setOnceCheckState("是");
}else {
oneExcelVo.setOnceCheckState("否");
}
}
return oneExcelVos;
}
@ -671,6 +676,11 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper,
List<TwoExcelVo> twoExcelVos = baseMapper.excelListTwo(qw);
for (TwoExcelVo twoExcelVo : twoExcelVos) {
twoExcelVo.setCreateTime(DateUtil.formatDate(DateUtil.parseDate(twoExcelVo.getCreateTime())));
if ("1".equals(twoExcelVo.getOnceCheckState())){
twoExcelVo.setOnceCheckState("是");
}else {
twoExcelVo.setOnceCheckState("否");
}
}
return twoExcelVos;
}

Loading…
Cancel
Save