Explorar o código

根据成果id查询审批记录接口提交

wanger hai 5 meses
pai
achega
db1b0fb169

+ 12 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/controller/cggl/CgglController.java

@@ -421,4 +421,16 @@ public class CgglController extends BaseController {
         RequestResult res = cgglService.startcgsc(cgscDto.getScmodel(), cgscDto.getJqscmodel(), cgscDto.getCgid());
         return res;
     }
+
+    /**
+     * 根据成果id查询审批记录
+     *
+     * @param cgid
+     * @return
+     */
+    @RequestMapping("/viewscjl")
+    public RequestResult viewscjl(String cgid) {
+        RequestResult res = cgglService.viewscjl(cgid);
+        return res;
+    }
 }

+ 2 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/cggl/CgglService.java

@@ -49,4 +49,6 @@ public interface CgglService {
     RequestResult getScmxList(String name);
 
     RequestResult startcgsc(String scmodel, String jqscmodel, String cgid);
+
+    RequestResult viewscjl(String cgid);
 }

+ 9 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/cggl/CgglServiceImpl.java

@@ -803,6 +803,15 @@ public class CgglServiceImpl implements CgglService {
         }
     }
 
+    @Override
+    public RequestResult viewscjl(String cgid) {
+        QueryWrapper<ScmxRecordDTO> wrapper = new QueryWrapper();
+        wrapper.eq("cgid", cgid);
+        wrapper.orderByAsc("sort");
+        List<ScmxRecordDTO> res = scmxRecordMapper.selectList(wrapper);
+        return RequestResult.success("查询成功!", res);
+    }
+
     /**
      * 创建成果管理更新日志
      *

+ 30 - 0
onemap-modules/onemap-apply/src/main/resources/mapper/oracle/cggl/EscalationMapper.xml

@@ -152,6 +152,12 @@
                         '详细规划'
                     when t.plantype = '5' then
                         '专项规划'
+                    when t.plantype = '6' then
+                        '报批项目'
+                    when t.plantype = '7' then
+                        '苏木乡镇规划'
+                    when t.plantype = '8' then
+                        '城市更新'
                    end) as "plantype",
                t.fileid as "fileid",
                (case
@@ -197,6 +203,12 @@
         '详细规划'
         when t.plantype = '5' then
         '专项规划'
+        when t.plantype = '6' then
+        '报批项目'
+        when t.plantype = '7' then
+        '苏木乡镇规划'
+        when t.plantype = '8' then
+        '城市更新'
         end) as "plantype",
         t.fileid as "fileid",
         (case
@@ -258,6 +270,12 @@
         '详细规划'
         when t.plantype = '5' then
         '专项规划'
+        when t.plantype = '6' then
+        '报批项目'
+        when t.plantype = '7' then
+        '苏木乡镇规划'
+        when t.plantype = '8' then
+        '城市更新'
         end) and m.xzqdm = t.xzqdm
         order by uploadtime desc
     </select>
@@ -280,6 +298,12 @@
         '详细规划'
         when t.plantype = '5' then
         '专项规划'
+        when t.plantype = '6' then
+        '报批项目'
+        when t.plantype = '7' then
+        '苏木乡镇规划'
+        when t.plantype = '8' then
+        '城市更新'
         end) as "plantype",
         t.fileid as "fileid",
         (case
@@ -335,6 +359,12 @@
         '详细规划'
         when t.plantype = '5' then
         '专项规划'
+        when t.plantype = '6' then
+        '报批项目'
+        when t.plantype = '7' then
+        '苏木乡镇规划'
+        when t.plantype = '8' then
+        '城市更新'
         end) as "plantype",
         t.fileid as "fileid",
         (case