瀏覽代碼

添加审批资源字段更新、审批资源设置共享接口开发

DESKTOP-2K9OVK9\siwei 9 月之前
父節點
當前提交
7e4283b268

+ 13 - 1
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/controller/zymlapplication/ShareConfigurationController.java

@@ -1,6 +1,7 @@
 package com.onemap.apply.controller.zymlapplication;
 
 import com.onemap.apply.domain.zymlapplication.TZymlApplicationRecord;
+import com.onemap.apply.domain.zymlapplication.TZymlFiled;
 import com.onemap.apply.service.zymlapplication.IShareConfigurationService;
 import com.onemap.apply.service.zymlapplication.ITZymlApplicationRecordService;
 import com.onemap.common.core.utils.StringUtils;
@@ -33,7 +34,7 @@ public class ShareConfigurationController extends BaseController {
      * 共享资源配置
      */
     @Log(title = "共享资源配置", businessType = BusinessType.INSERT)
-    @PutMapping
+    @PutMapping("/zyml")
     public AjaxResult edit(@RequestBody TZymlApplicationRecord tZymlApplicationRecord) {
         if (StringUtils.isNull(tZymlApplicationRecord)) {
             return AjaxResult.error("参数缺失");
@@ -59,6 +60,17 @@ public class ShareConfigurationController extends BaseController {
         return AjaxResult.success(shareConfigurationService.selectTZymlFiledList(tZymlApplicationRecord.getId()));
     }
 
+    @PutMapping("/filed")
+    public AjaxResult filedsEdit(@RequestBody TZymlFiled zymlFiled) {
+        if (StringUtils.isNull(zymlFiled)) {
+            return AjaxResult.error("参数缺失");
+        }
+        if (StringUtils.isEmpty(zymlFiled.getId())) {
+            return AjaxResult.error("参数缺失");
+        }
+        return toAjax(shareConfigurationService.updateTZymlFiledList(zymlFiled));
+    }
+
     /**
      * 详细信息
      */

+ 3 - 3
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/domain/zymlapplication/TZymlFiled.java

@@ -26,7 +26,7 @@ public class TZymlFiled extends BaseEntity {
     private String filedNameZh;
     private String filedType;
     //    private String share_display;
-    private String shareDisplay;
+    private Integer shareDisplay;
     private Integer sort;
 
     public String getId() {
@@ -69,11 +69,11 @@ public class TZymlFiled extends BaseEntity {
         this.filedType = filedType;
     }
 
-    public String getShareDisplay() {
+    public Integer getShareDisplay() {
         return shareDisplay;
     }
 
-    public void setShareDisplay(String shareDisplay) {
+    public void setShareDisplay(Integer shareDisplay) {
         this.shareDisplay = shareDisplay;
     }
 

+ 6 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/zymlapplication/ShareConfigurationServiceImp.java

@@ -84,6 +84,12 @@ public class ShareConfigurationServiceImp implements IShareConfigurationService
         return list;
     }
 
+
+    @Override
+    public int updateTZymlFiledList(TZymlFiled filed) {
+        return tZymlFiledMapper.updateTZymlFiled(filed);
+    }
+
     /**
      * 发送server请求,并将数据返回,处理JSON会将参数进行替换
      *

+ 2 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/zymlapplication/IShareConfigurationService.java

@@ -9,4 +9,6 @@ public interface IShareConfigurationService {
     int updateZymlShareStateById(String bsm);
 
     public List<TZymlFiled> selectTZymlFiledList(String bsm);
+
+    int updateTZymlFiledList(TZymlFiled filed);
 }