Commit 2793ccaa by 张富康

feat(manager-review): 新增运营经理审核功能模块

- 新增 ManagerReviewController 控制器,集成运营经理审核分页查询、单条审核、批量审核及驳回接口
- 支持运营经理审核采购订单 Excel 异步导出及同步导出功能
- 优化导出逻辑,新增查询和转换方法以适配经理审核数据展示
- 在 OperatorReviewController 和 PurchaseOrderController 中加入经理审核相关状态值处理
- 修改 DirectorReviewController 和相关 VO,修正价格显示及状态替换配置,增加经理审核状态支持
- 更新 SmartCarLifeDubboConfig,新增 ManagerReviewRemote Bean 配置
- 将项目版本号更新至 5.8.0.1-SNAPSHOT
1 parent 9122f8e2
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<properties> <properties>
<shopmall.api.version>5.6.4-SNAPSHOT</shopmall.api.version> <shopmall.api.version>5.6.4-SNAPSHOT</shopmall.api.version>
<stoassistant.api.version>5.6.4-SNAPSHOT</stoassistant.api.version> <stoassistant.api.version>5.6.4-SNAPSHOT</stoassistant.api.version>
<smartcarlife.api.version>5.7.0-SNAPSHOT</smartcarlife.api.version> <smartcarlife.api.version>5.8.0.1-SNAPSHOT</smartcarlife.api.version>
</properties> </properties>
<dependencies> <dependencies>
<!-- RAR解压依赖 --> <!-- RAR解压依赖 -->
......
...@@ -464,6 +464,11 @@ public class SmartCarLifeDubboConfig extends DubboConfig { ...@@ -464,6 +464,11 @@ public class SmartCarLifeDubboConfig extends DubboConfig {
} }
@Bean @Bean
public ManagerReviewRemote managerReviewRemote(){
return factory.builder(ManagerReviewRemote.class).check(check).version("1.0.0").timeout(timeout).build();
}
@Bean
public BusinessReviewRemote businessReviewRemote(){ public BusinessReviewRemote businessReviewRemote(){
return factory.builder(BusinessReviewRemote.class).check(check).version("1.0.0").timeout(timeout).build(); return factory.builder(BusinessReviewRemote.class).check(check).version("1.0.0").timeout(timeout).build();
} }
......
...@@ -59,7 +59,7 @@ public class DirectorReviewController { ...@@ -59,7 +59,7 @@ public class DirectorReviewController {
private PurchaseOrderGoodsCarTypeRemote purchaseOrderGoodsCarTypeRemote; private PurchaseOrderGoodsCarTypeRemote purchaseOrderGoodsCarTypeRemote;
private static final List<Byte> DIRECTOR_REVIEW_ORDER_STATUSES = Arrays.asList( private static final List<Byte> DIRECTOR_REVIEW_ORDER_STATUSES = Arrays.asList(
PurchaseOrderEnum.OrderStatus.OPERATOR_CHECKED.getValue(), PurchaseOrderEnum.OrderStatus.MANAGER_CHECKED.getValue(),
PurchaseOrderEnum.OrderStatus.DIRECTOR_CHECKED.getValue(), PurchaseOrderEnum.OrderStatus.DIRECTOR_CHECKED.getValue(),
PurchaseOrderEnum.OrderStatus.DIRECTOR_REJECT.getValue(), PurchaseOrderEnum.OrderStatus.DIRECTOR_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.BUSINESS_CHECKED.getValue(), PurchaseOrderEnum.OrderStatus.BUSINESS_CHECKED.getValue(),
...@@ -111,9 +111,7 @@ public class DirectorReviewController { ...@@ -111,9 +111,7 @@ public class DirectorReviewController {
@ApiOperation("总监审核excel导出(异步)") @ApiOperation("总监审核excel导出(异步)")
@ServiceMethod(method="dj.api.life.directorreview.exportExcel.async", needInSession= NeedInSessionType.NO) @ServiceMethod(method="dj.api.life.directorreview.exportExcel.async", needInSession= NeedInSessionType.NO)
public RopResponse<String> directorReviewExportExcelAsync(DirectorReviewRequest request) { public RopResponse<String> directorReviewExportExcelAsync(DirectorReviewRequest request) {
return excelAsyncImportService.exportAsync(request, request1 -> return excelAsyncImportService.exportAsync(request, this::queryDirectorReviewAndExportData);
queryDirectorReviewAndExportData(request1)
);
} }
@ApiOperation("总监审核excel导出") @ApiOperation("总监审核excel导出")
...@@ -160,7 +158,7 @@ public class DirectorReviewController { ...@@ -160,7 +158,7 @@ public class DirectorReviewController {
DirectorReviewExportVO excel = PurchaseOrderPageDTOConvert.INSTANCE.toDirectorReviewExportVO(dto); DirectorReviewExportVO excel = PurchaseOrderPageDTOConvert.INSTANCE.toDirectorReviewExportVO(dto);
excel.setIndex(index); excel.setIndex(index);
if (dto.getTotalPrice()!=null){ if (dto.getTotalPrice()!=null){
excel.setTotalPrice(null != dto.getTotalPrice() ? "¥"+ dto.getTotalPrice().toString() : ""); excel.setTotalPrice(null != dto.getTotalPrice() ? "¥"+ dto.getTotalPrice() : "");
} }
// 为了导出显示的已驳回状态正常 // 为了导出显示的已驳回状态正常
if (dto.getStatus() != null) { if (dto.getStatus() != null) {
......
...@@ -61,6 +61,7 @@ public class OperatorReviewController { ...@@ -61,6 +61,7 @@ public class OperatorReviewController {
@Autowired @Autowired
private ExcelAsyncImportService excelAsyncImportService; private ExcelAsyncImportService excelAsyncImportService;
@Autowired @Autowired
private PurchaseOrderGoodsCarTypeRemote purchaseOrderGoodsCarTypeRemote; private PurchaseOrderGoodsCarTypeRemote purchaseOrderGoodsCarTypeRemote;
...@@ -74,7 +75,10 @@ public class OperatorReviewController { ...@@ -74,7 +75,10 @@ public class OperatorReviewController {
PurchaseOrderEnum.OrderStatus.BUSINESS_REJECT.getValue(), PurchaseOrderEnum.OrderStatus.BUSINESS_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.DELIVERY_REJECT.getValue(), PurchaseOrderEnum.OrderStatus.DELIVERY_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.DIRECTOR_CHECKED.getValue(), PurchaseOrderEnum.OrderStatus.DIRECTOR_CHECKED.getValue(),
PurchaseOrderEnum.OrderStatus.DIRECTOR_REJECT.getValue() PurchaseOrderEnum.OrderStatus.DIRECTOR_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.MANAGER_CHECKED.getValue(),
PurchaseOrderEnum.OrderStatus.MANAGER_REJECTED.getValue()
); );
...@@ -199,8 +203,7 @@ public class OperatorReviewController { ...@@ -199,8 +203,7 @@ public class OperatorReviewController {
@ApiOperation("运营审核·excel导出(异步)") @ApiOperation("运营审核·excel导出(异步)")
@ServiceMethod(method="dj.api.life.operatorreview.exportExcel.async", needInSession= NeedInSessionType.NO) @ServiceMethod(method="dj.api.life.operatorreview.exportExcel.async", needInSession= NeedInSessionType.NO)
public RopResponse<String> operatorReviewExportExcelAsync(OperatorReviewRequest request) { public RopResponse<String> operatorReviewExportExcelAsync(OperatorReviewRequest request) {
return excelAsyncImportService.exportAsync(request, request1 -> return excelAsyncImportService.exportAsync(request, this::queryOperatorReviewAndExportData
queryOperatorReviewAndExportData(request1)
); );
} }
...@@ -260,12 +263,15 @@ public class OperatorReviewController { ...@@ -260,12 +263,15 @@ public class OperatorReviewController {
if (dto.getStatus() != null) { if (dto.getStatus() != null) {
if (Arrays.asList( if (Arrays.asList(
PurchaseOrderEnum.OrderStatus.BUSINESS_REJECT.getValue(), PurchaseOrderEnum.OrderStatus.BUSINESS_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.MANAGER_REJECTED.getValue(),
PurchaseOrderEnum.OrderStatus.DELIVERY_REJECT.getValue(), PurchaseOrderEnum.OrderStatus.DELIVERY_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.DIRECTOR_REJECT.getValue()) PurchaseOrderEnum.OrderStatus.DIRECTOR_REJECT.getValue())
.contains(dto.getStatus())) { .contains(dto.getStatus())) {
excel.setStatus(PurchaseOrderEnum.OrderStatus.OPERATOR_REJECT.getValue()); excel.setStatus(PurchaseOrderEnum.OrderStatus.OPERATOR_REJECT.getValue());
} }
if (PurchaseOrderEnum.OrderStatus.BUSINESS_CHECKED.getValue() == dto.getStatus() || PurchaseOrderEnum.OrderStatus.DIRECTOR_CHECKED.getValue() == dto.getStatus()) { if (PurchaseOrderEnum.OrderStatus.BUSINESS_CHECKED.getValue() == dto.getStatus()
|| PurchaseOrderEnum.OrderStatus.MANAGER_CHECKED.getValue() == dto.getStatus()
|| PurchaseOrderEnum.OrderStatus.DIRECTOR_CHECKED.getValue() == dto.getStatus()) {
excel.setStatus(PurchaseOrderEnum.OrderStatus.OPERATOR_CHECKED.getValue()); excel.setStatus(PurchaseOrderEnum.OrderStatus.OPERATOR_CHECKED.getValue());
} }
} }
......
...@@ -228,8 +228,7 @@ public class PurchaseOrderController { ...@@ -228,8 +228,7 @@ public class PurchaseOrderController {
@ApiOperation("导出采购订单(异步)") @ApiOperation("导出采购订单(异步)")
@ServiceMethod(method = "dj.api.smarcarlife.purchaseOrder.export.async", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.api.smarcarlife.purchaseOrder.export.async", needInSession = NeedInSessionType.YES)
public RopResponse<String> listExportVOAsync(PurchaseOrderPageRequest request) { public RopResponse<String> listExportVOAsync(PurchaseOrderPageRequest request) {
return excelAsyncImportService.exportAsync(request, this::queryAndExportData);
return excelAsyncImportService.exportAsync(request, request1 -> queryAndExportData(request1));
} }
...@@ -271,7 +270,8 @@ public class PurchaseOrderController { ...@@ -271,7 +270,8 @@ public class PurchaseOrderController {
&& Arrays.asList( && Arrays.asList(
PurchaseOrderEnum.OrderStatus.BUSINESS_REJECT.getValue(), PurchaseOrderEnum.OrderStatus.BUSINESS_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.DELIVERY_REJECT.getValue(), PurchaseOrderEnum.OrderStatus.DELIVERY_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.DIRECTOR_REJECT.getValue() PurchaseOrderEnum.OrderStatus.DIRECTOR_REJECT.getValue(),
PurchaseOrderEnum.OrderStatus.MANAGER_REJECTED.getValue()
) )
.contains(vo.getStatus())) { .contains(vo.getStatus())) {
vo.setStatus(PurchaseOrderEnum.OrderStatus.OPERATOR_REJECT.getValue()); vo.setStatus(PurchaseOrderEnum.OrderStatus.OPERATOR_REJECT.getValue());
......
...@@ -66,7 +66,7 @@ public class DirectorReviewExportVO implements Serializable { ...@@ -66,7 +66,7 @@ public class DirectorReviewExportVO implements Serializable {
private Byte deliveryStatus; private Byte deliveryStatus;
@ExcelMergeRow(columIndex = 11) @ExcelMergeRow(columIndex = 11)
@ExcelValueReplace(replace={"待审核_2","已审核_8","已驳回_9"}) @ExcelValueReplace(replace={"待审核_10","已审核_8","已驳回_9"})
@ExcelProperty(value = "状态",converter= ReplaceByteToStringConvert.class) @ExcelProperty(value = "状态",converter= ReplaceByteToStringConvert.class)
private Byte status; private Byte status;
......
...@@ -92,7 +92,7 @@ public class PurchaseOrderExportVo implements Serializable{ ...@@ -92,7 +92,7 @@ public class PurchaseOrderExportVo implements Serializable{
*/ */
@ExcelMergeRow(columIndex = 11) @ExcelMergeRow(columIndex = 11)
@ExcelProperty(converter = ReplaceByteToStringConvert.class) @ExcelProperty(converter = ReplaceByteToStringConvert.class)
@ExcelValueReplace(replace={"运营审核_1","总监审核_2","已取消_3","已驳回_4","已审核_5","商务审核_8"}) @ExcelValueReplace(replace={"运营审核_1","经理审核_2","已取消_3","已驳回_4","已审核_5","商务审核_8", "经理审核_10"})
private Byte status; private Byte status;
@ExcelMergeRow(columIndex = 12) @ExcelMergeRow(columIndex = 12)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!