浏览代码

结算统计调整

lamphua 7 个月前
父节点
当前提交
547e1476c2

+ 1
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSettleController.java 查看文件

@@ -82,6 +82,7 @@ public class CmcSettleController extends BaseController
82 82
      */
83 83
     @GetMapping("/statistic")
84 84
     public AjaxResult getSettleStatistic(CmcSettle cmcSettle) throws ParseException {
85
+        cmcSettle.setContent("实际结算总金额");
85 86
         JSONObject jsonObject = new JSONObject();
86 87
         JSONArray yearArray = new JSONArray();
87 88
         JSONObject yearObject = new JSONObject();

+ 12
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettle.java 查看文件

@@ -36,6 +36,9 @@ public class CmcSettle extends BaseEntity
36 36
     @Excel(name = "其他项目名称")
37 37
     private String xmName;
38 38
 
39
+    /** 结算内容 */
40
+    private String content;
41
+
39 42
     /** 实际结算总金额 */
40 43
     @Excel(name = "实际结算总金额")
41 44
     private BigDecimal amount;
@@ -556,6 +559,15 @@ public class CmcSettle extends BaseEntity
556 559
     {
557 560
         return amount;
558 561
     }
562
+    public void setContent(String content)
563
+    {
564
+        this.content = content;
565
+    }
566
+
567
+    public String getContent()
568
+    {
569
+        return content;
570
+    }
559 571
 
560 572
 
561 573
     @Override

+ 2
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSettleMapper.xml 查看文件

@@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
37 37
         <result property="modifyDocument"    column="modify_document"    />
38 38
         <result property="finalDocument"    column="final_document"    />
39 39
         <result property="amount"    column="amount"    />
40
+        <result property="content"    column="content"    />
40 41
         <association property="reportUser"    javaType="SysUser"         resultMap="ReportUserResult" />
41 42
         <association property="zhUser"    javaType="SysUser"         resultMap="ZhUserResult" />
42 43
         <association property="jsUser"    javaType="SysUser"         resultMap="JsUserResult" />
@@ -115,7 +116,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
115 116
     <select id="selectCmcSettleList" parameterType="CmcSettle" resultMap="CmcSettleResult">
116 117
         <include refid="selectCmcSettleVo"/>
117 118
         <where>
118
-            ss.content = '实际结算总金额'
119 119
             <if test="settleId != null  and settleId != ''"> and s.settle_id = #{settleId}</if>
120 120
             <if test="projectId != null"> and s.project_id = #{projectId}</if>
121 121
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
@@ -149,8 +149,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
149 149
     
150 150
     <select id="selectCmcSettleBySettleId" parameterType="String" resultMap="CmcSettleResult">
151 151
         <include refid="selectCmcSettleVo"/>
152
-        group by s.settle_id
153 152
         where s.settle_id = #{settleId}
153
+        group by s.settle_id
154 154
     </select>
155 155
         
156 156
     <insert id="insertCmcSettle" parameterType="CmcSettle">

正在加载...
取消
保存