Преглед изворни кода

Revert "初始版本"

This reverts commit 053c6d985044217b3f5d403d8e45fb519233b7c5.
2643616413 пре 6 дана
родитељ
комит
d1546cda1e

+ 27 - 0
server/yusp-tagging-core/src/main/java/cn/com/yusys/yusp/controller/TestController.java

@@ -0,0 +1,27 @@
+package cn.com.yusys.yusp.controller;
+
+
+import cn.com.yusys.yusp.service.impl.TestImplService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 触发器管理
+ * @Author wangshuai
+ * @创建时间: 2024-03-18 16:05:08
+ * -------------------------------------------------------------
+ * @Copyright (c) 宇信科技-版权所有
+ */
+@RestController
+@RequestMapping("/api/test")
+public class TestController {
+    @Autowired
+    private TestImplService test;
+
+    @GetMapping("/")
+    public String test(){
+        return "test1";
+    }
+}

+ 12 - 0
server/yusp-tagging-core/src/main/java/cn/com/yusys/yusp/service/Test.java

@@ -0,0 +1,12 @@
+package cn.com.yusys.yusp.service;
+
+/**
+ * 触发器管理
+ * @Author wangshuai
+ * @创建时间: 2024-03-18 16:05:08
+ * -------------------------------------------------------------
+ * @Copyright (c) 宇信科技-版权所有
+ */
+public interface Test{
+
+}

+ 15 - 0
server/yusp-tagging-core/src/main/java/cn/com/yusys/yusp/service/impl/TestImplService.java

@@ -0,0 +1,15 @@
+package cn.com.yusys.yusp.service.impl;
+
+import org.springframework.stereotype.Service;
+
+/**
+ * 触发器管理
+ * @Author wangshuai
+ * @创建时间: 2024-03-18 16:05:08
+ * -------------------------------------------------------------
+ * @Copyright (c) 宇信科技-版权所有
+ */
+@Service
+public class TestImplService {
+
+}

+ 14 - 0
server/yusp-tagging-core/src/main/resources/mapper/DetailCrRuleMapper.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="cn.com.yusys.yusp.detail.dao.DetailCrRuleMapper">
+    <update id="updateDetailCrRuleSts">
+        update detail_cr_rule set rule_sts=#{ruleSts} where
+        busi_no=#{busiNo} and rule_id in
+        <foreach open="(" collection="ruleIdList" item="ruleId" separator="," close=")" index="index">
+            <if test="index%999==998">
+                ) or rule_id in (
+            </if>
+            #{ruleId}
+        </foreach>
+    </update>
+</mapper>

+ 69 - 0
server/yusp-tagging-core/src/main/resources/mapper/DetailFillTaskInsMapper.xml

@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="cn.com.yusys.yusp.detail.dao.DetailFillTaskInsMapper">
+    <select id="selectAuthOrgList" parameterType="string" resultType="cn.com.yusys.yusp.client.domain.vo.BioneIssuedOrgInfoVo">
+        select
+               T0.busi_no,T0.org_NO,
+               T0.org_name,
+               g.org_name as up_org_name,
+               T0.up_org_no,
+               T0.org_level,
+               T0.org_sts,
+               T0.namespace,
+               T0.finance_org_no
+        from admin_sm_user_issued_org_rel r  left join bione_issued_org_info T0 on r.org_no = T0.org_no and r.busi_no = T0.busi_no
+                 LEFT JOIN bione_issued_org_info g ON g.org_no = T0.up_org_no and g.busi_no = T0.busi_no
+            where T0.ORG_STS =#{orgSts,jdbcType=VARCHAR}
+            and T0.busi_no =#{busiNo,jdbcType=VARCHAR}
+    </select>
+
+    <update id="updateInitTaskInsCount">
+        update ${busiNo}_fill_task_ins fill
+        set fill.init_task_ins_count =
+        (
+        select count(1) from ${busiNo}_fill_task_child_ins ins
+        where ins.task_ins_id = fill.task_ins_id
+        and ins.task_sts = '1'
+        )
+        <where>
+            fill.task_ins_id in (
+            <foreach collection="list" separator="," item="id">
+                #{id}
+            </foreach>
+            )
+        </where>
+    </update>
+    <update id="updateUnFillTaskInsCount">
+        update ${busiNo}_fill_task_ins fill
+        set fill.un_fill_task_ins_count =
+        (
+        select count(1) from ${busiNo}_fill_task_child_ins ins
+        where ins.task_ins_id = fill.task_ins_id
+        and ins.task_sts in ('2','3', '6')
+        )
+        <where>
+            fill.task_ins_id in (
+            <foreach collection="list" separator="," item="id">
+                #{id}
+            </foreach>
+            )
+        </where>
+    </update>
+
+    <update id="updateSubmitInsCount">
+        update ${busiNo}_fill_task_ins fill
+        set fill.submit_task_ins_count =
+        (
+        select count(1) from ${busiNo}_fill_task_child_ins ins
+        where ins.task_ins_id = fill.task_ins_id
+        and ins.task_sts = '9'
+        )
+        <where>
+            fill.task_ins_id in (
+            <foreach collection="list" separator="," item="id">
+                #{id}
+            </foreach>
+            )
+        </where>
+    </update>
+</mapper>