浏览代码

结算统计调整

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

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

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

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

36
     @Excel(name = "其他项目名称")
36
     @Excel(name = "其他项目名称")
37
     private String xmName;
37
     private String xmName;
38
 
38
 
39
+    /** 结算内容 */
40
+    private String content;
41
+
39
     /** 实际结算总金额 */
42
     /** 实际结算总金额 */
40
     @Excel(name = "实际结算总金额")
43
     @Excel(name = "实际结算总金额")
41
     private BigDecimal amount;
44
     private BigDecimal amount;
556
     {
559
     {
557
         return amount;
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
     @Override
573
     @Override

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

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

正在加载...
取消
保存