username 9 сар өмнө
parent
commit
4bdd998d1e
29 өөрчлөгдсөн 1804 нэмэгдсэн , 8 устгасан
  1. 36 2
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/SectorList/action/SysListOfPublicSector.java
  2. 12 1
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/SectorList/mapper/SysListOfPublicSectorMapper.java
  3. 64 3
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/SectorList/mybatis/SysListOfPublicSectorMapper.xml
  4. 30 2
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/SectorList/service/SysListOfPublicSectorService.java
  5. 52 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/action/AccountReconciliationAction.java
  6. 52 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/action/GeneralSectorAction.java
  7. 52 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/action/RiskExposureClassAction.java
  8. 52 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/action/SilverGuaranteeAction.java
  9. 14 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mapper/AccountReconciliationMapper.java
  10. 14 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mapper/GeneralSectorMapper.java
  11. 14 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mapper/RiskExposureClassMapper.java
  12. 14 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mapper/SilverGuaranteeMapper.java
  13. 204 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/model/AccountReconciliationModel.java
  14. 104 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/model/GeneralSectorModel.java
  15. 94 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/model/RiskExposureClassModel.java
  16. 114 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/model/SilverGuaranteeModel.java
  17. 169 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mybatis/AccountReconciliationMapper.xml
  18. 76 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mybatis/GeneralSectorMapper.xml
  19. 102 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mybatis/RiskExposureClassMapper.xml
  20. 78 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mybatis/SilverGuaranteeMapper.xml
  21. 40 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/service/AccountReconciliationService.java
  22. 41 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/service/GeneralSectorService.java
  23. 39 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/service/RiskExposureClassService.java
  24. 40 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/service/SilverGuaranteeService.java
  25. 53 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/action/DevelopBankList.java
  26. 20 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/mapper/DevelopBankListMapper.java
  27. 104 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/model/BankListModel.java
  28. 76 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/mybatis/DevelopBankListMapper.xml
  29. 44 0
      Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/service/DevelopBankListService.java

+ 36 - 2
Procedure/backend/project/src/main/java/com/sundata/product/rwa/SectorList/action/SysListOfPublicSector.java

@@ -1,12 +1,15 @@
 package com.sundata.product.rwa.SectorList.action;
 
+import com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel;
 import com.sundata.product.rwa.SectorList.service.SysListOfPublicSectorService;
 import com.sundata.common.base.BaseAction;
 import jakarta.servlet.http.HttpServletRequest;
 import jakarta.servlet.http.HttpServletResponse;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
 
 @Controller
 @RequestMapping("product/rwa/SectorList")
@@ -15,8 +18,39 @@ public class SysListOfPublicSector extends BaseAction {
     SysListOfPublicSectorService sysListOfPublicSectorService;
 
     @RequestMapping("/initProgram")
-    public void initProgram (HttpServletRequest request, HttpServletResponse response) {
+    public void initProgram (HttpServletRequest request, HttpServletResponse response,
+    @RequestBody ListOfPublicSectorModel model) {
         // 页面初始化
-        sendData(response, sysListOfPublicSectorService.initProgram());
+        sendData(response, sysListOfPublicSectorService.initProgram(model));
     }
+
+    @RequestMapping("/createDetailData")
+    public void createDetailData (HttpServletRequest request, HttpServletResponse response
+     ,@RequestBody ListOfPublicSectorModel model) {
+        // 新建数据
+        sendData(response, sysListOfPublicSectorService.createDetailData(model));
+    }
+
+    @RequestMapping("/deleteRows")
+    public void deleteRows (HttpServletRequest request,
+                            HttpServletResponse response, @RequestParam String customerName) {
+        // 删除当前行
+        sendData(response, sysListOfPublicSectorService.deleteRows(customerName));
+    }
+
+    @RequestMapping("/selectDetailData")
+    public void selectDetailData (HttpServletRequest request,
+                            HttpServletResponse response, @RequestBody ListOfPublicSectorModel model) {
+        // 查询当前行详细数据
+        sendData(response, sysListOfPublicSectorService.selectDetailData(model));
+    }
+
+    @RequestMapping("/updateExistData")
+    public void updateExistData (HttpServletRequest request,
+                            HttpServletResponse response, @RequestBody ListOfPublicSectorModel model) {
+        // 更新数据前行
+        sendData(response, sysListOfPublicSectorService.updateExistData(model));
+    }
+
+
 }

+ 12 - 1
Procedure/backend/project/src/main/java/com/sundata/product/rwa/SectorList/mapper/SysListOfPublicSectorMapper.java

@@ -1,9 +1,20 @@
 package com.sundata.product.rwa.SectorList.mapper;
 
 import com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
 
 public interface SysListOfPublicSectorMapper {
     // 页面初始化
-    public ListOfPublicSectorModel initProgram();
+    public List<ListOfPublicSectorModel> initProgram(@Param("model")ListOfPublicSectorModel model);
+    // 页面初始化
+    public List<ListOfPublicSectorModel> getDataList(@Param("model")ListOfPublicSectorModel model);
+    // 新建数据
+    public boolean createDetailData(@Param("model")ListOfPublicSectorModel model);
+    // 删除当前行数据
+    public boolean deleteRows(@Param("customerName")String customerName);
+    // 查询当前行详细数据
+    public ListOfPublicSectorModel selectDetailData(@Param("model")ListOfPublicSectorModel model);
 
 }

+ 64 - 3
Procedure/backend/project/src/main/java/com/sundata/product/rwa/SectorList/mybatis/SysListOfPublicSectorMapper.xml

@@ -3,12 +3,73 @@
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.sundata.product.rwa.SectorList.mapper.SysListOfPublicSectorMapper">
+    <resultMap id="useMap" type="com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel">
+        <result property="calcIndex" column="CALCINDEX"></result>
+        <result property="startDate" column="SDATE"></result>
+        <result property="endDate" column="EDATE"></result>
+        <result property="customerName" column="CUST_NAME"></result>
+        <result property="crmFirstLevel" column="CRM_FIRST_LEVEL"></result>
+        <result property="crmToolTypename" column="QUALFIED_CREDIT_TOOL_TYPE_NAME"></result>
+        <result property="baseWeight" column="BASE_WEIGHT"></result>
+        <result property="exemptionWeight" column="EXEMPTION_WEIGHT"></result>
+    </resultMap>
 
+    <!-- 初始化 -->
+    <select id="initProgram"  resultMap="useMap" parameterType="com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel">
+         select CALCINDEX,SDATE,EDATE,CUST_NAME,CRM_FIRST_LEVEL,
+         QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+         from RWA_BDM_OBJ_CONF_OTHER_PUBLIC_ENTITY_LIST
+    </select>
 
-    <!-- 判断当前登录人员是否是总行数据分析岗 -->
-    <select id="initProgram"  resultType="com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel">
-         select * from RWA_BDM_OBJ_CONF_OTHER_PUBLIC_ENTITY_LIST;
+    <!-- 初始化 -->
+    <select id="getDataList"  resultMap="useMap" parameterType="com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel">
+        select CALCINDEX,SDATE,EDATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+        from RWA_BDM_OBJ_CONF_OTHER_PUBLIC_ENTITY_LIST
+        <if test="null != #{model.customerName} and '' != #{model.customerName}">
+            <where>
+                CUST_NAME = #{model.customerName}
+            </where>
+        </if>
     </select>
 
+    <!-- 新建数据 -->
+    <insert id="createDetailData" parameterType="com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel">
+        insert into RWA_BDM_OBJ_CONF_OTHER_PUBLIC_ENTITY_LIST
+        (CALCINDEX,SDATE,EDATE,CUST_NAME,CRM_FIRST_LEVEL,
+         QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT)
+        values(
+            #{model.calcIndex},
+            #{model.startDate},
+            #{model.endDate},
+            #{model.customerName},
+            #{model.crmFirstLevel},
+            #{model.crmToolTypename},
+            #{model.baseWeight},
+            #{model.exemptionWeight})
+    </insert>
+
+    <!-- 删除当前行 -->
+    <delete id="deleteRows"  parameterType="java.lang.String">
+        delete  from RWA_BDM_OBJ_CONF_OTHER_PUBLIC_ENTITY_LIST
+        where CUST_NAME = #{customerName};
+    </delete>
+
+    <select id="selectDetailData"
+            parameterType="com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel"
+            resultMap="useMap">
+        select CALCINDEX,SDATE,EDATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+        from RWA_BDM_OBJ_CONF_OTHER_PUBLIC_ENTITY_LIST
+        <where>
+            CUST_NAME = #{model.customerName}
+<!--            <if test=" null != #{model.calcIndex} ">-->
+<!--                CALCINDEX = #{model.calcIndex}-->
+<!--            </if>-->
+<!--            <if test=" null != #{model.customerName} ">-->
+<!--                and CUST_NAME = #{model.customerName}-->
+<!--            </if>-->
+        </where>
+    </select>
 
 </mapper>

+ 30 - 2
Procedure/backend/project/src/main/java/com/sundata/product/rwa/SectorList/service/SysListOfPublicSectorService.java

@@ -5,13 +5,41 @@ import com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import java.util.List;
+
 @Service
 public class SysListOfPublicSectorService {
     @Autowired
     SysListOfPublicSectorMapper sysListOfPublicSectorMapper;
 
     // 页面初始化
-    public ListOfPublicSectorModel initProgram () {
-        return sysListOfPublicSectorMapper.initProgram();
+    public List<ListOfPublicSectorModel> initProgram (ListOfPublicSectorModel model) {
+        if (null == model.getCustomerName() || "".equals(model.getCustomerName())) {
+            return sysListOfPublicSectorMapper.initProgram(model);
+        } else {
+            return sysListOfPublicSectorMapper.getDataList(model);
+        }
+    }
+
+    // 新建数据
+    public boolean createDetailData (ListOfPublicSectorModel model) {
+        return sysListOfPublicSectorMapper.createDetailData(model);
+    }
+
+    // 删除当前行
+    public boolean deleteRows (String customerName) {
+        return sysListOfPublicSectorMapper.deleteRows(customerName);
     }
+
+    // 查询当前行详细数据
+    public ListOfPublicSectorModel selectDetailData (ListOfPublicSectorModel model) {
+        return sysListOfPublicSectorMapper.selectDetailData(model);
+    }
+
+    // 更新数据
+    public boolean updateExistData (ListOfPublicSectorModel model) {
+        sysListOfPublicSectorMapper.deleteRows(model.getCustomerName());
+        return sysListOfPublicSectorMapper.createDetailData(model);
+    }
+
 }

+ 52 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/action/AccountReconciliationAction.java

@@ -0,0 +1,52 @@
+package com.sundata.product.rwa.businessconfig.action;
+
+import com.sundata.common.base.BaseAction;
+import com.sundata.product.rwa.businessconfig.model.AccountReconciliationModel;
+import com.sundata.product.rwa.businessconfig.service.AccountReconciliationService;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+@Controller
+@RequestMapping("product/rwa/businessconfig/AccountReconciliationAction")
+public class AccountReconciliationAction  extends BaseAction {
+    @Autowired
+    AccountReconciliationService accountReconciliationService;
+
+    @RequestMapping("/createRows")
+    public void createRows (HttpServletRequest request, HttpServletResponse response, @RequestBody AccountReconciliationModel model) {
+        // 增
+        sendData(response, accountReconciliationService.createRows(model));
+    }
+
+    @RequestMapping("/deleteRows")
+    public void deleteRows(HttpServletRequest request, HttpServletResponse response,@RequestParam String generalLedgerCode) {
+        // 删除
+        sendData(response, accountReconciliationService.deleteRows(generalLedgerCode));
+    }
+
+    @RequestMapping("/updateExistData")
+    public void updateExistData(HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody AccountReconciliationModel model){
+        // 改
+        sendData(response, accountReconciliationService.updateExistData(model));
+    }
+
+    @RequestMapping("/selectDataList")
+    public void selectDataList (HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody AccountReconciliationModel model) {
+        // 初始化
+        sendData(response, accountReconciliationService.selectDataList(model));
+    }
+
+    // 查询当前行
+    @RequestMapping("/selectRowData")
+    public void selectRowData (HttpServletRequest request, HttpServletResponse response,
+                               @RequestBody AccountReconciliationModel model) {
+        sendData(response, accountReconciliationService.selectRowData(model));
+    }
+}

+ 52 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/action/GeneralSectorAction.java

@@ -0,0 +1,52 @@
+package com.sundata.product.rwa.businessconfig.action;
+
+import com.sundata.common.base.BaseAction;
+import com.sundata.product.rwa.businessconfig.model.GeneralSectorModel;
+import com.sundata.product.rwa.businessconfig.service.GeneralSectorService;
+import com.sundata.product.rwa.developmentbankslist.model.BankListModel;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+@Controller
+@RequestMapping("product/rwa/businessconfig")
+public class GeneralSectorAction extends BaseAction {
+    @Autowired
+    GeneralSectorService generalSectorService;
+
+    @RequestMapping("/createRows")
+    public void createRows (HttpServletRequest request, HttpServletResponse response, @RequestBody GeneralSectorModel model) {
+        // 增
+        sendData(response, generalSectorService.createRows(model));
+    }
+
+    @RequestMapping("/deleteRows")
+    public void deleteRows(HttpServletRequest request, HttpServletResponse response,@RequestParam String customerName) {
+        // 删除
+        sendData(response, generalSectorService.deleteRows(customerName));
+    }
+
+    @RequestMapping("/updateExistData")
+    public void updateExistData(HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody GeneralSectorModel model){
+        // 改
+        sendData(response, generalSectorService.updateExistData(model));
+    }
+
+    @RequestMapping("/selectDataList")
+    public void selectDataList (HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody GeneralSectorModel model) {
+        // 初始化
+        sendData(response, generalSectorService.selectDataList(model));
+    }
+
+    // 查询当前行
+    @RequestMapping("/selectRowData")
+    public void selectRowData (HttpServletRequest request, HttpServletResponse response,
+                               @RequestBody GeneralSectorModel model) {
+        sendData(response, generalSectorService.selectRowData(model));
+    }
+}

+ 52 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/action/RiskExposureClassAction.java

@@ -0,0 +1,52 @@
+package com.sundata.product.rwa.businessconfig.action;
+
+import com.sundata.common.base.BaseAction;
+import com.sundata.product.rwa.businessconfig.model.RiskExposureClassModel;
+import com.sundata.product.rwa.businessconfig.service.RiskExposureClassService;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+@Controller
+@RequestMapping("product/rwa/businessconfig/RiskExposureClassAction")
+public class RiskExposureClassAction extends BaseAction {
+    @Autowired
+    RiskExposureClassService riskExposureClassService;
+    
+    @RequestMapping("/createRows")
+    public void createRows (HttpServletRequest request, HttpServletResponse response, @RequestBody RiskExposureClassModel model) {
+        // 增
+        sendData(response, riskExposureClassService.createRows(model));
+    }
+
+    @RequestMapping("/deleteRows")
+    public void deleteRows(HttpServletRequest request, HttpServletResponse response,@RequestParam String riskType) {
+        // 删除
+        sendData(response, riskExposureClassService.deleteRows(riskType));
+    }
+
+    @RequestMapping("/updateExistData")
+    public void updateExistData(HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody RiskExposureClassModel model){
+        // 改
+        sendData(response, riskExposureClassService.updateExistData(model));
+    }
+
+    @RequestMapping("/selectDataList")
+    public void selectDataList (HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody RiskExposureClassModel model) {
+        // 初始化
+        sendData(response, riskExposureClassService.selectDataList(model));
+    }
+
+    // 查询当前行
+    @RequestMapping("/selectRowData")
+    public void selectRowData (HttpServletRequest request, HttpServletResponse response,
+                               @RequestBody RiskExposureClassModel model) {
+        sendData(response, riskExposureClassService.selectRowData(model));
+    }
+}

+ 52 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/action/SilverGuaranteeAction.java

@@ -0,0 +1,52 @@
+package com.sundata.product.rwa.businessconfig.action;
+
+import com.sundata.common.base.BaseAction;
+import com.sundata.product.rwa.businessconfig.model.SilverGuaranteeModel;
+import com.sundata.product.rwa.businessconfig.service.SilverGuaranteeService;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+@Controller
+@RequestMapping("product/rwa/businessconfig/SilverGuaranteeAction")
+public class SilverGuaranteeAction extends BaseAction {
+    @Autowired
+    SilverGuaranteeService silverGuaranteeService;
+    
+    @RequestMapping("/createRows")
+    public void createRows (HttpServletRequest request, HttpServletResponse response, @RequestBody SilverGuaranteeModel model) {
+        // 增
+        sendData(response, silverGuaranteeService.createRows(model));
+    }
+
+    @RequestMapping("/deleteRows")
+    public void deleteRows(HttpServletRequest request, HttpServletResponse response,@RequestParam String businessType) {
+        // 删除
+        sendData(response, silverGuaranteeService.deleteRows(businessType));
+    }
+
+    @RequestMapping("/updateExistData")
+    public void updateExistData(HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody SilverGuaranteeModel model){
+        // 改
+        sendData(response, silverGuaranteeService.updateExistData(model));
+    }
+
+    @RequestMapping("/selectDataList")
+    public void selectDataList (HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody SilverGuaranteeModel model) {
+        // 初始化
+        sendData(response, silverGuaranteeService.selectDataList(model));
+    }
+
+    // 查询当前行
+    @RequestMapping("/selectRowData")
+    public void selectRowData (HttpServletRequest request, HttpServletResponse response,
+                               @RequestBody SilverGuaranteeModel model) {
+        sendData(response, silverGuaranteeService.selectRowData(model));
+    }
+}

+ 14 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mapper/AccountReconciliationMapper.java

@@ -0,0 +1,14 @@
+package com.sundata.product.rwa.businessconfig.mapper;
+
+import com.sundata.product.rwa.businessconfig.model.AccountReconciliationModel;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface AccountReconciliationMapper {
+    public boolean createRows(@Param("model") AccountReconciliationModel model);
+    public boolean deleteRows(@Param("generalLedgerCode")String generalLedgerCode);
+    public List<AccountReconciliationModel> selectDataList(@Param("model")AccountReconciliationModel model);
+    public List<AccountReconciliationModel> selectConditionData(@Param("model")AccountReconciliationModel model);
+    public AccountReconciliationModel selectRowData(@Param("model")AccountReconciliationModel model);
+}

+ 14 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mapper/GeneralSectorMapper.java

@@ -0,0 +1,14 @@
+package com.sundata.product.rwa.businessconfig.mapper;
+
+import com.sundata.product.rwa.businessconfig.model.GeneralSectorModel;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface GeneralSectorMapper {
+    public boolean createRows(@Param("model") GeneralSectorModel model);
+    public boolean deleteRows(@Param("customerName")String customerName);
+    public List<GeneralSectorModel> selectDataList(@Param("model")GeneralSectorModel model);
+    public List<GeneralSectorModel> selectConditionData(@Param("model")GeneralSectorModel model);
+    public GeneralSectorModel selectRowData(@Param("model")GeneralSectorModel model);
+}

+ 14 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mapper/RiskExposureClassMapper.java

@@ -0,0 +1,14 @@
+package com.sundata.product.rwa.businessconfig.mapper;
+
+import com.sundata.product.rwa.businessconfig.model.RiskExposureClassModel;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface RiskExposureClassMapper {
+    public boolean createRows(@Param("model") RiskExposureClassModel model);
+    public boolean deleteRows(@Param("riskType")String riskType);
+    public List<RiskExposureClassModel> selectDataList(@Param("model")RiskExposureClassModel model);
+    public List<RiskExposureClassModel> selectConditionData(@Param("model")RiskExposureClassModel model);
+    public RiskExposureClassModel selectRowData(@Param("model")RiskExposureClassModel model);
+}

+ 14 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mapper/SilverGuaranteeMapper.java

@@ -0,0 +1,14 @@
+package com.sundata.product.rwa.businessconfig.mapper;
+
+import com.sundata.product.rwa.businessconfig.model.SilverGuaranteeModel;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface SilverGuaranteeMapper {
+    public boolean createRows(@Param("model") SilverGuaranteeModel model);
+    public boolean deleteRows(@Param("businessType")String businessType);
+    public List<SilverGuaranteeModel> selectDataList(@Param("model")SilverGuaranteeModel model);
+    public List<SilverGuaranteeModel> selectConditionData(@Param("model")SilverGuaranteeModel model);
+    public SilverGuaranteeModel selectRowData(@Param("model")SilverGuaranteeModel model);
+}

+ 204 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/model/AccountReconciliationModel.java

@@ -0,0 +1,204 @@
+package com.sundata.product.rwa.businessconfig.model;
+
+public class AccountReconciliationModel {
+    // 计算实例号
+    private String calcIndex;
+    // 起始数据日期
+    private String startDate;
+    // 截止数据日期
+    private String endDate;
+    // 年月
+    private String yearMonth;
+    // 数据日期
+    private String dataDate;
+    // 总账科目号
+    private String generalLedgerCode;
+    // 科目名称
+    private String subjectName;
+    // 科目状态
+    private String subjectState;
+    // 科目级别
+    private String subjectLevel;
+    // 是否最小层级科目
+    private String minLevelSubject;
+    // 是否纳入计量
+    private String measurement;
+    // 是否总分校验
+    private String totalScoreVerified;
+    // 是否总账取数
+    private String generalLedgerRetrieval;
+    // 二档行风险暴露划分(适用总账直接取数和总分校验出现正差异时)
+    private String exposureClassification1;
+    // 二档行风险暴露划分(适用总分校验出现负差异时)
+    private String exposureClassification2;
+    // 记账方向(A:实际,D:借方,C:贷方)
+    private String accountingDirection;
+    // 处理方式(N借-贷,M贷-借)
+    private String disposal;
+    // 科目性质
+    private String subjectNature;
+    // 表内外标识
+    private String onOffFlag;
+    // 分工
+    private String divisionOfLabor;
+
+    public String getCalcIndex() {
+        return calcIndex;
+    }
+
+    public void setCalcIndex(String calcIndex) {
+        this.calcIndex = calcIndex;
+    }
+
+    public String getStartDate() {
+        return startDate;
+    }
+
+    public void setStartDate(String startDate) {
+        this.startDate = startDate;
+    }
+
+    public String getEndDate() {
+        return endDate;
+    }
+
+    public void setEndDate(String endDate) {
+        this.endDate = endDate;
+    }
+
+    public String getYearMonth() {
+        return yearMonth;
+    }
+
+    public void setYearMonth(String yearMonth) {
+        this.yearMonth = yearMonth;
+    }
+
+    public String getDataDate() {
+        return dataDate;
+    }
+
+    public void setDataDate(String dataDate) {
+        this.dataDate = dataDate;
+    }
+
+    public String getGeneralLedgerCode() {
+        return generalLedgerCode;
+    }
+
+    public void setGeneralLedgerCode(String generalLedgerCode) {
+        this.generalLedgerCode = generalLedgerCode;
+    }
+
+    public String getSubjectName() {
+        return subjectName;
+    }
+
+    public void setSubjectName(String subjectName) {
+        this.subjectName = subjectName;
+    }
+
+    public String getSubjectState() {
+        return subjectState;
+    }
+
+    public void setSubjectState(String subjectState) {
+        this.subjectState = subjectState;
+    }
+
+    public String getSubjectLevel() {
+        return subjectLevel;
+    }
+
+    public void setSubjectLevel(String subjectLevel) {
+        this.subjectLevel = subjectLevel;
+    }
+
+    public String getMinLevelSubject() {
+        return minLevelSubject;
+    }
+
+    public void setMinLevelSubject(String minLevelSubject) {
+        this.minLevelSubject = minLevelSubject;
+    }
+
+    public String getMeasurement() {
+        return measurement;
+    }
+
+    public void setMeasurement(String measurement) {
+        this.measurement = measurement;
+    }
+
+    public String getTotalScoreVerified() {
+        return totalScoreVerified;
+    }
+
+    public void setTotalScoreVerified(String totalScoreVerified) {
+        this.totalScoreVerified = totalScoreVerified;
+    }
+
+    public String getGeneralLedgerRetrieval() {
+        return generalLedgerRetrieval;
+    }
+
+    public void setGeneralLedgerRetrieval(String generalLedgerRetrieval) {
+        this.generalLedgerRetrieval = generalLedgerRetrieval;
+    }
+
+    public String getExposureClassification1() {
+        return exposureClassification1;
+    }
+
+    public void setExposureClassification1(String exposureClassification1) {
+        this.exposureClassification1 = exposureClassification1;
+    }
+
+    public String getExposureClassification2() {
+        return exposureClassification2;
+    }
+
+    public void setExposureClassification2(String exposureClassification2) {
+        this.exposureClassification2 = exposureClassification2;
+    }
+
+    public String getAccountingDirection() {
+        return accountingDirection;
+    }
+
+    public void setAccountingDirection(String accountingDirection) {
+        this.accountingDirection = accountingDirection;
+    }
+
+    public String getDisposal() {
+        return disposal;
+    }
+
+    public void setDisposal(String disposal) {
+        this.disposal = disposal;
+    }
+
+    public String getSubjectNature() {
+        return subjectNature;
+    }
+
+    public void setSubjectNature(String subjectNature) {
+        this.subjectNature = subjectNature;
+    }
+
+    public String getOnOffFlag() {
+        return onOffFlag;
+    }
+
+    public void setOnOffFlag(String onOffFlag) {
+        this.onOffFlag = onOffFlag;
+    }
+
+    public String getDivisionOfLabor() {
+        return divisionOfLabor;
+    }
+
+    public void setDivisionOfLabor(String divisionOfLabor) {
+        this.divisionOfLabor = divisionOfLabor;
+    }
+}

+ 104 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/model/GeneralSectorModel.java

@@ -0,0 +1,104 @@
+package com.sundata.product.rwa.businessconfig.model;
+
+public class GeneralSectorModel {
+    // 计算实例号
+    private String calcIndex;
+    // 起始数据日期
+    private String startDate;
+    // 截止数据日期
+    private String endDate;
+    // 年月
+    private String yearMonth;
+    // 数据日期
+    private String dataDate;
+    // 保证人交易对手名称
+    private String customerName;
+    // 缓释一级分类
+    private String crmFirstLevel;
+    // 合格信用风险缓释工具类型
+    private String crmToolTypename;
+    // 基础缓释权重
+    private String baseWeight;
+    // 豁免后缓释权重
+    private String exemptionWeight;
+
+    public String getCalcIndex() {
+        return calcIndex;
+    }
+
+    public void setCalcIndex(String calcIndex) {
+        this.calcIndex = calcIndex;
+    }
+
+    public String getStartDate() {
+        return startDate;
+    }
+
+    public void setStartDate(String startDate) {
+        this.startDate = startDate;
+    }
+
+    public String getEndDate() {
+        return endDate;
+    }
+
+    public void setEndDate(String endDate) {
+        this.endDate = endDate;
+    }
+
+    public String getYearMonth() {
+        return yearMonth;
+    }
+
+    public void setYearMonth(String yearMonth) {
+        this.yearMonth = yearMonth;
+    }
+
+    public String getDataDate() {
+        return dataDate;
+    }
+
+    public void setDataDate(String dataDate) {
+        this.dataDate = dataDate;
+    }
+
+    public String getCustomerName() {
+        return customerName;
+    }
+
+    public void setCustomerName(String customerName) {
+        this.customerName = customerName;
+    }
+
+    public String getCrmFirstLevel() {
+        return crmFirstLevel;
+    }
+
+    public void setCrmFirstLevel(String crmFirstLevel) {
+        this.crmFirstLevel = crmFirstLevel;
+    }
+
+    public String getCrmToolTypename() {
+        return crmToolTypename;
+    }
+
+    public void setCrmToolTypename(String crmToolTypename) {
+        this.crmToolTypename = crmToolTypename;
+    }
+
+    public String getBaseWeight() {
+        return baseWeight;
+    }
+
+    public void setBaseWeight(String baseWeight) {
+        this.baseWeight = baseWeight;
+    }
+
+    public String getExemptionWeight() {
+        return exemptionWeight;
+    }
+
+    public void setExemptionWeight(String exemptionWeight) {
+        this.exemptionWeight = exemptionWeight;
+    }
+}

+ 94 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/model/RiskExposureClassModel.java

@@ -0,0 +1,94 @@
+package com.sundata.product.rwa.businessconfig.model;
+
+public class RiskExposureClassModel {
+    // 计算实例号
+    private String calcIndex;
+    // 起始数据日期
+    private String startDate;
+    // 截止数据日期
+    private String endDate;
+    // 年月
+    private String yearMonth;
+    // 数据日期
+    private String dataDate;
+    // 风险暴露分类
+    private String riskType;
+    // 风险暴露分类代码
+    private String riskExposureCode;
+    // 风险暴露分类层级
+    private String riskExposureHierarchy;
+    // 风险权重
+    private String riskWeight;
+
+    public String getCalcIndex() {
+        return calcIndex;
+    }
+
+    public void setCalcIndex(String calcIndex) {
+        this.calcIndex = calcIndex;
+    }
+
+    public String getStartDate() {
+        return startDate;
+    }
+
+    public void setStartDate(String startDate) {
+        this.startDate = startDate;
+    }
+
+    public String getEndDate() {
+        return endDate;
+    }
+
+    public void setEndDate(String endDate) {
+        this.endDate = endDate;
+    }
+
+    public String getYearMonth() {
+        return yearMonth;
+    }
+
+    public void setYearMonth(String yearMonth) {
+        this.yearMonth = yearMonth;
+    }
+
+    public String getDataDate() {
+        return dataDate;
+    }
+
+    public void setDataDate(String dataDate) {
+        this.dataDate = dataDate;
+    }
+
+    public String getRiskType() {
+        return riskType;
+    }
+
+    public void setRiskType(String riskType) {
+        this.riskType = riskType;
+    }
+
+    public String getRiskExposureCode() {
+        return riskExposureCode;
+    }
+
+    public void setRiskExposureCode(String riskExposureCode) {
+        this.riskExposureCode = riskExposureCode;
+    }
+
+    public String getRiskExposureHierarchy() {
+        return riskExposureHierarchy;
+    }
+
+    public void setRiskExposureHierarchy(String riskExposureHierarchy) {
+        this.riskExposureHierarchy = riskExposureHierarchy;
+    }
+
+    public String getRiskWeight() {
+        return riskWeight;
+    }
+
+    public void setRiskWeight(String riskWeight) {
+        this.riskWeight = riskWeight;
+    }
+}

+ 114 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/model/SilverGuaranteeModel.java

@@ -0,0 +1,114 @@
+package com.sundata.product.rwa.businessconfig.model;
+
+public class SilverGuaranteeModel {
+    // 计算实例号
+    private String calcIndex;
+    // 起始数据日期
+    private String startDate;
+    // 截止数据日期
+    private String endDate;
+    // 年月
+    private String yearMonth;
+    // 数据日期
+    private String dataDate;
+    // 业务类型
+    private String businessType;
+    // 缓释一级分类
+    private String crmFirstLevel;
+    // 合格信用风险缓释工具类型
+    private String crmToolTypename;
+    // 基础缓释权重
+    private String baseWeight;
+    // 豁免后缓释权重
+    private String exemptionWeight;
+    // 备注
+    private String notes;
+
+    public String getCalcIndex() {
+        return calcIndex;
+    }
+
+    public void setCalcIndex(String calcIndex) {
+        this.calcIndex = calcIndex;
+    }
+
+    public String getStartDate() {
+        return startDate;
+    }
+
+    public void setStartDate(String startDate) {
+        this.startDate = startDate;
+    }
+
+    public String getEndDate() {
+        return endDate;
+    }
+
+    public void setEndDate(String endDate) {
+        this.endDate = endDate;
+    }
+
+    public String getYearMonth() {
+        return yearMonth;
+    }
+
+    public void setYearMonth(String yearMonth) {
+        this.yearMonth = yearMonth;
+    }
+
+    public String getDataDate() {
+        return dataDate;
+    }
+
+    public void setDataDate(String dataDate) {
+        this.dataDate = dataDate;
+    }
+
+    public String getBusinessType() {
+        return businessType;
+    }
+
+    public void setBusinessType(String businessType) {
+        this.businessType = businessType;
+    }
+
+    public String getCrmFirstLevel() {
+        return crmFirstLevel;
+    }
+
+    public void setCrmFirstLevel(String crmFirstLevel) {
+        this.crmFirstLevel = crmFirstLevel;
+    }
+
+    public String getCrmToolTypename() {
+        return crmToolTypename;
+    }
+
+    public void setCrmToolTypename(String crmToolTypename) {
+        this.crmToolTypename = crmToolTypename;
+    }
+
+    public String getBaseWeight() {
+        return baseWeight;
+    }
+
+    public void setBaseWeight(String baseWeight) {
+        this.baseWeight = baseWeight;
+    }
+
+    public String getExemptionWeight() {
+        return exemptionWeight;
+    }
+
+    public void setExemptionWeight(String exemptionWeight) {
+        this.exemptionWeight = exemptionWeight;
+    }
+
+    public String getNotes() {
+        return notes;
+    }
+
+    public void setNotes(String notes) {
+        this.notes = notes;
+    }
+}

+ 169 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mybatis/AccountReconciliationMapper.xml

@@ -0,0 +1,169 @@
+<?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="com.sundata.product.rwa.businessconfig.mapper.AccountReconciliationMapper">
+    <resultMap id="useMap" type="com.sundata.product.rwa.businessconfig.model.AccountReconciliationModel">
+        <result property="calcIndex" column="CALCINDEX"></result>
+        <result property="startDate" column="SDATE"></result>
+        <result property="endDate" column="EDATE"></result>
+        <result property="yearMonth" column="TERM"></result>
+        <result property="dataDate" column="DATA_DATE"></result>
+        <result property="generalLedgerCode" column="GL_CODE"></result>
+        <result property="subjectName" column="SUBJECT_DESC"></result>
+        <result property="subjectState" column="SUBJECT_STATE"></result>
+        <result property="subjectLevel" column="SUBJECT_LEVEL"></result>
+        <result property="minLevelSubject" column="MIN_LEVEL_SUBJECT"></result>
+        <result property="measurement" column="WHETHER_INCLUDE_MEASUREMENT"></result>
+        <result property="totalScoreVerified" column="WHETHER_TOTAL_SCORE_VERIFIED"></result>
+        <result property="generalLedgerRetrieval" column="WHETHER_GL_RETRIEVAL"></result>
+        <result property="exposureClassification1" column="RISK_EXPOSURE_CLASSIFICATION1"></result>
+        <result property="exposureClassification2" column="RISK_EXPOSURE_CLASSIFICATION2"></result>
+        <result property="ACCOUNTING_DIRECTION" column="accountingDirection"></result>
+        <result property="disposal" column="DISPOSAL"></result>
+        <result property="SUBJECT_NATURE" column="subjectNature"></result>
+        <result property="onOffFlag" column="ON_OFF_FLAG"></result>
+        <result property="divisionOfLabor" column="SOURCE"></result>
+    </resultMap>
+
+    <!-- 初始化 -->
+    <select id="selectDataList"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.AccountReconciliationModel">
+        select
+        CALCINDEX,
+        SDATE,
+        EDATE,
+        TERM,
+        DATA_DATE,
+        GL_CODE,
+        SUBJECT_DESC,
+        SUBJECT_STATE,
+        SUBJECT_LEVEL,
+        MIN_LEVEL_SUBJECT,
+        WHETHER_INCLUDE_MEASUREMENT,
+        WHETHER_TOTAL_SCORE_VERIFIED,
+        WHETHER_GL_RETRIEVAL,
+        RISK_EXPOSURE_CLASSIFICATION1,
+        RISK_EXPOSURE_CLASSIFICATION2,
+        ACCOUNTING_DIRECTION,
+        DISPOSAL,
+        SUBJECT_NATURE,
+        ON_OFF_FLAG,
+        SOURCE
+        from RWA_OBJ_CONF_GL_RECONCILIATION;
+    </select>
+
+    <!-- 初始化 -->
+    <select id="selectConditionData"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.AccountReconciliationModel">
+        select CALCINDEX,
+        SDATE,
+        EDATE,
+        TERM,
+        DATA_DATE,
+        GL_CODE,
+        SUBJECT_DESC,
+        SUBJECT_STATE,
+        SUBJECT_LEVEL,
+        MIN_LEVEL_SUBJECT,
+        WHETHER_INCLUDE_MEASUREMENT,
+        WHETHER_TOTAL_SCORE_VERIFIED,
+        WHETHER_GL_RETRIEVAL,
+        RISK_EXPOSURE_CLASSIFICATION1,
+        RISK_EXPOSURE_CLASSIFICATION2,
+        ACCOUNTING_DIRECTION,
+        DISPOSAL,
+        SUBJECT_NATURE,
+        ON_OFF_FLAG,
+        SOURCE
+        from RWA_OBJ_CONF_GL_RECONCILIATION
+        <if test="null != #{model.generalLedgerCode} and '' != #{model.generalLedgerCode}">
+            <where>
+                GL_CODE like "%"#{model.generalLedgerCode}"%"
+            </where>
+        </if>
+    </select>
+
+    <select id="selectRowData"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.AccountReconciliationModel">
+        select CALCINDEX,
+        SDATE,
+        EDATE,
+        TERM,
+        DATA_DATE,
+        GL_CODE,
+        SUBJECT_DESC,
+        SUBJECT_STATE,
+        SUBJECT_LEVEL,
+        MIN_LEVEL_SUBJECT,
+        WHETHER_INCLUDE_MEASUREMENT,
+        WHETHER_TOTAL_SCORE_VERIFIED,
+        WHETHER_GL_RETRIEVAL,
+        RISK_EXPOSURE_CLASSIFICATION1,
+        RISK_EXPOSURE_CLASSIFICATION2,
+        ACCOUNTING_DIRECTION,
+        DISPOSAL,
+        SUBJECT_NATURE,
+        ON_OFF_FLAG,
+        SOURCE
+        from RWA_OBJ_CONF_GL_RECONCILIATION
+        <if test="null != #{model.generalLedgerCode} and '' != #{model.generalLedgerCode}">
+            <where>
+                GL_CODE = #{model.generalLedgerCode}
+            </where>
+        </if>
+    </select>
+
+    <delete id="deleteRows" parameterType="java.lang.String">
+        delete from RWA_OBJ_CONF_GL_RECONCILIATION
+        <where>
+            GL_CODE = #{generalLedgerCode}
+        </where>
+    </delete>
+
+    <insert id="createRows" parameterType="com.sundata.product.rwa.businessconfig.model.AccountReconciliationModel">
+        insert into RWA_OBJ_CONF_GL_RECONCILIATION
+        (CALCINDEX,
+        SDATE,
+        EDATE,
+        TERM,
+        DATA_DATE,
+        GL_CODE,
+        SUBJECT_DESC,
+        SUBJECT_STATE,
+        SUBJECT_LEVEL,
+        MIN_LEVEL_SUBJECT,
+        WHETHER_INCLUDE_MEASUREMENT,
+        WHETHER_TOTAL_SCORE_VERIFIED,
+        WHETHER_GL_RETRIEVAL,
+        RISK_EXPOSURE_CLASSIFICATION1,
+        RISK_EXPOSURE_CLASSIFICATION2,
+        ACCOUNTING_DIRECTION,
+        DISPOSAL,
+        SUBJECT_NATURE,
+        ON_OFF_FLAG,
+        SOURCE )
+        values
+        (
+        #{model.calcIndex},
+        #{model.startDate},
+        #{model.endDate},
+        #{model.yearMonth},
+        #{model.dataDate},
+        #{model.generalLedgerCode},
+        #{model.subjectName},
+        #{model.subjectState},
+        #{model.subjectLevel},
+        #{model.minLevelSubject},
+        #{model.measurement},
+        #{model.totalScoreVerified},
+        #{model.generalLedgerRetrieval},
+        #{model.exposureClassification1},
+        #{model.exposureClassification2},
+        #{model.accountingDirection},
+        #{model.disposal},
+        #{model.subjectNature},
+        #{model.onOffFlag},
+        #{model.divisionOfLabor}
+        )
+    </insert>
+
+
+</mapper>

+ 76 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mybatis/GeneralSectorMapper.xml

@@ -0,0 +1,76 @@
+<?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="com.sundata.product.rwa.businessconfig.mapper.GeneralSectorMapper">
+    <resultMap id="useMap" type="com.sundata.product.rwa.businessconfig.model.GeneralSectorModel">
+        <result property="calcIndex" column="CALCINDEX"></result>
+        <result property="startDate" column="SDATE"></result>
+        <result property="endDate" column="EDATE"></result>
+        <result property="yearMonth" column="TERM"></result>
+        <result property="dataDate" column="DATA_DATE"></result>
+        <result property="customerName" column="CUST_NAME"></result>
+        <result property="crmFirstLevel" column="CRM_FIRST_LEVEL"></result>
+        <result property="crmToolTypename" column="QUALFIED_CREDIT_TOOL_TYPE_NAME"></result>
+        <result property="baseWeight" column="BASE_WEIGHT"></result>
+        <result property="exemptionWeight" column="EXEMPTION_WEIGHT"></result>
+    </resultMap>
+
+    <!-- 初始化 -->
+    <select id="selectDataList"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.GeneralSectorModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+        from RWA_BDM_OBJ_CONF_GENERAL_ENTITY;
+    </select>
+
+    <!-- 初始化 -->
+    <select id="selectConditionData"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.GeneralSectorModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+        from RWA_BDM_OBJ_CONF_GENERAL_ENTITY
+        <if test="null != #{model.customerName} and '' != #{model.customerName}">
+            <where>
+                CUST_NAME like "%"#{model.customerName}"%"
+            </where>
+        </if>
+    </select>
+
+    <select id="selectRowData"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.GeneralSectorModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+        from RWA_BDM_OBJ_CONF_GENERAL_ENTITY
+        <if test="null != #{model.customerName} and '' != #{model.customerName}">
+            <where>
+                CUST_NAME = #{model.customerName}
+            </where>
+        </if>
+    </select>
+
+    <delete id="deleteRows" parameterType="java.lang.String">
+        delete from RWA_BDM_OBJ_CONF_GENERAL_ENTITY
+        <where>
+            CUST_NAME = #{customerName}
+        </where>
+    </delete>
+
+    <insert id="createRows" parameterType="com.sundata.product.rwa.businessconfig.model.GeneralSectorModel">
+        insert into RWA_BDM_OBJ_CONF_GENERAL_ENTITY
+        (CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT)
+        values
+        (
+        #{model.calcIndex},
+        #{model.startDate},
+        #{model.endDate},
+        #{model.yearMonth},
+        #{model.dataDate},
+        #{model.customerName},
+        #{model.crmFirstLevel},
+        #{model.crmToolTypename},
+        #{model.baseWeight},
+        #{model.exemptionWeight}
+        )
+    </insert>
+
+
+</mapper>

+ 102 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mybatis/RiskExposureClassMapper.xml

@@ -0,0 +1,102 @@
+<?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="com.sundata.product.rwa.businessconfig.mapper.RiskExposureClassMapper">
+    <resultMap id="useMap" type="com.sundata.product.rwa.businessconfig.model.RiskExposureClassModel">
+        <result property="calcIndex" column="CALCINDEX"></result>
+        <result property="startDate" column="SDATE"></result>
+        <result property="endDate" column="EDATE"></result>
+        <result property="yearMonth" column="TERM"></result>
+        <result property="dataDate" column="DATA_DATE"></result>
+        <result property="riskType" column="RISK_TYPE"></result>
+        <result property="riskExposureCode" column="RISK_EXPOSURE_CODE"></result>
+        <result property="riskExposureHierarchy" column="RISK_EXPOSURE_HIERARCHY"></result>
+        <result property="riskWeight" column="RISK_WEIGHT"></result>
+    </resultMap>
+
+    <!-- 初始化 -->
+    <select id="selectDataList"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.RiskExposureClassModel">
+        select CALCINDEX,
+        SDATE,
+        EDATE,
+        TERM,
+        DATA_DATE,
+        RISK_TYPE,
+        RISK_EXPOSURE_CODE,
+        RISK_EXPOSURE_HIERARCHY,
+        RISK_WEIGHT
+        from RWA_BDM_OBJ_CONF_RISK_EXPOSURE_CLASSIFICATION;
+    </select>
+
+    <!-- 初始化 -->
+    <select id="selectConditionData"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.RiskExposureClassModel">
+        select CALCINDEX,
+        SDATE,
+        EDATE,
+        TERM,
+        DATA_DATE,
+        RISK_TYPE,
+        RISK_EXPOSURE_CODE,
+        RISK_EXPOSURE_HIERARCHY,
+        RISK_WEIGHT
+        from RWA_BDM_OBJ_CONF_RISK_EXPOSURE_CLASSIFICATION
+        <if test="null != #{model.riskType} and '' != #{model.riskType}">
+            <where>
+                RISK_TYPE like "%"#{model.riskType}"%"
+            </where>
+        </if>
+    </select>
+
+    <select id="selectRowData"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.RiskExposureClassModel">
+        select CALCINDEX,
+        SDATE,
+        EDATE,
+        TERM,
+        DATA_DATE,
+        RISK_TYPE,
+        RISK_EXPOSURE_CODE,
+        RISK_EXPOSURE_HIERARCHY,
+        RISK_WEIGHT
+        from RWA_BDM_OBJ_CONF_RISK_EXPOSURE_CLASSIFICATION
+        <if test="null != #{model.riskType} and '' != #{model.riskType}">
+            <where>
+                RISK_TYPE = #{model.riskType}
+            </where>
+        </if>
+    </select>
+
+    <delete id="deleteRows" parameterType="java.lang.String">
+        delete from RWA_BDM_OBJ_CONF_RISK_EXPOSURE_CLASSIFICATION
+        <where>
+            RISK_TYPE = #{riskType}
+        </where>
+    </delete>
+
+    <insert id="createRows" parameterType="com.sundata.product.rwa.businessconfig.model.RiskExposureClassModel">
+        insert into RWA_BDM_OBJ_CONF_RISK_EXPOSURE_CLASSIFICATION
+        (CALCINDEX,
+        SDATE,
+        EDATE,
+        TERM,
+        DATA_DATE,
+        RISK_TYPE,
+        RISK_EXPOSURE_CODE,
+        RISK_EXPOSURE_HIERARCHY,
+        RISK_WEIGHT)
+        values
+        (
+        #{model.calcIndex},
+        #{model.startDate},
+        #{model.endDate},
+        #{model.yearMonth},
+        #{model.dataDate},
+        #{model.riskType},
+        #{model.riskExposureCode},
+        #{model.riskExposureHierarchy},
+        #{model.riskWeight}
+        )
+    </insert>
+
+
+</mapper>

+ 78 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/mybatis/SilverGuaranteeMapper.xml

@@ -0,0 +1,78 @@
+<?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="com.sundata.product.rwa.businessconfig.mapper.SilverGuaranteeMapper">
+    <resultMap id="useMap" type="com.sundata.product.rwa.businessconfig.model.SilverGuaranteeModel">
+        <result property="calcIndex" column="CALCINDEX"></result>
+        <result property="startDate" column="SDATE"></result>
+        <result property="endDate" column="EDATE"></result>
+        <result property="yearMonth" column="TERM"></result>
+        <result property="dataDate" column="DATA_DATE"></result>
+        <result property="businessType" column="BUS_TYPE"></result>
+        <result property="crmFirstLevel" column="CRM_FIRST_LEVEL"></result>
+        <result property="crmToolTypename" column="QUALFIED_CREDIT_TOOL_TYPE_NAME"></result>
+        <result property="baseWeight" column="BASE_WEIGHT"></result>
+        <result property="exemptionWeight" column="EXEMPTION_WEIGHT"></result>
+        <result property="notes" column="NOTES"></result>
+    </resultMap>
+
+    <!-- 初始化 -->
+    <select id="selectDataList"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.SilverGuaranteeModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,BUS_TYPE,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT,NOTES
+        from RWA_BDM_OBJ_CONF_SILVER_GUARANTEE;
+    </select>
+
+    <!-- 初始化 -->
+    <select id="selectConditionData"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.SilverGuaranteeModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,BUS_TYPE,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT,NOTES
+        from RWA_BDM_OBJ_CONF_SILVER_GUARANTEE
+        <if test="null != #{model.businessType} and '' != #{model.businessType}">
+            <where>
+                BUS_TYPE like "%"#{model.businessType}"%"
+            </where>
+        </if>
+    </select>
+
+    <select id="selectRowData"  resultMap="useMap" parameterType="com.sundata.product.rwa.businessconfig.model.SilverGuaranteeModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,BUS_TYPE,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT,NOTES
+        from RWA_BDM_OBJ_CONF_SILVER_GUARANTEE
+        <if test="null != #{model.businessType} and '' != #{model.businessType}">
+            <where>
+                BUS_TYPE = #{model.businessType}
+            </where>
+        </if>
+    </select>
+
+    <delete id="deleteRows" parameterType="java.lang.String">
+        delete from RWA_BDM_OBJ_CONF_SILVER_GUARANTEE
+        <where>
+            BUS_TYPE = #{businessType}
+        </where>
+    </delete>
+
+    <insert id="createRows" parameterType="com.sundata.product.rwa.businessconfig.model.SilverGuaranteeModel">
+        insert into RWA_BDM_OBJ_CONF_SILVER_GUARANTEE
+        (CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,BUS_TYPE,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT,NOTES)
+        values
+        (
+        #{model.calcIndex},
+        #{model.startDate},
+        #{model.endDate},
+        #{model.yearMonth},
+        #{model.dataDate},
+        #{model.businessType},
+        #{model.crmFirstLevel},
+        #{model.crmToolTypename},
+        #{model.baseWeight},
+        #{model.exemptionWeight},
+        #{model.notes}
+        )
+    </insert>
+
+
+</mapper>

+ 40 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/service/AccountReconciliationService.java

@@ -0,0 +1,40 @@
+package com.sundata.product.rwa.businessconfig.service;
+
+import com.sundata.product.rwa.businessconfig.mapper.AccountReconciliationMapper;
+import com.sundata.product.rwa.businessconfig.model.AccountReconciliationModel;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class AccountReconciliationService {
+    @Autowired
+    AccountReconciliationMapper accountReconciliationMapper;
+
+    public boolean createRows(AccountReconciliationModel model) {
+        return accountReconciliationMapper.createRows(model);
+    }
+
+    public boolean deleteRows(String generalLedgerCode) {
+        return accountReconciliationMapper.deleteRows(generalLedgerCode);
+    }
+
+    public boolean updateExistData(AccountReconciliationModel model) {
+        accountReconciliationMapper.deleteRows(model.getGeneralLedgerCode());
+        return accountReconciliationMapper.createRows(model);
+    }
+
+    public List<AccountReconciliationModel> selectDataList(AccountReconciliationModel model) {
+        if (null == model.getGeneralLedgerCode() || "".equals(model.getGeneralLedgerCode())) {
+            return accountReconciliationMapper.selectDataList(model);
+        }else {
+            return accountReconciliationMapper.selectConditionData(model);
+        }
+
+    }
+
+    public AccountReconciliationModel selectRowData(AccountReconciliationModel model) {
+        return accountReconciliationMapper.selectRowData(model);
+    }
+}

+ 41 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/service/GeneralSectorService.java

@@ -0,0 +1,41 @@
+package com.sundata.product.rwa.businessconfig.service;
+
+import com.sundata.product.rwa.businessconfig.mapper.GeneralSectorMapper;
+import com.sundata.product.rwa.businessconfig.model.GeneralSectorModel;
+import com.sundata.product.rwa.developmentbankslist.model.BankListModel;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class GeneralSectorService {
+    @Autowired
+    GeneralSectorMapper generalSectorMapper;
+
+    public boolean createRows(GeneralSectorModel model) {
+        return generalSectorMapper.createRows(model);
+    }
+
+    public boolean deleteRows(String customerName) {
+        return generalSectorMapper.deleteRows(customerName);
+    }
+
+    public boolean updateExistData(GeneralSectorModel model) {
+         generalSectorMapper.deleteRows(model.getCustomerName());
+        return generalSectorMapper.createRows(model);
+    }
+
+    public List<GeneralSectorModel> selectDataList(GeneralSectorModel model) {
+        if (null == model.getCustomerName() || "".equals(model.getCustomerName())) {
+            return generalSectorMapper.selectDataList(model);
+        }else {
+            return generalSectorMapper.selectConditionData(model);
+        }
+
+    }
+
+    public GeneralSectorModel selectRowData(GeneralSectorModel model) {
+        return generalSectorMapper.selectRowData(model);
+    }
+}

+ 39 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/service/RiskExposureClassService.java

@@ -0,0 +1,39 @@
+package com.sundata.product.rwa.businessconfig.service;
+
+import com.sundata.product.rwa.businessconfig.mapper.RiskExposureClassMapper;
+import com.sundata.product.rwa.businessconfig.model.RiskExposureClassModel;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+@Service
+public class RiskExposureClassService {
+    @Autowired
+    RiskExposureClassMapper riskExposureClassMapper;
+
+    public boolean createRows(RiskExposureClassModel model) {
+        return riskExposureClassMapper.createRows(model);
+    }
+
+    public boolean deleteRows(String riskType) {
+        return riskExposureClassMapper.deleteRows(riskType);
+    }
+
+    public boolean updateExistData(RiskExposureClassModel model) {
+        riskExposureClassMapper.deleteRows(model.getRiskType());
+        return riskExposureClassMapper.createRows(model);
+    }
+
+    public List<RiskExposureClassModel> selectDataList(RiskExposureClassModel model) {
+        if (null == model.getRiskType() || "".equals(model.getRiskType())) {
+            return riskExposureClassMapper.selectDataList(model);
+        }else {
+            return riskExposureClassMapper.selectConditionData(model);
+        }
+
+    }
+
+    public RiskExposureClassModel selectRowData(RiskExposureClassModel model) {
+        return riskExposureClassMapper.selectRowData(model);
+    }
+}

+ 40 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/businessconfig/service/SilverGuaranteeService.java

@@ -0,0 +1,40 @@
+package com.sundata.product.rwa.businessconfig.service;
+
+import com.sundata.product.rwa.businessconfig.mapper.SilverGuaranteeMapper;
+import com.sundata.product.rwa.businessconfig.model.SilverGuaranteeModel;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class SilverGuaranteeService {
+    @Autowired
+    SilverGuaranteeMapper silverGuaranteeMapper;
+
+    public boolean createRows(SilverGuaranteeModel model) {
+        return silverGuaranteeMapper.createRows(model);
+    }
+
+    public boolean deleteRows(String businessType) {
+        return silverGuaranteeMapper.deleteRows(businessType);
+    }
+
+    public boolean updateExistData(SilverGuaranteeModel model) {
+        silverGuaranteeMapper.deleteRows(model.getBusinessType());
+        return silverGuaranteeMapper.createRows(model);
+    }
+
+    public List<SilverGuaranteeModel> selectDataList(SilverGuaranteeModel model) {
+        if (null == model.getBusinessType() || "".equals(model.getBusinessType())) {
+            return silverGuaranteeMapper.selectDataList(model);
+        }else {
+            return silverGuaranteeMapper.selectConditionData(model);
+        }
+
+    }
+
+    public SilverGuaranteeModel selectRowData(SilverGuaranteeModel model) {
+        return silverGuaranteeMapper.selectRowData(model);
+    }
+}

+ 53 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/action/DevelopBankList.java

@@ -0,0 +1,53 @@
+package com.sundata.product.rwa.developmentbankslist.action;
+
+import com.sundata.common.base.BaseAction;
+import com.sundata.product.rwa.SectorList.model.ListOfPublicSectorModel;
+import com.sundata.product.rwa.developmentbankslist.model.BankListModel;
+import com.sundata.product.rwa.developmentbankslist.service.DevelopBankListService;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+@Controller
+@RequestMapping("product/rwa/developmentbankslist")
+public class DevelopBankList extends BaseAction {
+    @Autowired
+    DevelopBankListService developBankListService;
+
+    @RequestMapping("/createRows")
+    public void createRows (HttpServletRequest request, HttpServletResponse response,@RequestBody BankListModel model) {
+        // 增
+        sendData(response, developBankListService.createRows(model));
+    }
+
+    @RequestMapping("/deleteRows")
+    public void deleteRows(HttpServletRequest request, HttpServletResponse response,@RequestParam String customerName) {
+        // 删除
+        sendData(response, developBankListService.deleteRows(customerName));
+    }
+
+    @RequestMapping("/updateExistData")
+    public void updateExistData(HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody BankListModel model){
+        // 改
+        sendData(response, developBankListService.updateExistData(model));
+    }
+
+    @RequestMapping("/selectDataList")
+    public void selectDataList (HttpServletRequest request, HttpServletResponse response,
+                                @RequestBody BankListModel model) {
+        // 初始化
+        sendData(response, developBankListService.selectDataList(model));
+    }
+
+    // 查询当前行
+    @RequestMapping("/selectRowData")
+    public void selectRowData (HttpServletRequest request, HttpServletResponse response,
+                               @RequestBody BankListModel model) {
+        sendData(response, developBankListService.selectRowData(model));
+    }
+}

+ 20 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/mapper/DevelopBankListMapper.java

@@ -0,0 +1,20 @@
+package com.sundata.product.rwa.developmentbankslist.mapper;
+
+import com.sundata.product.rwa.developmentbankslist.model.BankListModel;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface DevelopBankListMapper {
+    // 增
+    public boolean createRows (@Param("model")BankListModel model);
+    // 删除
+    public boolean deleteRows(@Param("customerName") String customerName);
+
+    // 初始化查询
+    public List<BankListModel> selectDataList (@Param("model")BankListModel model);
+    // 条件查询
+    public List<BankListModel> selectConditionData (@Param("model") BankListModel model);
+    // 查询当前行
+    public BankListModel selectRowData (@Param("model") BankListModel model);
+}

+ 104 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/model/BankListModel.java

@@ -0,0 +1,104 @@
+package com.sundata.product.rwa.developmentbankslist.model;
+
+public class BankListModel {
+    // 计算实例号
+    private String calcIndex;
+    // 起始数据日期
+    private String startDate;
+    // 截止数据日期
+    private String endDate;
+    // 年月
+    private String yearMonth;
+    // 数据日期
+    private String dataDate;
+    // 保证人交易对手名称
+    private String customerName;
+    // 缓释一级分类
+    private String crmFirstLevel;
+    // 合格信用风险缓释工具类型
+    private String crmToolTypename;
+    // 基础缓释权重
+    private String baseWeight;
+    // 豁免后缓释权重
+    private String exemptionWeight;
+
+    public String getCalcIndex() {
+        return calcIndex;
+    }
+
+    public void setCalcIndex(String calcIndex) {
+        this.calcIndex = calcIndex;
+    }
+
+    public String getStartDate() {
+        return startDate;
+    }
+
+    public void setStartDate(String startDate) {
+        this.startDate = startDate;
+    }
+
+    public String getEndDate() {
+        return endDate;
+    }
+
+    public void setEndDate(String endDate) {
+        this.endDate = endDate;
+    }
+
+    public String getYearMonth() {
+        return yearMonth;
+    }
+
+    public void setYearMonth(String yearMonth) {
+        this.yearMonth = yearMonth;
+    }
+
+    public String getDataDate() {
+        return dataDate;
+    }
+
+    public void setDataDate(String dataDate) {
+        this.dataDate = dataDate;
+    }
+
+    public String getCustomerName() {
+        return customerName;
+    }
+
+    public void setCustomerName(String customerName) {
+        this.customerName = customerName;
+    }
+
+    public String getCrmFirstLevel() {
+        return crmFirstLevel;
+    }
+
+    public void setCrmFirstLevel(String crmFirstLevel) {
+        this.crmFirstLevel = crmFirstLevel;
+    }
+
+    public String getCrmToolTypename() {
+        return crmToolTypename;
+    }
+
+    public void setCrmToolTypename(String crmToolTypename) {
+        this.crmToolTypename = crmToolTypename;
+    }
+
+    public String getBaseWeight() {
+        return baseWeight;
+    }
+
+    public void setBaseWeight(String baseWeight) {
+        this.baseWeight = baseWeight;
+    }
+
+    public String getExemptionWeight() {
+        return exemptionWeight;
+    }
+
+    public void setExemptionWeight(String exemptionWeight) {
+        this.exemptionWeight = exemptionWeight;
+    }
+}

+ 76 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/mybatis/DevelopBankListMapper.xml

@@ -0,0 +1,76 @@
+<?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="com.sundata.product.rwa.developmentbankslist.mapper.DevelopBankListMapper">
+    <resultMap id="useMap" type="com.sundata.product.rwa.developmentbankslist.model.BankListModel">
+        <result property="calcIndex" column="CALCINDEX"></result>
+        <result property="startDate" column="SDATE"></result>
+        <result property="endDate" column="EDATE"></result>
+        <result property="yearMonth" column="TERM"></result>
+        <result property="dataDate" column="DATA_DATE"></result>
+        <result property="customerName" column="CUST_NAME"></result>
+        <result property="crmFirstLevel" column="CRM_FIRST_LEVEL"></result>
+        <result property="crmToolTypename" column="QUALFIED_CREDIT_TOOL_TYPE_NAME"></result>
+        <result property="baseWeight" column="BASE_WEIGHT"></result>
+        <result property="exemptionWeight" column="EXEMPTION_WEIGHT"></result>
+    </resultMap>
+
+    <!-- 初始化 -->
+    <select id="selectDataList"  resultMap="useMap" parameterType="com.sundata.product.rwa.developmentbankslist.model.BankListModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+        from RWA_BDM_OBJ_CONF_MULTILATERAL_DEVELOPMENT_BANKS_LIST;
+    </select>
+
+    <!-- 初始化 -->
+    <select id="selectConditionData"  resultMap="useMap" parameterType="com.sundata.product.rwa.developmentbankslist.model.BankListModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+        from RWA_BDM_OBJ_CONF_MULTILATERAL_DEVELOPMENT_BANKS_LIST
+        <if test="null != #{model.customerName} and '' != #{model.customerName}">
+            <where>
+                CUST_NAME like "%"#{model.customerName}"%"
+            </where>
+        </if>
+    </select>
+
+    <select id="selectRowData"  resultMap="useMap" parameterType="com.sundata.product.rwa.developmentbankslist.model.BankListModel">
+        select CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT
+        from RWA_BDM_OBJ_CONF_MULTILATERAL_DEVELOPMENT_BANKS_LIST
+        <if test="null != #{model.customerName} and '' != #{model.customerName}">
+            <where>
+                CUST_NAME = #{model.customerName}
+            </where>
+        </if>
+    </select>
+
+    <delete id="deleteRows" parameterType="java.lang.String">
+        delete from RWA_BDM_OBJ_CONF_MULTILATERAL_DEVELOPMENT_BANKS_LIST
+        <where>
+            CUST_NAME = #{customerName}
+        </where>
+    </delete>
+
+    <insert id="createRows" parameterType="com.sundata.product.rwa.developmentbankslist.model.BankListModel">
+        insert into RWA_BDM_OBJ_CONF_MULTILATERAL_DEVELOPMENT_BANKS_LIST
+        (CALCINDEX,SDATE,EDATE,TERM,DATA_DATE,CUST_NAME,CRM_FIRST_LEVEL,
+        QUALFIED_CREDIT_TOOL_TYPE_NAME,BASE_WEIGHT,EXEMPTION_WEIGHT)
+        values
+        (
+         #{model.calcIndex},
+         #{model.startDate},
+         #{model.endDate},
+         #{model.yearMonth},
+         #{model.dataDate},
+         #{model.customerName},
+         #{model.crmFirstLevel},
+         #{model.crmToolTypename},
+         #{model.baseWeight},
+         #{model.exemptionWeight}
+        )
+    </insert>
+
+
+</mapper>

+ 44 - 0
Procedure/backend/project/src/main/java/com/sundata/product/rwa/developmentbankslist/service/DevelopBankListService.java

@@ -0,0 +1,44 @@
+package com.sundata.product.rwa.developmentbankslist.service;
+
+import com.sundata.product.rwa.developmentbankslist.mapper.DevelopBankListMapper;
+import com.sundata.product.rwa.developmentbankslist.model.BankListModel;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class DevelopBankListService {
+    @Autowired
+    DevelopBankListMapper developBankListMapper;
+
+    // 增
+    public boolean createRows (BankListModel model) {
+        return developBankListMapper.createRows(model);
+    }
+
+    // 删除
+    public boolean deleteRows(String customerName) {
+       return developBankListMapper.deleteRows(customerName);
+    }
+
+    // 改
+    public boolean updateExistData(BankListModel model){
+        developBankListMapper.deleteRows(model.getCustomerName());
+        return developBankListMapper.createRows(model);
+    }
+
+    // 查
+    public List<BankListModel> selectDataList (BankListModel model) {
+        if (null == model.getCustomerName() || "".equals(model.getCustomerName())) {
+            return developBankListMapper.selectDataList(model);
+        } else {
+            return developBankListMapper.selectConditionData(model);
+        }
+    }
+
+    // 查询当前行
+    public BankListModel selectRowData (BankListModel model) {
+      return developBankListMapper.selectRowData(model);
+    }
+}