|
|
@@ -70,8 +70,8 @@ public class CarSettleController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/feeDetail")
|
|
|
- @ApiOperation(value = "根据订单号查询费用明细")
|
|
|
- public HttpResult queryFeeDetail(@RequestSingleParam(value = "orderNo") String orderNo) {
|
|
|
+ @ApiOperation(value = "[2]根据订单号查询费用明细")
|
|
|
+ public HttpResult<OrderVo> queryFeeDetail(@RequestSingleParam(value = "orderNo") @Valid String orderNo) {
|
|
|
//查询已承保的子订单号
|
|
|
List<InsAreaCompany> areaList =insAreaCompanyService.query()
|
|
|
.eq(StringUtils.isNotEmpty(orderNo),"orderno",orderNo)
|
|
|
@@ -88,15 +88,20 @@ public class CarSettleController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/auditFee")
|
|
|
- @ApiOperation(value = "费用审核")
|
|
|
+ @ApiOperation(value = "[3]费用审核")
|
|
|
public HttpResult auditFee(@RequestSingleParam(value = "orderNo") String orderNo) {
|
|
|
+ //查询改订单是已审核
|
|
|
+ List<InsFeeAudit> feeList =insFeeAuditService.query().eq("orderno",orderNo).list();
|
|
|
+ if(feeList!=null &&feeList.size()>0){
|
|
|
+ return HttpResult.error("该订单已审核");
|
|
|
+ }
|
|
|
//查询已承保的子订单号
|
|
|
List<InsAreaCompany> areaList =insAreaCompanyService.query()
|
|
|
.eq(StringUtils.isNotEmpty(orderNo),"orderno",orderNo)
|
|
|
.eq("orderstatus","3").list();//3已承保
|
|
|
if(areaList!=null && areaList.size()>0){
|
|
|
InsFeeAudit insFeeAudit=new InsFeeAudit();
|
|
|
- insFeeAudit.setInsOrderNo(orderNo);
|
|
|
+ insFeeAudit.setOrderno(orderNo);
|
|
|
insFeeAudit.setInsOrderNo(areaList.get(0).getInsOrderNo());
|
|
|
insFeeAudit.setAuditstatus("1");
|
|
|
insFeeAudit.setAudittime(LocalDateTime.now());
|