|
@@ -6,15 +6,25 @@ import com.ydtech.modules.admin.model.vo.SysUserBankCardVO;
|
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
|
import com.ydtech.modules.fnc.entity.InsPlyIncome;
|
|
import com.ydtech.modules.fnc.entity.InsPlyIncome;
|
|
|
import com.ydtech.modules.fnc.entity.SettlementDocumentaryFeesEntity;
|
|
import com.ydtech.modules.fnc.entity.SettlementDocumentaryFeesEntity;
|
|
|
|
|
+import com.ydtech.modules.fnc.service.ImportAsyncService;
|
|
|
import com.ydtech.modules.fnc.service.InsPlyIncomeService;
|
|
import com.ydtech.modules.fnc.service.InsPlyIncomeService;
|
|
|
import com.ydtech.modules.fnc.vo.InsPlyIncomeVo;
|
|
import com.ydtech.modules.fnc.vo.InsPlyIncomeVo;
|
|
|
import com.ydtech.modules.fnc.vo.SettlementDocumentaryFeesVo;
|
|
import com.ydtech.modules.fnc.vo.SettlementDocumentaryFeesVo;
|
|
|
|
|
+import com.ydtech.modules.inv.model.dto.InsBxNoPlyIncomeExcelDto;
|
|
|
|
|
+import com.ydtech.modules.inv.model.dto.InsBxOtherExcelDto;
|
|
|
|
|
+import com.ydtech.modules.inv.model.dto.InsBxPlyIncomeExcelDto;
|
|
|
|
|
+import com.ydtech.modules.inv.model.dto.InsNoBxOtherExcelDto;
|
|
|
import com.ydtech.modules.order.entity.BasePageResult;
|
|
import com.ydtech.modules.order.entity.BasePageResult;
|
|
|
import com.ydtech.modules.order.entity.InsOrders;
|
|
import com.ydtech.modules.order.entity.InsOrders;
|
|
|
import com.ydtech.modules.order.entity.vo.OrderQueryVo;
|
|
import com.ydtech.modules.order.entity.vo.OrderQueryVo;
|
|
|
|
|
+import com.ydtech.utils.SnowFlakeUtil;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
import com.ydtech.utils.StringUtils;
|
|
|
|
|
+import com.ydtech.utils.excel.ExcelEasypoiUtils;
|
|
|
|
|
+import com.ydtech.utils.idgen.IdWorker;
|
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.http.HttpStatus;
|
|
|
|
|
+import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
@@ -23,12 +33,14 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
|
+import java.io.InputStream;
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
|
import java.time.Period;
|
|
import java.time.Period;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.concurrent.CompletableFuture;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* <p>
|
|
* <p>
|
|
@@ -45,65 +57,78 @@ public class InsPlyIncomeController extends BaseController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private InsPlyIncomeService insPlyIncomeService;
|
|
private InsPlyIncomeService insPlyIncomeService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ImportAsyncService importAsyncService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- *
|
|
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/queryPage")
|
|
@PostMapping("/queryPage")
|
|
|
@ApiOperation(value = "[1]保司费用查询")
|
|
@ApiOperation(value = "[1]保司费用查询")
|
|
|
public HttpResult<BasePageResult<InsPlyIncome>> queryPage(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<BasePageResult<InsPlyIncome>> queryPage(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
|
|
|
- if(StringUtils.isNullOrEmpty(insPlyIncomeVo.getCompanyId())
|
|
|
|
|
|
|
+ if (StringUtils.isNullOrEmpty(insPlyIncomeVo.getCompanyId())
|
|
|
&& StringUtils.isNullOrEmpty(insPlyIncomeVo.getStartDate())
|
|
&& StringUtils.isNullOrEmpty(insPlyIncomeVo.getStartDate())
|
|
|
&& StringUtils.isNullOrEmpty(insPlyIncomeVo.getEndDate())
|
|
&& StringUtils.isNullOrEmpty(insPlyIncomeVo.getEndDate())
|
|
|
&& StringUtils.isNullOrEmpty(insPlyIncomeVo.getLicenseno())
|
|
&& StringUtils.isNullOrEmpty(insPlyIncomeVo.getLicenseno())
|
|
|
- ){
|
|
|
|
|
|
|
+ ) {
|
|
|
return HttpResult.error("查询条件不能全为空!");
|
|
return HttpResult.error("查询条件不能全为空!");
|
|
|
}
|
|
}
|
|
|
- if(!StringUtils.isNullOrEmpty(insPlyIncomeVo.getStartDate())
|
|
|
|
|
- &&!StringUtils.isNullOrEmpty(insPlyIncomeVo.getEndDate())
|
|
|
|
|
- &&Period.between(insPlyIncomeVo.getStartDate(),insPlyIncomeVo.getEndDate()).getDays()>100
|
|
|
|
|
- ){
|
|
|
|
|
|
|
+ if (!StringUtils.isNullOrEmpty(insPlyIncomeVo.getStartDate())
|
|
|
|
|
+ && !StringUtils.isNullOrEmpty(insPlyIncomeVo.getEndDate())
|
|
|
|
|
+ && Period.between(insPlyIncomeVo.getStartDate(), insPlyIncomeVo.getEndDate()).getDays() > 100
|
|
|
|
|
+ ) {
|
|
|
return HttpResult.error("查询时间区间不能超过3个月!");
|
|
return HttpResult.error("查询时间区间不能超过3个月!");
|
|
|
}
|
|
}
|
|
|
- if(StringUtils.isNullOrEmpty(insPlyIncomeVo.getDeptId())){
|
|
|
|
|
|
|
+ if (StringUtils.isNullOrEmpty(insPlyIncomeVo.getDeptId())) {
|
|
|
insPlyIncomeVo.setDeptId(getDeptId());
|
|
insPlyIncomeVo.setDeptId(getDeptId());
|
|
|
}
|
|
}
|
|
|
- HttpResult<BasePageResult<InsPlyIncome>> result=insPlyIncomeService.queryplyIncome(insPlyIncomeVo);
|
|
|
|
|
|
|
+ HttpResult<BasePageResult<InsPlyIncome>> result = insPlyIncomeService.queryplyIncome(insPlyIncomeVo);
|
|
|
|
|
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/query")
|
|
@PostMapping("/query")
|
|
|
@ApiOperation(value = "[1]保司费用查询new")
|
|
@ApiOperation(value = "[1]保司费用查询new")
|
|
|
public HttpResult<BasePageResult<InsPlyIncome>> query(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<BasePageResult<InsPlyIncome>> query(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
|
|
|
- HttpResult<BasePageResult<InsPlyIncome>> result=insPlyIncomeService.queryNew(insPlyIncomeVo);
|
|
|
|
|
|
|
+ HttpResult<BasePageResult<InsPlyIncome>> result = insPlyIncomeService.queryNew(insPlyIncomeVo);
|
|
|
|
|
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/totalAmount")
|
|
@PostMapping("/totalAmount")
|
|
|
@ApiModelProperty(value = "平台手续费合计金额")
|
|
@ApiModelProperty(value = "平台手续费合计金额")
|
|
|
- public HttpResult<HashMap<String,Object>>totalAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
- if(!CollectionUtils.isEmpty(insPlyIncomeVo.getSelectIds())){
|
|
|
|
|
- HashMap<String,Object> result = insPlyIncomeService.totalAmount(insPlyIncomeVo.getSelectIds());
|
|
|
|
|
- return HttpResult.ok(result);
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ public HttpResult<HashMap<String, Object>> totalAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ if (!CollectionUtils.isEmpty(insPlyIncomeVo.getSelectIds())) {
|
|
|
|
|
+ HashMap<String, Object> result = insPlyIncomeService.totalAmount(insPlyIncomeVo.getSelectIds());
|
|
|
|
|
+ return HttpResult.ok(result);
|
|
|
|
|
+ } else {
|
|
|
return HttpResult.ok();
|
|
return HttpResult.ok();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/totalPinAmount")
|
|
@PostMapping("/totalPinAmount")
|
|
|
@ApiModelProperty(value = "平台结算未结算接口")
|
|
@ApiModelProperty(value = "平台结算未结算接口")
|
|
|
- public HttpResult<List<InsPlyIncome>>totalPinAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
- List<InsPlyIncome> result = insPlyIncomeService.totalPinAmount(insPlyIncomeVo);
|
|
|
|
|
- return HttpResult.ok(result);
|
|
|
|
|
|
|
+ public HttpResult<List<InsPlyIncome>> totalPinAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ List<InsPlyIncome> result = insPlyIncomeService.totalPinAmount(insPlyIncomeVo);
|
|
|
|
|
+ return HttpResult.ok(result);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/bxTotalAmount")
|
|
@PostMapping("/bxTotalAmount")
|
|
|
@ApiModelProperty(value = "保险手续费合计")
|
|
@ApiModelProperty(value = "保险手续费合计")
|
|
|
- public HttpResult<InsPlyIncome>bxTotalPinAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
- InsPlyIncome result = insPlyIncomeService.bxTotalAmount(insPlyIncomeVo);
|
|
|
|
|
- return HttpResult.ok(result);
|
|
|
|
|
|
|
+ public HttpResult<InsPlyIncome> bxTotalPinAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ InsPlyIncome result = insPlyIncomeService.bxTotalAmount(insPlyIncomeVo);
|
|
|
|
|
+ return HttpResult.ok(result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("/ptTotalAmount")
|
|
|
|
|
+ @ApiModelProperty(value = "平台手续费合计")
|
|
|
|
|
+ public HttpResult<InsPlyIncome> ptTotalAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ InsPlyIncome result = insPlyIncomeService.ptTotalAmount(insPlyIncomeVo);
|
|
|
|
|
+ return HttpResult.ok(result);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PutMapping("/balance")
|
|
@PutMapping("/balance")
|
|
|
@ApiModelProperty(value = "结算手续费")
|
|
@ApiModelProperty(value = "结算手续费")
|
|
|
public HttpResult<Object> balance(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<Object> balance(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
@@ -114,7 +139,7 @@ public class InsPlyIncomeController extends BaseController {
|
|
|
@PostMapping("/totalQuery")
|
|
@PostMapping("/totalQuery")
|
|
|
@ApiOperation(value = "跟单费总数")
|
|
@ApiOperation(value = "跟单费总数")
|
|
|
public HttpResult<BasePageResult<InsPlyIncome>> totalQuery(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<BasePageResult<InsPlyIncome>> totalQuery(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
- HttpResult<BasePageResult<InsPlyIncome>> result=insPlyIncomeService.totalQuery(insPlyIncomeVo);
|
|
|
|
|
|
|
+ HttpResult<BasePageResult<InsPlyIncome>> result = insPlyIncomeService.totalQuery(insPlyIncomeVo);
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -122,38 +147,41 @@ public class InsPlyIncomeController extends BaseController {
|
|
|
@ApiModelProperty(value = "开票跟单费")
|
|
@ApiModelProperty(value = "开票跟单费")
|
|
|
public HttpResult<Object> batchInvoic(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<Object> batchInvoic(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
|
|
|
- return insPlyIncomeService.batchInvoic(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.batchInvoic(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PutMapping("/singleInvoic")
|
|
@PutMapping("/singleInvoic")
|
|
|
@ApiModelProperty(value = "批量开票跟单费")
|
|
@ApiModelProperty(value = "批量开票跟单费")
|
|
|
- public HttpResult<Object> singleInvoic(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
- return insPlyIncomeService.singleInvoic(insPlyIncomeVo);
|
|
|
|
|
|
|
+ public HttpResult<Object> singleInvoic(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ return insPlyIncomeService.singleInvoic(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PutMapping("/batchBalance")
|
|
@PutMapping("/batchBalance")
|
|
|
@ApiModelProperty(value = "批量结算跟单费")
|
|
@ApiModelProperty(value = "批量结算跟单费")
|
|
|
public HttpResult<Object> batchBalance(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<Object> batchBalance(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
|
|
|
- return insPlyIncomeService.batchBalance(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.batchBalance(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PutMapping("/batchPinBalance")
|
|
@PutMapping("/batchPinBalance")
|
|
|
@ApiModelProperty(value = "平台批量结算")
|
|
@ApiModelProperty(value = "平台批量结算")
|
|
|
public HttpResult<Object> batchPinBalance(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<Object> batchPinBalance(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
- return insPlyIncomeService.batchPinBalance(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.batchPinBalance(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/NonSettlementQuery")
|
|
@PostMapping("/NonSettlementQuery")
|
|
|
@ApiOperation(value = "非跟单查询")
|
|
@ApiOperation(value = "非跟单查询")
|
|
|
- public HttpResult<BasePageResult<InsPlyIncome>>NonSettlementQuery(@Valid @RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
- HttpResult<BasePageResult<InsPlyIncome>> result=insPlyIncomeService.nonSettlementQuery(insPlyIncomeVo);
|
|
|
|
|
|
|
+ public HttpResult<BasePageResult<InsPlyIncome>> NonSettlementQuery(@Valid @RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ HttpResult<BasePageResult<InsPlyIncome>> result = insPlyIncomeService.nonSettlementQuery(insPlyIncomeVo);
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/NonSettldetail")
|
|
@PostMapping("/NonSettldetail")
|
|
|
@ApiOperation(value = "非跟单明细查询")
|
|
@ApiOperation(value = "非跟单明细查询")
|
|
|
- public HttpResult<List<InsPlyIncome>> NonSettldetail (@Valid @RequestBody InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
- return insPlyIncomeService.nonSettldetail(insPlyIncomeVo);
|
|
|
|
|
|
|
+ public HttpResult<List<InsPlyIncome>> NonSettldetail(@Valid @RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ return insPlyIncomeService.nonSettldetail(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/importData")
|
|
@PostMapping("/importData")
|
|
|
@ApiOperation(value = "手续费导入(excel)")
|
|
@ApiOperation(value = "手续费导入(excel)")
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@@ -161,30 +189,98 @@ public class InsPlyIncomeController extends BaseController {
|
|
|
})
|
|
})
|
|
|
public HttpResult importData(@RequestParam MultipartFile multipartFile) {
|
|
public HttpResult importData(@RequestParam MultipartFile multipartFile) {
|
|
|
|
|
|
|
|
- HashMap<String, Object> result= insPlyIncomeService.importData(multipartFile);
|
|
|
|
|
|
|
+ HashMap<String, Object> result = insPlyIncomeService.importData(multipartFile);
|
|
|
|
|
|
|
|
return HttpResult.ok(result);
|
|
return HttpResult.ok(result);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/bxImportData")
|
|
@PostMapping("/bxImportData")
|
|
|
@ApiOperation(value = "保险手续费导入(excel)")
|
|
@ApiOperation(value = "保险手续费导入(excel)")
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "file", value = "excel文件", required = true, dataType = "__file")
|
|
@ApiImplicitParam(name = "file", value = "excel文件", required = true, dataType = "__file")
|
|
|
})
|
|
})
|
|
|
- public HttpResult<HashMap<String, Object>> bxImportData(@RequestParam MultipartFile multipartFile,@RequestParam("isNotCar") String isNotCar) {
|
|
|
|
|
- HashMap<String, Object> result= insPlyIncomeService.bxImportData(multipartFile,isNotCar);
|
|
|
|
|
- return HttpResult.ok(result);
|
|
|
|
|
|
|
+ public HttpResult<String> bxImportData(@RequestParam MultipartFile multipartFile, @RequestParam("isNotCar") String isNotCar) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ List<InsBxPlyIncomeExcelDto> dtoList = ExcelEasypoiUtils.importExcel(multipartFile, InsBxPlyIncomeExcelDto.class, 0, 1, 1);
|
|
|
|
|
+ String taskId = String.valueOf(new SnowFlakeUtil().nextId());
|
|
|
|
|
+ importAsyncService.importasync(dtoList, isNotCar, taskId);
|
|
|
|
|
+ return HttpResult.ok(taskId);
|
|
|
|
|
+
|
|
|
|
|
+ } catch (IOException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/bxImportNoData")
|
|
@PostMapping("/bxImportNoData")
|
|
|
@ApiOperation(value = "保险非车手续费导入(excel)")
|
|
@ApiOperation(value = "保险非车手续费导入(excel)")
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "file", value = "excel文件", required = true, dataType = "__file")
|
|
|
|
|
|
|
+ @ApiImplicitParam(name = "file", value = "excel文件", required = true, dataType = "__file")
|
|
|
|
|
+ })
|
|
|
|
|
+ public HttpResult<String> bxImportNoData(@RequestParam MultipartFile multipartFile, @RequestParam("isNotCar") String isNotCar) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ List<InsBxNoPlyIncomeExcelDto> dtoList = ExcelEasypoiUtils.importExcel(multipartFile, InsBxNoPlyIncomeExcelDto.class, 0, 1, 1);
|
|
|
|
|
+ String taskId = String.valueOf(new SnowFlakeUtil().nextId());
|
|
|
|
|
+ importAsyncService.bxImportNoData(dtoList, multipartFile, taskId);
|
|
|
|
|
+ return HttpResult.ok(taskId);
|
|
|
|
|
+ } catch (IOException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("/bxImportOther")
|
|
|
|
|
+ @ApiOperation(value = "批量修改比例(excel)")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "file", value = "excel文件", required = true, dataType = "__file")
|
|
|
|
|
+ })
|
|
|
|
|
+ public HttpResult<HashMap<String, Object>> bxImportOther(@RequestParam MultipartFile multipartFile, @RequestParam("isNotCar") String isNotCar) {
|
|
|
|
|
+ HashMap<String, Object> result = insPlyIncomeService.bxImportOther(multipartFile, isNotCar);
|
|
|
|
|
+ return HttpResult.ok(result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("/noBxImportOther")
|
|
|
|
|
+ @ApiOperation(value = "非车批量修改比例(excel)")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "file", value = "excel文件", required = true, dataType = "__file")
|
|
|
})
|
|
})
|
|
|
- public HttpResult<HashMap<String, Object>> bxImportNoData(@RequestParam MultipartFile multipartFile,@RequestParam("isNotCar") String isNotCar) {
|
|
|
|
|
- HashMap<String, Object> result= insPlyIncomeService.bxImportNoData(multipartFile,isNotCar);
|
|
|
|
|
|
|
+ public HttpResult<HashMap<String, Object>> noBxImportOther(@RequestParam MultipartFile multipartFile, @RequestParam("isNotCar") String isNotCar) {
|
|
|
|
|
+ HashMap<String, Object> result = insPlyIncomeService.noBxImportOther(multipartFile, isNotCar);
|
|
|
return HttpResult.ok(result);
|
|
return HttpResult.ok(result);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/bxOtherImportData")
|
|
|
|
|
+ @ApiOperation(value = "跟单对账导入(excel)")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "file", value = "excel文件", required = true, dataType = "__file")
|
|
|
|
|
+ })
|
|
|
|
|
+ public HttpResult<String> bxOtherImportData(@RequestParam MultipartFile multipartFile, @RequestParam("isNotCar") String isNotCar) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ List<InsBxOtherExcelDto> dtoList = ExcelEasypoiUtils.importExcel(multipartFile, InsBxOtherExcelDto.class, 0, 1, 1);
|
|
|
|
|
+ String taskId = String.valueOf(new SnowFlakeUtil().nextId());
|
|
|
|
|
+ importAsyncService.bxOtherImportData(dtoList, isNotCar, taskId);
|
|
|
|
|
+ return HttpResult.ok(taskId);
|
|
|
|
|
+ } catch (IOException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("/bxNoOtherImportData")
|
|
|
|
|
+ @ApiOperation(value = "非车跟单对账导入(excel)")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "file", value = "excel文件", required = true, dataType = "__file")
|
|
|
|
|
+ })
|
|
|
|
|
+ public HttpResult<String> bxNoOtherImportData(@RequestParam MultipartFile multipartFile, @RequestParam("isNotCar") String isNotCar) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ List<InsNoBxOtherExcelDto> dtoList = ExcelEasypoiUtils.importExcel(multipartFile, InsNoBxOtherExcelDto.class, 0, 1, 1);
|
|
|
|
|
+ String taskId = String.valueOf(new SnowFlakeUtil().nextId());
|
|
|
|
|
+ importAsyncService.bxNoOtherImportData(dtoList, isNotCar, taskId);
|
|
|
|
|
+ return HttpResult.ok(taskId);
|
|
|
|
|
+ } catch (IOException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@PutMapping("/update")
|
|
@PutMapping("/update")
|
|
|
@ApiModelProperty(value = "修改")
|
|
@ApiModelProperty(value = "修改")
|
|
@@ -192,118 +288,132 @@ public class InsPlyIncomeController extends BaseController {
|
|
|
insPlyIncomeService.updateByEntity(insPlyIncomeVo);
|
|
insPlyIncomeService.updateByEntity(insPlyIncomeVo);
|
|
|
return HttpResult.ok("修改成功");
|
|
return HttpResult.ok("修改成功");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PutMapping("/batchUpdate")
|
|
@PutMapping("/batchUpdate")
|
|
|
@ApiModelProperty(value = "批量修改")
|
|
@ApiModelProperty(value = "批量修改")
|
|
|
public HttpResult<Object> batchUpdate(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<Object> batchUpdate(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
insPlyIncomeService.batchUpdate(insPlyIncomeVo);
|
|
insPlyIncomeService.batchUpdate(insPlyIncomeVo);
|
|
|
return HttpResult.ok("批量修改成功");
|
|
return HttpResult.ok("批量修改成功");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @PutMapping("/batchUpdateVoucher")
|
|
|
|
|
+ @ApiModelProperty(value = "批量修改上传凭证")
|
|
|
|
|
+ public HttpResult<Object> batchUpdateVoucher(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ insPlyIncomeService.batchUpdateVoucher(insPlyIncomeVo);
|
|
|
|
|
+ return HttpResult.ok("上传凭证成功");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@PostMapping("/insert")
|
|
@PostMapping("/insert")
|
|
|
@ApiModelProperty(value = "新增")
|
|
@ApiModelProperty(value = "新增")
|
|
|
public HttpResult<InsPlyIncome> insertByEntity(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<InsPlyIncome> insertByEntity(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
return insPlyIncomeService.insertByEntity(insPlyIncomeVo);
|
|
return insPlyIncomeService.insertByEntity(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@DeleteMapping("/delete")
|
|
@DeleteMapping("/delete")
|
|
|
@ApiModelProperty(value = "删除")
|
|
@ApiModelProperty(value = "删除")
|
|
|
- public HttpResult<InsPlyIncome> deleteById(@RequestBody InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
|
|
+ public HttpResult<InsPlyIncome> deleteById(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
|
|
|
- return insPlyIncomeService.deleteById(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.deleteById(insPlyIncomeVo);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@GetMapping("/getById/{id}")
|
|
@GetMapping("/getById/{id}")
|
|
|
@ApiModelProperty(value = "回显")
|
|
@ApiModelProperty(value = "回显")
|
|
|
- public HttpResult<InsPlyIncome> getById(@PathVariable("id") String id){
|
|
|
|
|
|
|
+ public HttpResult<InsPlyIncome> getById(@PathVariable("id") String id) {
|
|
|
InsPlyIncome item = insPlyIncomeService.getEntityById(id);
|
|
InsPlyIncome item = insPlyIncomeService.getEntityById(id);
|
|
|
- return HttpResult.ok(item) ;
|
|
|
|
|
|
|
+ return HttpResult.ok(item);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/totalBxAmount")
|
|
@PostMapping("/totalBxAmount")
|
|
|
@ApiModelProperty(value = "保险未开票金额")
|
|
@ApiModelProperty(value = "保险未开票金额")
|
|
|
- public HttpResult<List<InsPlyIncome>>totalBxAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
- List<InsPlyIncome> result = insPlyIncomeService.totalBxAmount(insPlyIncomeVo);
|
|
|
|
|
- return HttpResult.ok(result);
|
|
|
|
|
|
|
+ public HttpResult<List<InsPlyIncome>> totalBxAmount(@RequestBody @Valid InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ List<InsPlyIncome> result = insPlyIncomeService.totalBxAmount(insPlyIncomeVo);
|
|
|
|
|
+ return HttpResult.ok(result);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
@PutMapping("/batchInvoicing")
|
|
@PutMapping("/batchInvoicing")
|
|
|
@ApiModelProperty(value = "保险手续费批量开票")
|
|
@ApiModelProperty(value = "保险手续费批量开票")
|
|
|
public HttpResult<Object> batchInvoicing(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<Object> batchInvoicing(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
- return insPlyIncomeService.batchInvoicing(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.batchInvoicing(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/queryInvoicing")
|
|
@PostMapping("/queryInvoicing")
|
|
|
@ApiModelProperty(value = "查询开票金额")
|
|
@ApiModelProperty(value = "查询开票金额")
|
|
|
public HttpResult<InsPlyIncome> queryInvoicing(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<InsPlyIncome> queryInvoicing(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
- return insPlyIncomeService.queryInvoicing(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.queryInvoicing(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/querySettInvoicing")
|
|
@PostMapping("/querySettInvoicing")
|
|
|
@ApiModelProperty(value = "查询已开票已结算")
|
|
@ApiModelProperty(value = "查询已开票已结算")
|
|
|
public HttpResult<InsPlyIncome> querySettInvoicing(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<InsPlyIncome> querySettInvoicing(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
- return insPlyIncomeService.querySettInvoicing(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.querySettInvoicing(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PutMapping("/batchBxBalance")
|
|
@PutMapping("/batchBxBalance")
|
|
|
@ApiModelProperty(value = "保险批量结算")
|
|
@ApiModelProperty(value = "保险批量结算")
|
|
|
public HttpResult<Object> batchBxBalance(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<Object> batchBxBalance(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
- return insPlyIncomeService.batchBxBalance(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.batchBxBalance(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/allOtherAmount")
|
|
@PostMapping("/allOtherAmount")
|
|
|
@ApiModelProperty(value = "保险跟单总表")
|
|
@ApiModelProperty(value = "保险跟单总表")
|
|
|
public HttpResult<List<InsPlyIncome>> allOtherAmount(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
public HttpResult<List<InsPlyIncome>> allOtherAmount(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
- return insPlyIncomeService.allOtherAmount(insPlyIncomeVo);
|
|
|
|
|
|
|
+ return insPlyIncomeService.allOtherAmount(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("平台手续费导出")
|
|
@ApiModelProperty("平台手续费导出")
|
|
|
@PostMapping("pinHandlingExcel")
|
|
@PostMapping("pinHandlingExcel")
|
|
|
- public HttpResult pinHandlingexcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo , HttpServletRequest request, HttpServletResponse response ){
|
|
|
|
|
|
|
+ public HttpResult pinHandlingexcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
return insPlyIncomeService.pinHandlingexcel(insPlyIncomeVo, request, response);
|
|
return insPlyIncomeService.pinHandlingexcel(insPlyIncomeVo, request, response);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiModelProperty("保险手续费导出")
|
|
@ApiModelProperty("保险手续费导出")
|
|
|
@PostMapping("bxHandlingExcel")
|
|
@PostMapping("bxHandlingExcel")
|
|
|
- public HttpResult bxHandlingexcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo , HttpServletRequest request, HttpServletResponse response ) throws IOException {
|
|
|
|
|
- return insPlyIncomeService.bxHandlingexcel(insPlyIncomeVo, request, response);
|
|
|
|
|
|
|
+ public HttpResult bxHandlingexcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo, HttpServletRequest request, HttpServletResponse response) throws IOException {
|
|
|
|
|
+ return insPlyIncomeService.bxHandlingexcel(insPlyIncomeVo, request, response);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@ApiModelProperty("保险跟单导出")
|
|
@ApiModelProperty("保险跟单导出")
|
|
|
@PostMapping("bxOtherExcel")
|
|
@PostMapping("bxOtherExcel")
|
|
|
- public HttpResult bxOtherExcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo , HttpServletRequest request, HttpServletResponse response ){
|
|
|
|
|
- return insPlyIncomeService.bxOtherExcel(insPlyIncomeVo, request, response);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ public HttpResult bxOtherExcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|
+ return insPlyIncomeService.bxOtherExcel(insPlyIncomeVo, request, response);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
@ApiModelProperty("保险跟单明细导出")
|
|
@ApiModelProperty("保险跟单明细导出")
|
|
|
@PostMapping("/bxOtherDetailsExcel")
|
|
@PostMapping("/bxOtherDetailsExcel")
|
|
|
- public HttpResult bxOtherDetailsExcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo , HttpServletRequest request, HttpServletResponse response ){
|
|
|
|
|
- return insPlyIncomeService.bxOtherDetailsExcel(insPlyIncomeVo, request, response);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ public HttpResult bxOtherDetailsExcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|
+ return insPlyIncomeService.bxOtherDetailsExcel(insPlyIncomeVo, request, response);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
@PostMapping("/invicdetail")
|
|
@PostMapping("/invicdetail")
|
|
|
@ApiOperation(value = "开票未结算详情查询")
|
|
@ApiOperation(value = "开票未结算详情查询")
|
|
|
- public HttpResult<List<HashMap<String,Object>>> invicdetail (@Valid @RequestBody InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
- return insPlyIncomeService.invicdetail(insPlyIncomeVo);
|
|
|
|
|
|
|
+ public HttpResult<List<HashMap<String, Object>>> invicdetail(@Valid @RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ return insPlyIncomeService.invicdetail(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@ApiModelProperty("保险非车跟单明细导出")
|
|
@ApiModelProperty("保险非车跟单明细导出")
|
|
|
@PostMapping("/bxNoOtherDetailsExcel")
|
|
@PostMapping("/bxNoOtherDetailsExcel")
|
|
|
- public HttpResult bxNoOtherDetailsExcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo , HttpServletRequest request, HttpServletResponse response ){
|
|
|
|
|
|
|
+ public HttpResult bxNoOtherDetailsExcel(@RequestBody @ApiParam(name = "insPlyIncomeVo") InsPlyIncomeVo insPlyIncomeVo, HttpServletRequest request, HttpServletResponse response) {
|
|
|
return insPlyIncomeService.bxNoOtherDetailsExcel(insPlyIncomeVo, request, response);
|
|
return insPlyIncomeService.bxNoOtherDetailsExcel(insPlyIncomeVo, request, response);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/otherSettldetail")
|
|
@PostMapping("/otherSettldetail")
|
|
|
@ApiOperation(value = "非跟单明细查询")
|
|
@ApiOperation(value = "非跟单明细查询")
|
|
|
- public HttpResult<List<HashMap<String,Object>>> otherSettldetail (@RequestBody InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
- return insPlyIncomeService.otherSettldetail(insPlyIncomeVo);
|
|
|
|
|
|
|
+ public HttpResult<List<HashMap<String, Object>>> otherSettldetail(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ return insPlyIncomeService.otherSettldetail(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping("/otherTimeDetail")
|
|
@PostMapping("/otherTimeDetail")
|
|
|
@ApiOperation(value = "非跟单明细查询")
|
|
@ApiOperation(value = "非跟单明细查询")
|
|
|
- public HttpResult<List<HashMap<String,Object>>> otherTimeDetail (@RequestBody InsPlyIncomeVo insPlyIncomeVo){
|
|
|
|
|
- return insPlyIncomeService.otherTimeDetail(insPlyIncomeVo);
|
|
|
|
|
|
|
+ public HttpResult<List<HashMap<String, Object>>> otherTimeDetail(@RequestBody InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
+ return insPlyIncomeService.otherTimeDetail(insPlyIncomeVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|