Selaa lähdekoodia

Merge remote-tracking branch 'remotes/origin/dev-2.19.2' into dev

ZeroLiYi 4 kuukautta sitten
vanhempi
commit
84d227dbd0
22 muutettua tiedostoa jossa 935 lisäystä ja 55 poistoa
  1. 0 1
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsEnterpriseBalanceStatistic/mapper/FsEnterpriseBalanceStatisticMapper.java
  2. 131 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/controller/BusinessFsInterestMaintainController.java
  3. 81 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/entity/BusinessFsInterestMaintain.java
  4. 34 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/enums/BusinessFsInterestMaintainEnum.java
  5. 30 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/mapper/BusinessFsInterestMaintainMapper.java
  6. 18 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/mapper/mapping/BusinessFsInterestMaintainMapper.xml
  7. 78 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/param/BusinessFsInterestMaintainAddParam.java
  8. 83 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/param/BusinessFsInterestMaintainEditParam.java
  9. 35 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/param/BusinessFsInterestMaintainIdParam.java
  10. 51 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/param/BusinessFsInterestMaintainPageParam.java
  11. 84 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/service/BusinessFsInterestMaintainService.java
  12. 106 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/service/impl/BusinessFsInterestMaintainServiceImpl.java
  13. 2 3
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/controller/FsInterestSubsidySettleController.java
  14. 1 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/entity/FsInterestSubsidySettle.java
  15. 4 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/param/FsInterestSubsidySettlePageParam.java
  16. 1 1
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/service/FsInterestSubsidySettleService.java
  17. 19 2
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/service/impl/FsInterestSubsidySettleServiceImpl.java
  18. 5 1
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsstoragesubsidysettle/mapper/FsStorageSubsidySettleMapper.java
  19. 28 8
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsstoragesubsidysettle/mapper/mapping/FsStorageSubsidySettleMapper.xml
  20. 125 39
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsstoragesubsidysettle/service/impl/FsStorageSubsidySettleServiceImpl.java
  21. 4 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/rotationPlan/info/modular/rpWarnThreshold/mapper/RpWarnThresholdMapper.java
  22. 15 0
      unis-plugin/unis-plugin-biz/src/main/java/com/unis/rotationPlan/info/modular/rpWarnThreshold/mapper/mapping/RpWarnThresholdMapper.xml

+ 0 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsEnterpriseBalanceStatistic/mapper/FsEnterpriseBalanceStatisticMapper.java

@@ -24,7 +24,6 @@ import com.unis.financialSupervision.modular.fsEnterpriseBalanceStatistic.entity
24 24
 import com.unis.financialSupervision.modular.fsEnterpriseBalanceStatistic.param.CostBalanceParam;
25 25
 import com.unis.financialSupervision.modular.fsEnterpriseBalanceStatistic.param.FsEnterpriseBalanceStatisticPageParam;
26 26
 import org.apache.ibatis.annotations.Param;
27
-import org.apache.ibatis.annotations.Select;
28 27
 
29 28
 import java.math.BigDecimal;
30 29
 import java.util.List;

+ 131 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/controller/BusinessFsInterestMaintainController.java

@@ -0,0 +1,131 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.controller;
14
+
15
+import cn.dev33.satoken.annotation.SaCheckPermission;
16
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
17
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
18
+import com.github.xiaoymin.knife4j.annotations.ApiSupport;
19
+import com.unis.common.pojo.CommonValidList;
20
+import com.unis.financialSupervision.modular.fsinterestmaintain.entity.BusinessFsInterestMaintain;
21
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainAddParam;
22
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainEditParam;
23
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainIdParam;
24
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainPageParam;
25
+import com.unis.financialSupervision.modular.fsinterestmaintain.service.BusinessFsInterestMaintainService;
26
+import io.swagger.annotations.Api;
27
+import io.swagger.annotations.ApiOperation;
28
+import org.springframework.validation.annotation.Validated;
29
+import org.springframework.web.bind.annotation.GetMapping;
30
+import org.springframework.web.bind.annotation.PostMapping;
31
+import org.springframework.web.bind.annotation.RequestBody;
32
+import org.springframework.web.bind.annotation.RestController;
33
+import com.unis.common.annotation.CommonLog;
34
+import com.unis.common.pojo.CommonResult;
35
+
36
+import javax.annotation.Resource;
37
+import javax.validation.Valid;
38
+import javax.validation.constraints.NotEmpty;
39
+
40
+/**
41
+ * 财务监管-利息维护控制器
42
+ *
43
+ * @author ZeroLiYi
44
+ * @date  2024/07/25 15:20
45
+ */
46
+@Api(tags = "财务监管-利息维护控制器")
47
+@ApiSupport(author = "UNIS_TEAM", order = 1)
48
+@RestController
49
+@Validated
50
+public class BusinessFsInterestMaintainController {
51
+
52
+    @Resource
53
+    private BusinessFsInterestMaintainService businessFsInterestMaintainService;
54
+
55
+    /**
56
+     * 获取财务监管-利息维护分页
57
+     *
58
+     * @author ZeroLiYi
59
+     * @date  2024/07/25 15:20
60
+     */
61
+    @ApiOperationSupport(order = 1)
62
+    @ApiOperation("获取财务监管-利息维护分页")
63
+    @SaCheckPermission("/finishedGrainSupervision/fsinterestmaintain/page")
64
+    @GetMapping("/finishedGrainSupervision/fsinterestmaintain/page")
65
+    public CommonResult<Page<BusinessFsInterestMaintain>> page(BusinessFsInterestMaintainPageParam businessFsInterestMaintainPageParam) {
66
+        return CommonResult.data(businessFsInterestMaintainService.page(businessFsInterestMaintainPageParam));
67
+    }
68
+
69
+    /**
70
+     * 添加财务监管-利息维护
71
+     *
72
+     * @author ZeroLiYi
73
+     * @date  2024/07/25 15:20
74
+     */
75
+    @ApiOperationSupport(order = 2)
76
+    @ApiOperation("添加财务监管-利息维护")
77
+    @CommonLog("添加财务监管-利息维护")
78
+    @SaCheckPermission("/finishedGrainSupervision/fsinterestmaintain/add")
79
+    @PostMapping("/finishedGrainSupervision/fsinterestmaintain/add")
80
+    public CommonResult<String> add(@RequestBody @Valid BusinessFsInterestMaintainAddParam businessFsInterestMaintainAddParam) {
81
+        businessFsInterestMaintainService.add(businessFsInterestMaintainAddParam);
82
+        return CommonResult.ok();
83
+    }
84
+
85
+    /**
86
+     * 编辑财务监管-利息维护
87
+     *
88
+     * @author ZeroLiYi
89
+     * @date  2024/07/25 15:20
90
+     */
91
+    @ApiOperationSupport(order = 3)
92
+    @ApiOperation("编辑财务监管-利息维护")
93
+    @CommonLog("编辑财务监管-利息维护")
94
+    @SaCheckPermission("/finishedGrainSupervision/fsinterestmaintain/edit")
95
+    @PostMapping("/finishedGrainSupervision/fsinterestmaintain/edit")
96
+    public CommonResult<String> edit(@RequestBody @Valid BusinessFsInterestMaintainEditParam businessFsInterestMaintainEditParam) {
97
+        businessFsInterestMaintainService.edit(businessFsInterestMaintainEditParam);
98
+        return CommonResult.ok();
99
+    }
100
+
101
+    /**
102
+     * 删除财务监管-利息维护
103
+     *
104
+     * @author ZeroLiYi
105
+     * @date  2024/07/25 15:20
106
+     */
107
+    @ApiOperationSupport(order = 4)
108
+    @ApiOperation("删除财务监管-利息维护")
109
+    @CommonLog("删除财务监管-利息维护")
110
+    @SaCheckPermission("/finishedGrainSupervision/fsinterestmaintain/delete")
111
+    @PostMapping("/finishedGrainSupervision/fsinterestmaintain/delete")
112
+    public CommonResult<String> delete(@RequestBody @Valid @NotEmpty(message = "集合不能为空")
113
+                                               CommonValidList<BusinessFsInterestMaintainIdParam> businessFsInterestMaintainIdParamList) {
114
+        businessFsInterestMaintainService.delete(businessFsInterestMaintainIdParamList);
115
+        return CommonResult.ok();
116
+    }
117
+
118
+    /**
119
+     * 获取财务监管-利息维护详情
120
+     *
121
+     * @author ZeroLiYi
122
+     * @date  2024/07/25 15:20
123
+     */
124
+    @ApiOperationSupport(order = 5)
125
+    @ApiOperation("获取财务监管-利息维护详情")
126
+    @SaCheckPermission("/finishedGrainSupervision/fsinterestmaintain/detail")
127
+    @GetMapping("/finishedGrainSupervision/fsinterestmaintain/detail")
128
+    public CommonResult<BusinessFsInterestMaintain> detail(@Valid BusinessFsInterestMaintainIdParam businessFsInterestMaintainIdParam) {
129
+        return CommonResult.data(businessFsInterestMaintainService.detail(businessFsInterestMaintainIdParam));
130
+    }
131
+}

+ 81 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/entity/BusinessFsInterestMaintain.java

@@ -0,0 +1,81 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.entity;
14
+
15
+import com.baomidou.mybatisplus.annotation.*;
16
+import io.swagger.annotations.ApiModelProperty;
17
+import lombok.Getter;
18
+import lombok.Setter;
19
+import java.math.BigDecimal;
20
+import java.util.Date;
21
+
22
+/**
23
+ * 财务监管-利息维护实体
24
+ *
25
+ * @author ZeroLiYi
26
+ * @date  2024/07/25 15:20
27
+ **/
28
+@Getter
29
+@Setter
30
+@TableName("business_fs_interest_maintain")
31
+public class BusinessFsInterestMaintain {
32
+
33
+    /** 主键ID */
34
+    @TableId
35
+    @ApiModelProperty(value = "主键ID", position = 1)
36
+    private Integer id;
37
+
38
+    /** 创建人 */
39
+    @ApiModelProperty(value = "创建人", position = 2)
40
+    private String createname;
41
+
42
+    /** 创建日期 */
43
+    @ApiModelProperty(value = "创建日期", position = 3)
44
+    private Date createdate;
45
+
46
+    /** 更新人 */
47
+    @ApiModelProperty(value = "更新人", position = 4)
48
+    private String updatename;
49
+
50
+    /** 更新日期 */
51
+    @ApiModelProperty(value = "更新日期", position = 5)
52
+    private Date updatedate;
53
+
54
+    /** 粮库id;org_info的id; */
55
+    @ApiModelProperty(value = "粮库id;org_info的id;", position = 6)
56
+    private Integer orgId;
57
+
58
+    /** 利息单号 */
59
+    @ApiModelProperty(value = "利息单号", position = 7)
60
+    private String interestBillNo;
61
+
62
+    /** 年 */
63
+    @ApiModelProperty(value = "年", position = 8)
64
+    private Integer year;
65
+
66
+    /** 月 */
67
+    @ApiModelProperty(value = "月", position = 9)
68
+    private Integer month;
69
+
70
+    /** 农发行实收利息;单位:万元; */
71
+    @ApiModelProperty(value = "农发行实收利息;单位:万元;", position = 10)
72
+    private BigDecimal actualInterestReceived;
73
+
74
+    /** 对其他扣款;单位:万元; */
75
+    @ApiModelProperty(value = "对其他扣款;单位:万元;", position = 11)
76
+    private BigDecimal otherDeduction;
77
+
78
+    /** 备注 */
79
+    @ApiModelProperty(value = "备注", position = 12)
80
+    private String remark;
81
+}

+ 34 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/enums/BusinessFsInterestMaintainEnum.java

@@ -0,0 +1,34 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.enums;
14
+
15
+import lombok.Getter;
16
+
17
+/**
18
+ * 财务监管-利息维护枚举
19
+ *
20
+ * @author ZeroLiYi
21
+ * @date  2024/07/25 15:20
22
+ **/
23
+@Getter
24
+public enum BusinessFsInterestMaintainEnum {
25
+
26
+    /** 测试 */
27
+    TEST("TEST");
28
+
29
+    private final String value;
30
+
31
+    BusinessFsInterestMaintainEnum(String value) {
32
+        this.value = value;
33
+    }
34
+}

+ 30 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/mapper/BusinessFsInterestMaintainMapper.java

@@ -0,0 +1,30 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.mapper;
14
+
15
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
16
+import com.unis.financialSupervision.modular.fsinterestmaintain.entity.BusinessFsInterestMaintain;
17
+import com.unis.financialSupervision.modular.fsinterestsubsidysettle.entity.FsInterestSubsidySettle;
18
+import org.apache.ibatis.annotations.Param;
19
+
20
+import java.util.List;
21
+
22
+/**
23
+ * 财务监管-利息维护Mapper接口
24
+ *
25
+ * @author ZeroLiYi
26
+ * @date  2024/07/25 15:20
27
+ **/
28
+public interface BusinessFsInterestMaintainMapper extends BaseMapper<BusinessFsInterestMaintain> {
29
+    List<FsInterestSubsidySettle> finfByYear(@Param("planYear") Integer planYear);
30
+}

+ 18 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/mapper/mapping/BusinessFsInterestMaintainMapper.xml

@@ -0,0 +1,18 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.unis.financialSupervision.modular.fsinterestmaintain.mapper.BusinessFsInterestMaintainMapper">
4
+
5
+    <select id="finfByYear"
6
+            resultType="com.unis.financialSupervision.modular.fsinterestsubsidysettle.entity.FsInterestSubsidySettle">
7
+        SELECT
8
+            org_id,
9
+            year,
10
+            SUM(actual_interest_received) actual_interest_received,
11
+            SUM(other_deduction) other_deduction
12
+        FROM
13
+            business_fs_interest_maintain
14
+        where year=#{year}
15
+        GROUP BY org_id
16
+
17
+    </select>
18
+</mapper>

+ 78 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/param/BusinessFsInterestMaintainAddParam.java

@@ -0,0 +1,78 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.param;
14
+
15
+import io.swagger.annotations.ApiModelProperty;
16
+import lombok.Getter;
17
+import lombok.Setter;
18
+
19
+import javax.validation.constraints.NotBlank;
20
+import javax.validation.constraints.NotNull;
21
+import java.math.BigDecimal;
22
+import java.util.Date;
23
+
24
+/**
25
+ * 财务监管-利息维护添加参数
26
+ *
27
+ * @author ZeroLiYi
28
+ * @date  2024/07/25 15:20
29
+ **/
30
+@Getter
31
+@Setter
32
+public class BusinessFsInterestMaintainAddParam {
33
+
34
+    /** 创建人 */
35
+    @ApiModelProperty(value = "创建人", position = 2)
36
+    private String createname;
37
+
38
+    /** 创建日期 */
39
+    @ApiModelProperty(value = "创建日期", position = 3)
40
+    private Date createdate;
41
+
42
+    /** 更新人 */
43
+    @ApiModelProperty(value = "更新人", position = 4)
44
+    private String updatename;
45
+
46
+    /** 更新日期 */
47
+    @ApiModelProperty(value = "更新日期", position = 5)
48
+    private Date updatedate;
49
+
50
+    /** 粮库id;org_info的id; */
51
+    @ApiModelProperty(value = "粮库id;org_info的id;", position = 6)
52
+    private Integer orgId;
53
+
54
+    /** 利息单号 */
55
+    @ApiModelProperty(value = "利息单号", position = 7)
56
+    private String interestBillNo;
57
+
58
+    /** 年 */
59
+    @ApiModelProperty(value = "年", position = 8)
60
+    private Integer year;
61
+
62
+    /** 月 */
63
+    @ApiModelProperty(value = "月", position = 9)
64
+    private Integer month;
65
+
66
+    /** 农发行实收利息;单位:万元; */
67
+    @ApiModelProperty(value = "农发行实收利息;单位:万元;", position = 10)
68
+    private BigDecimal actualInterestReceived;
69
+
70
+    /** 对其他扣款;单位:万元; */
71
+    @ApiModelProperty(value = "对其他扣款;单位:万元;", position = 11)
72
+    private BigDecimal otherDeduction;
73
+
74
+    /** 备注 */
75
+    @ApiModelProperty(value = "备注", position = 12)
76
+    private String remark;
77
+
78
+}

+ 83 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/param/BusinessFsInterestMaintainEditParam.java

@@ -0,0 +1,83 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.param;
14
+
15
+import io.swagger.annotations.ApiModelProperty;
16
+import lombok.Getter;
17
+import lombok.Setter;
18
+
19
+import javax.validation.constraints.NotBlank;
20
+import javax.validation.constraints.NotNull;
21
+import java.math.BigDecimal;
22
+import java.util.Date;
23
+
24
+/**
25
+ * 财务监管-利息维护编辑参数
26
+ *
27
+ * @author ZeroLiYi
28
+ * @date  2024/07/25 15:20
29
+ **/
30
+@Getter
31
+@Setter
32
+public class BusinessFsInterestMaintainEditParam {
33
+
34
+    /** 主键ID */
35
+    @ApiModelProperty(value = "主键ID", required = true, position = 1)
36
+    @NotNull(message = "id不能为空")
37
+    private Integer id;
38
+
39
+    /** 创建人 */
40
+    @ApiModelProperty(value = "创建人", position = 2)
41
+    private String createname;
42
+
43
+    /** 创建日期 */
44
+    @ApiModelProperty(value = "创建日期", position = 3)
45
+    private Date createdate;
46
+
47
+    /** 更新人 */
48
+    @ApiModelProperty(value = "更新人", position = 4)
49
+    private String updatename;
50
+
51
+    /** 更新日期 */
52
+    @ApiModelProperty(value = "更新日期", position = 5)
53
+    private Date updatedate;
54
+
55
+    /** 粮库id;org_info的id; */
56
+    @ApiModelProperty(value = "粮库id;org_info的id;", position = 6)
57
+    private Integer orgId;
58
+
59
+    /** 利息单号 */
60
+    @ApiModelProperty(value = "利息单号", position = 7)
61
+    private String interestBillNo;
62
+
63
+    /** 年 */
64
+    @ApiModelProperty(value = "年", position = 8)
65
+    private Integer year;
66
+
67
+    /** 月 */
68
+    @ApiModelProperty(value = "月", position = 9)
69
+    private Integer month;
70
+
71
+    /** 农发行实收利息;单位:万元; */
72
+    @ApiModelProperty(value = "农发行实收利息;单位:万元;", position = 10)
73
+    private BigDecimal actualInterestReceived;
74
+
75
+    /** 对其他扣款;单位:万元; */
76
+    @ApiModelProperty(value = "对其他扣款;单位:万元;", position = 11)
77
+    private BigDecimal otherDeduction;
78
+
79
+    /** 备注 */
80
+    @ApiModelProperty(value = "备注", position = 12)
81
+    private String remark;
82
+
83
+}

+ 35 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/param/BusinessFsInterestMaintainIdParam.java

@@ -0,0 +1,35 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.param;
14
+
15
+import io.swagger.annotations.ApiModelProperty;
16
+import lombok.Getter;
17
+import lombok.Setter;
18
+
19
+import javax.validation.constraints.NotBlank;
20
+
21
+/**
22
+ * 财务监管-利息维护Id参数
23
+ *
24
+ * @author ZeroLiYi
25
+ * @date  2024/07/25 15:20
26
+ **/
27
+@Getter
28
+@Setter
29
+public class BusinessFsInterestMaintainIdParam {
30
+
31
+    /** 主键ID */
32
+    @ApiModelProperty(value = "主键ID", required = true)
33
+    @NotBlank(message = "id不能为空")
34
+    private Integer id;
35
+}

+ 51 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/param/BusinessFsInterestMaintainPageParam.java

@@ -0,0 +1,51 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.param;
14
+
15
+import io.swagger.annotations.ApiModelProperty;
16
+import lombok.Getter;
17
+import lombok.Setter;
18
+import java.math.BigDecimal;
19
+import java.util.Date;
20
+
21
+/**
22
+ * 财务监管-利息维护查询参数
23
+ *
24
+ * @author ZeroLiYi
25
+ * @date  2024/07/25 15:20
26
+ **/
27
+@Getter
28
+@Setter
29
+public class BusinessFsInterestMaintainPageParam {
30
+
31
+    /** 当前页 */
32
+    @ApiModelProperty(value = "当前页码")
33
+    private Integer current;
34
+
35
+    /** 每页条数 */
36
+    @ApiModelProperty(value = "每页条数")
37
+    private Integer size;
38
+
39
+    /** 排序字段 */
40
+    @ApiModelProperty(value = "排序字段,字段驼峰名称,如:userName")
41
+    private String sortField;
42
+
43
+    /** 排序方式 */
44
+    @ApiModelProperty(value = "排序方式,升序:ASCEND;降序:DESCEND")
45
+    private String sortOrder;
46
+
47
+    /** 关键词 */
48
+    @ApiModelProperty(value = "关键词")
49
+    private String searchKey;
50
+
51
+}

+ 84 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/service/BusinessFsInterestMaintainService.java

@@ -0,0 +1,84 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.service;
14
+
15
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
16
+import com.baomidou.mybatisplus.extension.service.IService;
17
+import com.unis.financialSupervision.modular.fsinterestmaintain.entity.BusinessFsInterestMaintain;
18
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainAddParam;
19
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainEditParam;
20
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainIdParam;
21
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainPageParam;
22
+import com.unis.financialSupervision.modular.fsinterestsubsidysettle.entity.FsInterestSubsidySettle;
23
+
24
+
25
+import java.util.List;
26
+
27
+/**
28
+ * 财务监管-利息维护Service接口
29
+ *
30
+ * @author ZeroLiYi
31
+ * @date  2024/07/25 15:20
32
+ **/
33
+public interface BusinessFsInterestMaintainService extends IService<BusinessFsInterestMaintain> {
34
+
35
+    /**
36
+     * 获取财务监管-利息维护分页
37
+     *
38
+     * @author ZeroLiYi
39
+     * @date  2024/07/25 15:20
40
+     */
41
+    Page<BusinessFsInterestMaintain> page(BusinessFsInterestMaintainPageParam businessFsInterestMaintainPageParam);
42
+
43
+    /**
44
+     * 添加财务监管-利息维护
45
+     *
46
+     * @author ZeroLiYi
47
+     * @date  2024/07/25 15:20
48
+     */
49
+    void add(BusinessFsInterestMaintainAddParam businessFsInterestMaintainAddParam);
50
+
51
+    /**
52
+     * 编辑财务监管-利息维护
53
+     *
54
+     * @author ZeroLiYi
55
+     * @date  2024/07/25 15:20
56
+     */
57
+    void edit(BusinessFsInterestMaintainEditParam businessFsInterestMaintainEditParam);
58
+
59
+    /**
60
+     * 删除财务监管-利息维护
61
+     *
62
+     * @author ZeroLiYi
63
+     * @date  2024/07/25 15:20
64
+     */
65
+    void delete(List<BusinessFsInterestMaintainIdParam> businessFsInterestMaintainIdParamList);
66
+
67
+    /**
68
+     * 获取财务监管-利息维护详情
69
+     *
70
+     * @author ZeroLiYi
71
+     * @date  2024/07/25 15:20
72
+     */
73
+    BusinessFsInterestMaintain detail(BusinessFsInterestMaintainIdParam businessFsInterestMaintainIdParam);
74
+
75
+    /**
76
+     * 获取财务监管-利息维护详情
77
+     *
78
+     * @author ZeroLiYi
79
+     * @date  2024/07/25 15:20
80
+     **/
81
+    BusinessFsInterestMaintain queryEntity(Integer id);
82
+
83
+    List<FsInterestSubsidySettle> finfByYear(Integer planYear);
84
+}

+ 106 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestmaintain/service/impl/BusinessFsInterestMaintainServiceImpl.java

@@ -0,0 +1,106 @@
1
+/*
2
+ * Copyright [2022] [https://www.xiaonuo.vip]
3
+ *
4
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
5
+ *
6
+ * 1.请不要删除和修改根目录下的LICENSE文件。
7
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
8
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
9
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
10
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
11
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
12
+ */
13
+package com.unis.financialSupervision.modular.fsinterestmaintain.service.impl;
14
+
15
+import cn.hutool.core.bean.BeanUtil;
16
+import cn.hutool.core.collection.CollStreamUtil;
17
+import cn.hutool.core.util.ObjectUtil;
18
+import cn.hutool.core.util.StrUtil;
19
+import com.baomidou.dynamic.datasource.annotation.DS;
20
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
21
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
22
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
23
+import com.unis.common.constant.DBConstant;
24
+import com.unis.financialSupervision.modular.fsinterestmaintain.entity.BusinessFsInterestMaintain;
25
+import com.unis.financialSupervision.modular.fsinterestmaintain.mapper.BusinessFsInterestMaintainMapper;
26
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainAddParam;
27
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainEditParam;
28
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainIdParam;
29
+import com.unis.financialSupervision.modular.fsinterestmaintain.param.BusinessFsInterestMaintainPageParam;
30
+import com.unis.financialSupervision.modular.fsinterestmaintain.service.BusinessFsInterestMaintainService;
31
+import com.unis.financialSupervision.modular.fsinterestsubsidysettle.entity.FsInterestSubsidySettle;
32
+import org.springframework.stereotype.Service;
33
+import org.springframework.transaction.annotation.Transactional;
34
+import com.unis.common.enums.CommonSortOrderEnum;
35
+import com.unis.common.exception.CommonException;
36
+import com.unis.common.page.CommonPageRequest;
37
+
38
+import javax.annotation.Resource;
39
+import java.util.List;
40
+
41
+/**
42
+ * 财务监管-利息维护Service接口实现类
43
+ *
44
+ * @author ZeroLiYi
45
+ * @date  2024/07/25 15:20
46
+ **/
47
+@Service
48
+@DS(DBConstant.DS_DEPOT)
49
+public class BusinessFsInterestMaintainServiceImpl extends ServiceImpl<BusinessFsInterestMaintainMapper, BusinessFsInterestMaintain> implements BusinessFsInterestMaintainService {
50
+    @Resource
51
+    private BusinessFsInterestMaintainMapper businessFsInterestMaintainMapper;
52
+
53
+    @Override
54
+    public Page<BusinessFsInterestMaintain> page(BusinessFsInterestMaintainPageParam businessFsInterestMaintainPageParam) {
55
+        QueryWrapper<BusinessFsInterestMaintain> queryWrapper = new QueryWrapper<>();
56
+        if(ObjectUtil.isAllNotEmpty(businessFsInterestMaintainPageParam.getSortField(), businessFsInterestMaintainPageParam.getSortOrder())) {
57
+            CommonSortOrderEnum.validate(businessFsInterestMaintainPageParam.getSortOrder());
58
+            queryWrapper.orderBy(true, businessFsInterestMaintainPageParam.getSortOrder().equals(CommonSortOrderEnum.ASC.getValue()),
59
+                    StrUtil.toUnderlineCase(businessFsInterestMaintainPageParam.getSortField()));
60
+        } else {
61
+            queryWrapper.lambda().orderByAsc(BusinessFsInterestMaintain::getId);
62
+        }
63
+        return this.page(CommonPageRequest.defaultPage(), queryWrapper);
64
+    }
65
+
66
+    @Transactional(rollbackFor = Exception.class)
67
+    @Override
68
+    public void add(BusinessFsInterestMaintainAddParam businessFsInterestMaintainAddParam) {
69
+        BusinessFsInterestMaintain businessFsInterestMaintain = BeanUtil.toBean(businessFsInterestMaintainAddParam, BusinessFsInterestMaintain.class);
70
+        this.save(businessFsInterestMaintain);
71
+    }
72
+
73
+    @Transactional(rollbackFor = Exception.class)
74
+    @Override
75
+    public void edit(BusinessFsInterestMaintainEditParam businessFsInterestMaintainEditParam) {
76
+        BusinessFsInterestMaintain businessFsInterestMaintain = this.queryEntity(businessFsInterestMaintainEditParam.getId());
77
+        BeanUtil.copyProperties(businessFsInterestMaintainEditParam, businessFsInterestMaintain);
78
+        this.updateById(businessFsInterestMaintain);
79
+    }
80
+
81
+    @Transactional(rollbackFor = Exception.class)
82
+    @Override
83
+    public void delete(List<BusinessFsInterestMaintainIdParam> businessFsInterestMaintainIdParamList) {
84
+        // 执行删除
85
+        this.removeByIds(CollStreamUtil.toList(businessFsInterestMaintainIdParamList, BusinessFsInterestMaintainIdParam::getId));
86
+    }
87
+
88
+    @Override
89
+    public BusinessFsInterestMaintain detail(BusinessFsInterestMaintainIdParam businessFsInterestMaintainIdParam) {
90
+        return this.queryEntity(businessFsInterestMaintainIdParam.getId());
91
+    }
92
+
93
+    @Override
94
+    public BusinessFsInterestMaintain queryEntity(Integer id) {
95
+        BusinessFsInterestMaintain businessFsInterestMaintain = this.getById(id);
96
+        if(ObjectUtil.isEmpty(businessFsInterestMaintain)) {
97
+            throw new CommonException("财务监管-利息维护不存在,id值为:{}", id);
98
+        }
99
+        return businessFsInterestMaintain;
100
+    }
101
+
102
+    @Override
103
+    public List<FsInterestSubsidySettle> finfByYear(Integer planYear) {
104
+        return businessFsInterestMaintainMapper.finfByYear(planYear);
105
+    }
106
+}

+ 2 - 3
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/controller/FsInterestSubsidySettleController.java

@@ -36,6 +36,7 @@ import com.unis.financialSupervision.modular.fsinterestsubsidysettle.service.FsI
36 36
 import javax.annotation.Resource;
37 37
 import javax.validation.Valid;
38 38
 import javax.validation.constraints.NotEmpty;
39
+import java.util.List;
39 40
 
40 41
 /**
41 42
  * 财务监管-省级储备粮清算管理-利息补贴清算表控制器
@@ -62,7 +63,7 @@ public class FsInterestSubsidySettleController {
62 63
     @ApiOperation("获取财务监管-省级储备粮清算管理-利息补贴清算表分页")
63 64
     @SaCheckPermission("/financialSupervision/fsinterestsubsidysettle/page")
64 65
     @GetMapping("/financialSupervision/fsinterestsubsidysettle/page")
65
-    public CommonResult<Page<FsInterestSubsidySettle>> page(FsInterestSubsidySettlePageParam fsInterestSubsidySettlePageParam) {
66
+    public CommonResult<List<FsInterestSubsidySettle>> page(FsInterestSubsidySettlePageParam fsInterestSubsidySettlePageParam) {
66 67
         return CommonResult.data(fsInterestSubsidySettleService.page(fsInterestSubsidySettlePageParam));
67 68
     }
68 69
 
@@ -75,7 +76,6 @@ public class FsInterestSubsidySettleController {
75 76
     @ApiOperationSupport(order = 2)
76 77
     @ApiOperation("添加财务监管-省级储备粮清算管理-利息补贴清算表")
77 78
     @CommonLog("添加财务监管-省级储备粮清算管理-利息补贴清算表")
78
-    @SaCheckPermission("/financialSupervision/fsinterestsubsidysettle/add")
79 79
     @PostMapping("/financialSupervision/fsinterestsubsidysettle/add")
80 80
     public CommonResult<String> add(@RequestBody @Valid FsInterestSubsidySettleAddParam fsInterestSubsidySettleAddParam) {
81 81
         fsInterestSubsidySettleService.add(fsInterestSubsidySettleAddParam);
@@ -91,7 +91,6 @@ public class FsInterestSubsidySettleController {
91 91
     @ApiOperationSupport(order = 3)
92 92
     @ApiOperation("编辑财务监管-省级储备粮清算管理-利息补贴清算表")
93 93
     @CommonLog("编辑财务监管-省级储备粮清算管理-利息补贴清算表")
94
-    @SaCheckPermission("/financialSupervision/fsinterestsubsidysettle/edit")
95 94
     @PostMapping("/financialSupervision/fsinterestsubsidysettle/edit")
96 95
     public CommonResult<String> edit(@RequestBody @Valid FsInterestSubsidySettleEditParam fsInterestSubsidySettleEditParam) {
97 96
         fsInterestSubsidySettleService.edit(fsInterestSubsidySettleEditParam);

+ 1 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/entity/FsInterestSubsidySettle.java

@@ -78,4 +78,5 @@ public class FsInterestSubsidySettle {
78 78
     /** 备注 */
79 79
     @ApiModelProperty(value = "备注", position = 11)
80 80
     private String remark;
81
+
81 82
 }

+ 4 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/param/FsInterestSubsidySettlePageParam.java

@@ -48,4 +48,8 @@ public class FsInterestSubsidySettlePageParam {
48 48
     @ApiModelProperty(value = "关键词")
49 49
     private String searchKey;
50 50
 
51
+    /** 年 */
52
+    @ApiModelProperty(value = "年")
53
+    private Integer planYear;
54
+
51 55
 }

+ 1 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/service/FsInterestSubsidySettleService.java

@@ -36,7 +36,7 @@ public interface FsInterestSubsidySettleService extends IService<FsInterestSubsi
36 36
      * @author ZeroLiYi
37 37
      * @date  2024/06/28 17:51
38 38
      */
39
-    Page<FsInterestSubsidySettle> page(FsInterestSubsidySettlePageParam fsInterestSubsidySettlePageParam);
39
+    List<FsInterestSubsidySettle> page(FsInterestSubsidySettlePageParam fsInterestSubsidySettlePageParam);
40 40
 
41 41
     /**
42 42
      * 添加财务监管-省级储备粮清算管理-利息补贴清算表

+ 19 - 2
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/service/impl/FsInterestSubsidySettleServiceImpl.java

@@ -19,6 +19,9 @@ import cn.hutool.core.util.StrUtil;
19 19
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
20 20
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
21 21
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
22
+import com.unis.financialSupervision.modular.fsinterestmaintain.entity.BusinessFsInterestMaintain;
23
+import com.unis.financialSupervision.modular.fsinterestmaintain.service.BusinessFsInterestMaintainService;
24
+import com.unis.financialSupervision.modular.fsstoragesubsidysettle.entity.FsStorageSubsidySettle;
22 25
 import org.springframework.stereotype.Service;
23 26
 import org.springframework.transaction.annotation.Transactional;
24 27
 import com.unis.common.enums.CommonSortOrderEnum;
@@ -32,6 +35,8 @@ import com.unis.financialSupervision.modular.fsinterestsubsidysettle.param.FsInt
32 35
 import com.unis.financialSupervision.modular.fsinterestsubsidysettle.param.FsInterestSubsidySettlePageParam;
33 36
 import com.unis.financialSupervision.modular.fsinterestsubsidysettle.service.FsInterestSubsidySettleService;
34 37
 
38
+import javax.annotation.Resource;
39
+import java.util.ArrayList;
35 40
 import java.util.List;
36 41
 
37 42
 /**
@@ -42,10 +47,16 @@ import java.util.List;
42 47
  **/
43 48
 @Service
44 49
 public class FsInterestSubsidySettleServiceImpl extends ServiceImpl<FsInterestSubsidySettleMapper, FsInterestSubsidySettle> implements FsInterestSubsidySettleService {
50
+    @Resource
51
+    private BusinessFsInterestMaintainService businessFsInterestMaintainService;
45 52
 
46 53
     @Override
47
-    public Page<FsInterestSubsidySettle> page(FsInterestSubsidySettlePageParam fsInterestSubsidySettlePageParam) {
54
+    public List<FsInterestSubsidySettle> page(FsInterestSubsidySettlePageParam fsInterestSubsidySettlePageParam) {
55
+        List<FsInterestSubsidySettle> fsInterestSubsidySettleList =new ArrayList<>();
48 56
         QueryWrapper<FsInterestSubsidySettle> queryWrapper = new QueryWrapper<>();
57
+        if(ObjectUtil.isNotEmpty(fsInterestSubsidySettlePageParam.getPlanYear())) {
58
+            queryWrapper.lambda().eq(FsInterestSubsidySettle::getYear, fsInterestSubsidySettlePageParam.getPlanYear());
59
+        }
49 60
         if(ObjectUtil.isAllNotEmpty(fsInterestSubsidySettlePageParam.getSortField(), fsInterestSubsidySettlePageParam.getSortOrder())) {
50 61
             CommonSortOrderEnum.validate(fsInterestSubsidySettlePageParam.getSortOrder());
51 62
             queryWrapper.orderBy(true, fsInterestSubsidySettlePageParam.getSortOrder().equals(CommonSortOrderEnum.ASC.getValue()),
@@ -53,7 +64,13 @@ public class FsInterestSubsidySettleServiceImpl extends ServiceImpl<FsInterestSu
53 64
         } else {
54 65
             queryWrapper.lambda().orderByAsc(FsInterestSubsidySettle::getId);
55 66
         }
56
-        return this.page(CommonPageRequest.defaultPage(), queryWrapper);
67
+        fsInterestSubsidySettleList = this.list(queryWrapper);
68
+        if(fsInterestSubsidySettleList.isEmpty()){
69
+            fsInterestSubsidySettleList=   businessFsInterestMaintainService.finfByYear(fsInterestSubsidySettlePageParam.getPlanYear());
70
+        }
71
+
72
+
73
+        return fsInterestSubsidySettleList;
57 74
     }
58 75
 
59 76
     @Transactional(rollbackFor = Exception.class)

+ 5 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsstoragesubsidysettle/mapper/FsStorageSubsidySettleMapper.java

@@ -30,7 +30,7 @@ public interface FsStorageSubsidySettleMapper extends BaseMapper<FsStorageSubsid
30 30
      * 查询库区
31 31
      * @return
32 32
      */
33
-    List<Map<String, Object>> getOrgAndKcSum(@Param("year")int Year);
33
+    List<Map<String, Object>> getOrgAndKcSum(@Param("year")int Year,@Param("orgId") String orgId);
34 34
 
35 35
     /**
36 36
      * 架空期开始时间和截止时间
@@ -39,4 +39,8 @@ public interface FsStorageSubsidySettleMapper extends BaseMapper<FsStorageSubsid
39 39
      * @return
40 40
      */
41 41
     Map<String, Object> getStaetAndEnd(@Param("orgId")String orgId,@Param("year") int Year);
42
+
43
+    List<Map<String, Object>> getOrgAndYlKcSum(@Param("year")int year,@Param("orgId") String orgId);
44
+
45
+    List<Map<String, Object>> selectOrgInfo();
42 46
 }

+ 28 - 8
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsstoragesubsidysettle/mapper/mapping/FsStorageSubsidySettleMapper.xml

@@ -6,11 +6,11 @@
6 6
         SELECT DISTINCT
7 7
             UnitID,
8 8
             nf,
9
-            count(yf),
9
+            count(yf) ys,
10 10
             sum(ROUND(qmkc/10000, 2)) AS qmkc
11 11
         FROM
12 12
             depot_qh.data_kcgl_kcyjd_default
13
-        where nf=#{Year}
13
+        where pz!=7144 and nf=#{Year} and UnitID=#{orgId}
14 14
         GROUP BY
15 15
             nf,
16 16
             UnitID
@@ -18,13 +18,33 @@
18 18
     </select>
19 19
     <select id="getStaetAndEnd" resultType="java.util.Map">
20 20
         SELECT
21
-            rotation_start 	rotationStart,
22
-            rotation_end rotationEnd,
23
-            SUM(planned_quantity -remaining_quantity)quantity
21
+            a.rotation_start 	rotationStart,
22
+            a.rotation_end rotationEnd,
23
+            SUM(ROUND((a.planned_quantity - a.remaining_quantity) / 10000.0, 2)) AS quantity
24
+        FROM
25
+            province_all.biz_pss_storage_empty_period a
26
+        left join depot_qh.business_rp_report b on a.rp_report_id =b.id and plan_type=1
27
+        where a.org_id=#{orgId} and a.plan_year =#{Year} and a.rotation_status=1
28
+        GROUP BY a.org_id
29
+
30
+    </select>
31
+    <select id="getOrgAndYlKcSum" resultType="java.util.Map">
32
+        SELECT DISTINCT
33
+            UnitID,
34
+            nf,
35
+            count(yf),
36
+            sum(ROUND(qmkc/10000, 2)) AS qmkc
24 37
         FROM
25
-            province_all.biz_pss_storage_empty_period
26
-        where org_id=#{orgId} and plan_year =#{Year}
27
-        GROUP BY org_id
38
+            depot_qh.data_kcgl_kcyjd_default
39
+        where pz=7144 and nf=#{Year}
40
+        GROUP BY
41
+            nf,
42
+            UnitID
43
+
44
+
45
+    </select>
46
+    <select id="selectOrgInfo" resultType="java.util.Map">
47
+        select DISTINCT org_id AS orgId from depot_qh.org_info ORDER By org_id DESC
28 48
 
29 49
     </select>
30 50
 </mapper>

+ 125 - 39
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsstoragesubsidysettle/service/impl/FsStorageSubsidySettleServiceImpl.java

@@ -20,6 +20,7 @@ import cn.hutool.core.util.StrUtil;
20 20
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
21 21
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
22 22
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
23
+import com.unis.rotationPlan.info.modular.rpWarnThreshold.mapper.RpWarnThresholdMapper;
23 24
 import io.swagger.annotations.ApiModelProperty;
24 25
 import org.springframework.stereotype.Service;
25 26
 import org.springframework.transaction.annotation.Transactional;
@@ -53,6 +54,9 @@ public class FsStorageSubsidySettleServiceImpl extends ServiceImpl<FsStorageSubs
53 54
     @Resource
54 55
     private FsStorageSubsidySettleMapper fsStorageSubsidySettleMapper;
55 56
 
57
+    @Resource
58
+    private RpWarnThresholdMapper rpWarnThresholdMapper;
59
+
56 60
     @Override
57 61
     public Page<FsStorageSubsidySettle> page(FsStorageSubsidySettlePageParam fsStorageSubsidySettlePageParam) {
58 62
         QueryWrapper<FsStorageSubsidySettle> queryWrapper = new QueryWrapper<>();
@@ -111,77 +115,159 @@ public class FsStorageSubsidySettleServiceImpl extends ServiceImpl<FsStorageSubs
111 115
     @Override
112 116
     public void addFsStorageSubsidySettle() {
113 117
         int year = LocalDate.now().getYear();
118
+
119
+        LocalDate today = LocalDate.now();
120
+
121
+        // 获取当前月份
122
+        int ys = today.getMonthValue();
114 123
         //查询data_kcgl_kcyjd_default单位
115
-        List<Map<String,Object>> list= fsStorageSubsidySettleMapper.getOrgAndKcSum(year);
116
-        for (int j = 0; j < list.size(); j++) {
117 124
 
125
+        List<Map<String, Object>> listOrg = fsStorageSubsidySettleMapper.selectOrgInfo();
126
+
127
+        for (int i = 0; i < listOrg.size(); i++) {
128
+            Map<String, Object> mapOrg = listOrg.get(i);
129
+            String orgId = mapOrg.getOrDefault("orgId", "").toString();
118 130
 
119 131
             /**
120 132
              * 原粮
121 133
              */
122
-            Map<String, Object> map = list.get(j);
123
-            String orgId = map.getOrDefault("UnitID", "").toString();
124
-            // 获取 qmkc 的值,如果没有则默认为 0.0
125
-            BigDecimal qmkc = NumberUtil.toBigDecimal(map.getOrDefault("qmkc", "0.0").toString());
134
+            FsStorageSubsidySettle fsStorageSubsidySettle = new FsStorageSubsidySettle();
126 135
 
127
-            // 获取 ys 的值,如果没有则默认为 1(避免除以零)
128
-            int ys = Integer.parseInt(map.getOrDefault("ys", "1").toString());
136
+            BigDecimal averageRawGrainInventoryEmpty = new BigDecimal(0.0);/** 储备粮-原粮平均库存数量-平均正常轮空期内轮空数量 */
137
+            BigDecimal averageRawGrainInventory = new BigDecimal(0.00);    /** 储备粮-原粮平均库存数量-小计 */
138
+            BigDecimal averageRawGrainInventoryPhysical = new BigDecimal(0.0);/** 储备粮-原粮平均库存数量-平均月末实物库存 */
139
+            List<Map<String, Object>> listyy = fsStorageSubsidySettleMapper.getOrgAndKcSum(year,orgId);
140
+            for (int j = 0; j < listyy.size(); j++) {
141
+                Map<String, Object> map = listyy.get(j);
129 142
 
130
-            // 计算平均库存,如果 ys 不为零则进行除法运算
131
-            BigDecimal averageRawGrainInventoryPhysical = new BigDecimal(0.0);
132
-            if (ys != 0) {
133
-                averageRawGrainInventoryPhysical = qmkc.divide(BigDecimal.valueOf(ys), 2, BigDecimal.ROUND_HALF_UP);
134
-            }
135
-            FsStorageSubsidySettle fsStorageSubsidySettle = new FsStorageSubsidySettle();
136
-            fsStorageSubsidySettle.setAverageInventory(averageRawGrainInventoryPhysical); //平均月末实物库存
137
-
138
-            //根据单位 和 日期 查询架空期
139
-            Map<String, Object> staetAndEnd = fsStorageSubsidySettleMapper.getStaetAndEnd(orgId, year);
140
-            LocalDateTime startTime = (LocalDateTime)map.getOrDefault("rotationStart", LocalDateTime.now()); //开始时间
141
-            LocalDateTime endTime = (LocalDateTime)map.getOrDefault("rotationEnd", LocalDateTime.now()); //截至时间
142
-            // 获取 quantity 的值,如果没有则默认为 0.0
143
-            BigDecimal quantity = NumberUtil.toBigDecimal(map.getOrDefault("quantity", "0.0").toString());
144
-            BigDecimal averageRawGrainInventoryEmpty =new BigDecimal(0.0);
145
-            BigDecimal averageRawGrainInventory =new BigDecimal(0.00);
146
-            if (ys != 0) {
147
-                averageRawGrainInventoryEmpty = qmkc.divide(BigDecimal.valueOf(ys), 2, BigDecimal.ROUND_HALF_UP);
143
+                // 获取 qmkc 的值,如果没有则默认为 0.0
144
+                BigDecimal qmkc = NumberUtil.toBigDecimal(map.getOrDefault("qmkc", "0.0").toString());
145
+
146
+                // 获取 ys 的值,如果没有则默认为 1(避免除以零)
147
+                //int ys = Integer.parseInt(map.getOrDefault("ys", "1").toString());
148
+
149
+                // 计算平均库存,如果 ys 不为零则进行除法运算
150
+                if (ys != 0) {
151
+                    averageRawGrainInventoryPhysical = qmkc.divide(BigDecimal.valueOf(ys), 2, BigDecimal.ROUND_HALF_UP);
152
+                }
153
+
154
+                fsStorageSubsidySettle.setAverageInventory(averageRawGrainInventoryPhysical); //平均月末实物库存
155
+
156
+                //根据单位 和 日期 查询架空期
157
+                Map<String, Object> staetAndEnd = fsStorageSubsidySettleMapper.getStaetAndEnd(orgId, year);
158
+                LocalDateTime startTime = (LocalDateTime) map.getOrDefault("rotationStart", LocalDateTime.now()); //开始时间
159
+                LocalDateTime endTime = (LocalDateTime) map.getOrDefault("rotationEnd", LocalDateTime.now()); //截至时间
160
+                // 获取 quantity 的值,如果没有则默认为 0.0
161
+                BigDecimal quantity = NumberUtil.toBigDecimal(map.getOrDefault("quantity", "0.0").toString());
162
+
163
+                if (ys != 0) {
164
+                    averageRawGrainInventoryEmpty = quantity.divide(BigDecimal.valueOf(ys), 2, BigDecimal.ROUND_HALF_UP);
165
+                }
166
+                fsStorageSubsidySettle.setAverageRawGrainInventoryEmpty(averageRawGrainInventoryEmpty);//平均正常轮空期内轮空数量
167
+                averageRawGrainInventory = averageRawGrainInventoryPhysical.add(averageRawGrainInventoryEmpty);
168
+                averageRawGrainInventory = averageRawGrainInventory.multiply(new BigDecimal("0.2"));
169
+                fsStorageSubsidySettle.setAverageRawGrainInventory(averageRawGrainInventory);//(1)
148 170
             }
149
-            fsStorageSubsidySettle.setAverageRawGrainInventoryEmpty(averageRawGrainInventoryEmpty);//平均正常轮空期内轮空数量
150
-            averageRawGrainInventory=averageRawGrainInventoryPhysical.add(averageRawGrainInventoryEmpty);
151
-            averageRawGrainInventory=averageRawGrainInventory.multiply(new BigDecimal("0.2"));
152
-            fsStorageSubsidySettle.setAverageRawGrainInventory(averageRawGrainInventory);//(1)
171
+
172
+
153 173
 
154 174
             /**
155 175
              * 成品粮
156 176
              *
157 177
              */
158
-            BigDecimal averageProcessedGrainInventory= new BigDecimal(0.0);//(2)  /** 储备粮-成品粮平均库存数量-小计 */
159
-            BigDecimal averageProcessedGrainInventoryPhysical= new BigDecimal(0.0); /** 储备粮-成品粮平均库存数量-平均月末实物库存 */
160
-            BigDecimal averageProcessedGrainInventoryEmpty= new BigDecimal(0.0); /** 储备粮-成品粮平均库存数量-平均正常轮空期内轮空数量 */
178
+            BigDecimal averageProcessedGrainInventoryEmpty = new BigDecimal(0.0); /** 储备粮-成品粮平均库存数量-平均正常轮空期内轮空数量 */
179
+            //根据年度和orgId 查询 -成品粮购销计划
180
+            List<Map<String, Object>> list1 = rpWarnThresholdMapper.getGopsPlans(year, orgId);
181
+            BigDecimal sjlcsl = new BigDecimal(0.0);
182
+            BigDecimal sjsysl = new BigDecimal(0.0);
183
+            for (int j1 = 0; j1 < list1.size(); j1++) {
184
+                Map<String, Object> map1 = list1.get(j1);
185
+                LocalDateTime firstTime = (LocalDateTime) map1.getOrDefault("startTime", LocalDateTime.now()); //第一车出库时间
186
+                LocalDateTime firstDayOfNextMonth = firstTime.plusMonths(1).withDayOfMonth(1);
187
+                LocalDateTime futureDate = firstDayOfNextMonth.plusMonths(4);
188
+                LocalDateTime endTime = (LocalDateTime) map1.get("endTime");
189
+                if (endTime != null && endTime.isBefore(futureDate)) {
190
+                    BigDecimal wcsl = (BigDecimal) map1.getOrDefault("wcsl", BigDecimal.ZERO);
191
+                    sjlcsl = sjlcsl.add(wcsl);
192
+                    BigDecimal sysl = (BigDecimal) map1.getOrDefault("sysl", BigDecimal.ZERO);
193
+                    sjsysl = sjsysl.add(sysl);
194
+                }
195
+
196
+            }
197
+            if (ys != 0) {
198
+                averageProcessedGrainInventoryEmpty = sjlcsl.divide(BigDecimal.valueOf(ys), 2, BigDecimal.ROUND_HALF_UP);
199
+            }
200
+            fsStorageSubsidySettle.setAverageProcessedGrainInventoryEmpty(averageProcessedGrainInventoryEmpty);/** 储备粮-成品粮平均库存数量-平均正常轮空期内轮空数量 */
201
+
202
+            BigDecimal averageProcessedGrainInventoryPhysical = new BigDecimal(0.0); /** 储备粮-成品粮平均库存数量-平均月末实物库存 */
203
+            if (ys != 0) {
204
+                averageProcessedGrainInventoryPhysical = sjsysl.divide(BigDecimal.valueOf(ys), 2, BigDecimal.ROUND_HALF_UP);
205
+            }
206
+            fsStorageSubsidySettle.setAverageProcessedGrainInventoryPhysical(averageProcessedGrainInventoryPhysical);/** 储备粮-成品粮平均库存数量-平均月末实物库存 */
161 207
 
208
+            BigDecimal averageProcessedGrainInventory = new BigDecimal(0.0);//(2)  /** 储备粮-成品粮平均库存数量-小计 */
162 209
 
163 210
 
164 211
             BigDecimal averageInventory = new BigDecimal(0.0);/** 储备粮平均库存数量 */
165
-            averageInventory=averageRawGrainInventory.add(averageProcessedGrainInventory);
212
+            averageInventory = averageRawGrainInventory.add(averageProcessedGrainInventoryEmpty);
166 213
             fsStorageSubsidySettle.setAverageOilInventory(averageInventory);//(1)+(2)
214
+
167 215
             /**
168 216
              * 保管费用补贴
169 217
              */
170
-           BigDecimal storageSubsidyStandardRawGrain = new BigDecimal(0.0);//(1) /** 储备粮-原粮保管费用补贴(标准:0.12元/公斤)应拨数 */
171
-            storageSubsidyStandardRawGrain=averageRawGrainInventory.multiply(new BigDecimal("0.12"));//单位:万元
218
+            BigDecimal storageSubsidyStandardRawGrain = new BigDecimal(0.0);//(1) /** 储备粮-原粮保管费用补贴(标准:0.12元/公斤)应拨数 */
219
+            storageSubsidyStandardRawGrain = averageRawGrainInventory.multiply(new BigDecimal("0.12"));//单位:万元
172 220
             fsStorageSubsidySettle.setStorageSubsidyRawGrain(storageSubsidyStandardRawGrain);
173 221
 
174
-           BigDecimal storageSubsidyProcessedGrain = new BigDecimal(0.0);/** 储备粮-成品粮保管费用补贴(标准:0.20元/公斤)应拨数 */
222
+            BigDecimal storageSubsidyProcessedGrain = new BigDecimal(0.0);/** 储备粮-成品粮保管费用补贴(标准:0.20元/公斤)应拨数 */
175 223
             storageSubsidyProcessedGrain = averageProcessedGrainInventory.multiply(new BigDecimal("0.20"));//单位:万元
176 224
             fsStorageSubsidySettle.setStorageSubsidyProcessedGrain(storageSubsidyProcessedGrain);
177 225
 
178
-           BigDecimal storageSubsidyRawGrain = new BigDecimal(0.0);//(3)+(4) /** 储备粮-原粮保管费用补贴应拨数 */
179
-            storageSubsidyRawGrain=storageSubsidyStandardRawGrain.add(storageSubsidyProcessedGrain);
226
+            BigDecimal storageSubsidyRawGrain = new BigDecimal(0.0);//(3)+(4) /** 储备粮-原粮保管费用补贴应拨数 */
227
+
228
+            storageSubsidyRawGrain = storageSubsidyStandardRawGrain.add(storageSubsidyProcessedGrain);
180 229
             fsStorageSubsidySettle.setStorageSubsidyRawGrain(storageSubsidyRawGrain);
230
+            /**
231
+             * 储备油
232
+             */
233
+            BigDecimal averageOilInventoryPhysical = new BigDecimal(0.0);/** 储备油-储油平均库存数量-平均月末实物库存 */
234
+            BigDecimal averageOilInventoryEmpty = new BigDecimal(0.0);/** 储备油-储油平均库存数量-平均正常轮空期内轮空数量 */
235
+            BigDecimal averageOilInventory = new BigDecimal(0.0);/** 储备油-储油平均库存数量-小计 */
236
+            List<Map<String, Object>> list2 = fsStorageSubsidySettleMapper.getOrgAndYlKcSum(year, orgId);
237
+            for (int j2 = 0; j2< list2.size(); j2++) {
238
+                Map<String, Object> mapy = listyy.get(j2);
239
+                // 获取 qmkc 的值,如果没有则默认为 0.0
240
+                BigDecimal qmkc = NumberUtil.toBigDecimal(mapy.getOrDefault("qmkc", "0.0").toString());
181 241
 
242
+                // 获取 ys 的值,如果没有则默认为 1(避免除以零)
243
+                //int ys = Integer.parseInt(map.getOrDefault("ys", "1").toString());
182 244
 
245
+                // 计算平均库存,如果 ys 不为零则进行除法运算
246
+                if (ys != 0) {
247
+                    averageOilInventoryPhysical = qmkc.divide(BigDecimal.valueOf(ys), 2, BigDecimal.ROUND_HALF_UP);
248
+                }
183 249
 
250
+                fsStorageSubsidySettle.setAverageOilInventoryPhysical(averageOilInventoryPhysical); //平均月末实物库存
184 251
 
252
+                //根据单位 和 日期 查询架空期
253
+                Map<String, Object> staetAndEnd = fsStorageSubsidySettleMapper.getStaetAndEnd(orgId, year);
254
+                LocalDateTime startTime = (LocalDateTime) mapy.getOrDefault("rotationStart", LocalDateTime.now()); //开始时间
255
+                LocalDateTime endTime = (LocalDateTime) mapy.getOrDefault("rotationEnd", LocalDateTime.now()); //截至时间
256
+                // 获取 quantity 的值,如果没有则默认为 0.0
257
+                BigDecimal quantity = NumberUtil.toBigDecimal(mapy.getOrDefault("quantity", "0.0").toString());
258
+
259
+                if (ys != 0) {
260
+                    averageOilInventoryEmpty = quantity.divide(BigDecimal.valueOf(ys), 2, BigDecimal.ROUND_HALF_UP);
261
+                }
262
+                fsStorageSubsidySettle.setAverageOilInventoryEmpty(averageOilInventoryEmpty);//平均正常轮空期内轮空数量
263
+                averageOilInventory = averageOilInventoryPhysical.add(averageOilInventoryEmpty);
264
+
265
+                BigDecimal storageSubsidyOil = new BigDecimal(0.0);/** 储备油-油料保管费用补贴(标准:0.40元/公斤)应拨数 */
266
+                storageSubsidyOil = averageOilInventory.multiply(new BigDecimal("0.2"));
267
+                fsStorageSubsidySettle.setStorageSubsidyOil(storageSubsidyOil);//(5)
268
+
269
+            }
270
+            this.save(fsStorageSubsidySettle);
185 271
         }
186 272
 
187 273
     }

+ 4 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/rotationPlan/info/modular/rpWarnThreshold/mapper/RpWarnThresholdMapper.java

@@ -101,4 +101,8 @@ public interface RpWarnThresholdMapper extends BaseMapper<RpWarnThreshold> {
101 101
     Map<String, BigDecimal> selectLHJH(@Param("unitID")String unitID,@Param("rpReportId") String rpReportId);
102 102
 
103 103
     Map<String, Object> getMaxDate(@Param("rpReportId")String rpReportId,@Param("sjhwh") String sjhwh);
104
+
105
+    List<Map<String, Object>> getGopsPlans(@Param("year")int year,@Param("orgId") String orgId);
106
+
107
+
104 108
 }

+ 15 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/rotationPlan/info/modular/rpWarnThreshold/mapper/mapping/RpWarnThresholdMapper.xml

@@ -196,5 +196,20 @@
196 196
         GROUP BY b.UnitID
197 197
 
198 198
     </select>
199
+    <select id="getGopsPlans" resultType="java.util.Map">
200
+        SELECT DISTINCT
201
+            id,
202
+            org_id as "orgId",
203
+            plan_start_time AS "startTime",
204
+            plan_end_time AS "endTime",
205
+            plan_quantity jhsl,
206
+            completion_quantity wcsl,
207
+            remaining_amount sysl
208
+        FROM
209
+            depot_qh.business_pg_gops_plan
210
+
211
+        WHERE
212
+            org_id=#{orgId} and YEAR(plan_year)=#{year} and plan_type=1
213
+    </select>
199 214
 
200 215
 </mapper>