|
@@ -4,22 +4,26 @@ import cn.hutool.core.lang.TypeReference;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.gree.mall.manager.annotation.ZfireList;
|
|
|
+import com.gree.mall.manager.bean.policy.PolicyDetail;
|
|
|
import com.gree.mall.manager.bean.policy.PolicyOrderEmVO;
|
|
|
import com.gree.mall.manager.bean.policy.PolicyOrderInVO;
|
|
|
import com.gree.mall.manager.bean.policy.PolicyOrderVO;
|
|
|
import com.gree.mall.manager.exception.RemoteServiceException;
|
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
|
import com.gree.mall.manager.logic.policy.PolicyOrderLogic;
|
|
|
+import com.gree.mall.manager.plus.entity.PolicyOrder;
|
|
|
import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
|
import com.gree.mall.manager.zfire.util.FieldUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.text.ParseException;
|
|
|
|
|
|
@Slf4j
|
|
|
@RestController
|
|
@@ -58,7 +62,7 @@ public class PolicyOrderController {
|
|
|
}
|
|
|
|
|
|
@ZfireList
|
|
|
- @PostMapping("/list")
|
|
|
+ @PostMapping("/listEm")
|
|
|
@ApiOperation(value = "雇主险订单列表")
|
|
|
public ResponseHelper<IPage<PolicyOrderEmVO>> listEm(
|
|
|
@RequestBody ZfireParamBean zfireParamBean
|
|
@@ -68,7 +72,7 @@ public class PolicyOrderController {
|
|
|
return ResponseHelper.success(policyOrderVOIPage, new TypeReference<PolicyOrderEmVO>() {});
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/list/export")
|
|
|
+ @PostMapping("/listEm/export")
|
|
|
@ApiOperation(value = "雇主险订单列表导出")
|
|
|
public void listEmExport(
|
|
|
@RequestBody ZfireParamBean zfireParamBean,
|
|
@@ -83,9 +87,30 @@ public class PolicyOrderController {
|
|
|
FieldUtils.exportData(policyOrderVOIPage.getRecords(), zfireParam.getExportFields(), request, response);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/detail")
|
|
|
+ @ApiOperation("保险险订单详情")
|
|
|
+ public ResponseHelper<PolicyOrder> detail(
|
|
|
+ @ApiParam(value = "id", required = true) @RequestParam String id,
|
|
|
+ HttpServletRequest request
|
|
|
+ ) throws ParseException {
|
|
|
+ PolicyOrder policyDetail = policyOrderLogic.detail(id);
|
|
|
+ return ResponseHelper.success(policyDetail);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/add")
|
|
|
+ @ApiOperation("保险订单修改")
|
|
|
+ public ResponseHelper add(
|
|
|
+ @RequestBody PolicyOrder policyOrder,
|
|
|
+ HttpServletRequest request
|
|
|
+ ) throws ParseException {
|
|
|
+ policyOrderLogic.update(policyOrder);
|
|
|
+ return ResponseHelper.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@ZfireList
|
|
|
- @PostMapping("/list")
|
|
|
+ @PostMapping("/listIn")
|
|
|
@ApiOperation(value = "工伤险列表")
|
|
|
public ResponseHelper<IPage<PolicyOrderInVO>> listIn(
|
|
|
@RequestBody ZfireParamBean zfireParamBean
|
|
@@ -95,7 +120,7 @@ public class PolicyOrderController {
|
|
|
return ResponseHelper.success(policyOrderVOIPage, new TypeReference<PolicyOrderInVO>() {});
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/list/export")
|
|
|
+ @PostMapping("/listIn/export")
|
|
|
@ApiOperation(value = "工伤险订单列表导出")
|
|
|
public void listInExport(
|
|
|
@RequestBody ZfireParamBean zfireParamBean,
|