|
@@ -1,11 +1,13 @@
|
|
|
package com.zhongzheng.controller.covenant;
|
|
|
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
|
import com.zhongzheng.common.annotation.Log;
|
|
|
import com.zhongzheng.common.core.controller.BaseController;
|
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
+import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
import com.zhongzheng.framework.web.service.TokenService;
|
|
@@ -160,16 +162,8 @@ public class BsCovenantController extends BaseController {
|
|
|
return toAjax(iBsCovenantService.insertYiInfo(bo) ? 1 : 0);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 新增企业协议
|
|
|
- */
|
|
|
- @ApiOperation("业务系统新增协议")
|
|
|
- @Log(title = "企业协议", businessType = BusinessType.INSERT)
|
|
|
- @PostMapping("/insertYw")
|
|
|
- public AjaxResult<Void> addYW(@RequestBody BsCovenantAddBo bo) {
|
|
|
- bo.setFormApp(3L);
|
|
|
- return toAjax(iBsCovenantService.insertYXTByAddBo(bo) ? 1 : 0);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 修改企业协议
|
|
@@ -334,4 +328,40 @@ public class BsCovenantController extends BaseController {
|
|
|
public TableDataInfo<CovenantCheckRecordVo> getCheckInfo(@RequestParam("covenantId") Long covenantId) {
|
|
|
return getDataTable(iBsCovenantService.getNoCheckInfo(covenantId));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增企业协议
|
|
|
+ */
|
|
|
+ @ApiOperation("业务系统新增协议")
|
|
|
+ @Log(title = "企业协议", businessType = BusinessType.INSERT)
|
|
|
+ @PostMapping("/insertYw")
|
|
|
+ public AjaxResult<Void> addYW(@RequestBody BsCovenantAddBo bo) {
|
|
|
+ bo.setFormApp(3L);
|
|
|
+ return toAjax(iBsCovenantService.insertYXTByAddBo(bo) ? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询企业协议列表
|
|
|
+ */
|
|
|
+ @ApiOperation("业务系统查询企业协议管理列表")
|
|
|
+ @GetMapping("/getCovenantListYw")
|
|
|
+ public TableDataInfo<BsCovenantVo> getCovenantListYw(BsCovenantQueryBo bo) {
|
|
|
+ if(Validator.isEmpty(bo.getUserId())){
|
|
|
+ throw new CustomException("用户ID确实");
|
|
|
+ }
|
|
|
+ startPage();
|
|
|
+ bo.setListType(1);
|
|
|
+ bo.setFormApp(3L);
|
|
|
+ List<BsCovenantVo> list = iBsCovenantService.queryList(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取企业协议详细信息
|
|
|
+ */
|
|
|
+ @ApiOperation("业务系统获取企业协议详细信息")
|
|
|
+ @GetMapping("/Yw/{covenantId}")
|
|
|
+ public AjaxResult<BsCovenantVo> getInfoYw(@PathVariable("covenantId") Long covenantId) {
|
|
|
+ return AjaxResult.success(iBsCovenantService.queryById(covenantId));
|
|
|
+ }
|
|
|
}
|