InsuranceHandlingSettlementMonthController.java 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package com.ydtech.modules.admin.controller;
  2. import com.ydtech.core.page.HttpResult;
  3. import com.ydtech.modules.fnc.dto.InsuranceHandlingSettlementMonthDto;
  4. import com.ydtech.modules.fnc.entity.InsPlyIncome;
  5. import com.ydtech.modules.fnc.entity.InsuranceHandlingSettlementMonthEntity;
  6. import com.ydtech.modules.fnc.service.InsuranceHandlingSettlementMonthService;
  7. import com.ydtech.modules.fnc.vo.InsPlyIncomeVo;
  8. import com.ydtech.modules.fnc.vo.InsuranceHandlingSettlementMonthVo;
  9. import io.swagger.annotations.Api;
  10. import io.swagger.annotations.ApiModelProperty;
  11. import org.springframework.beans.factory.annotation.Autowired;
  12. import org.springframework.web.bind.annotation.PostMapping;
  13. import org.springframework.web.bind.annotation.RequestBody;
  14. import org.springframework.web.bind.annotation.RequestMapping;
  15. import org.springframework.web.bind.annotation.RestController;
  16. import javax.validation.Valid;
  17. import java.util.List;
  18. /**
  19. * <p>
  20. * 保险手续费结算关联表
  21. * </p>
  22. *
  23. * @author whp
  24. * @since 2024-08-16
  25. */
  26. @RestController
  27. @Api(tags = "保险手续费结算")
  28. @RequestMapping("SettlementHandling")
  29. public class InsuranceHandlingSettlementMonthController {
  30. @Autowired
  31. private InsuranceHandlingSettlementMonthService insuranceHandlingSettlementMonthService;
  32. /**
  33. *
  34. * @param insuranceHandlingSettlementMonthVo 结算传参
  35. * @return 返回结算信息
  36. */
  37. @PostMapping("/queryList")
  38. @ApiModelProperty(value = "查询")
  39. public HttpResult<List<InsuranceHandlingSettlementMonthDto>> queryList(@RequestBody @Valid InsuranceHandlingSettlementMonthVo insuranceHandlingSettlementMonthVo) {
  40. List<InsuranceHandlingSettlementMonthDto> result = insuranceHandlingSettlementMonthService.queryList(insuranceHandlingSettlementMonthVo);
  41. return HttpResult.ok(result);
  42. }
  43. /**
  44. * 结算新增
  45. * @param insuranceHandlingSettlementMonthVo
  46. * @return
  47. */
  48. @PostMapping("/insert")
  49. @ApiModelProperty(value = "新增")
  50. public HttpResult<InsuranceHandlingSettlementMonthDto> insertByEntity(@RequestBody InsuranceHandlingSettlementMonthEntity insuranceHandlingSettlementMonthVo) {
  51. return insuranceHandlingSettlementMonthService.insertByEntity(insuranceHandlingSettlementMonthVo);
  52. }
  53. }