Kaynağa Gözat

工作填报搜索导出

lamphua 7 ay önce
ebeveyn
işleme
2d01a2bf19

+ 10
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeclare.java Dosyayı Görüntüle

@@ -33,6 +33,7 @@ public class CmcDeclare extends BaseEntity
33 33
     @Excel(name = "填报人")
34 34
     private String userName;
35 35
     private Long userId;
36
+    private Long deptId;
36 37
 
37 38
     /** 工作类别(内业、外业等) */
38 39
     @Excel(name = "工作类别")
@@ -118,6 +119,15 @@ public class CmcDeclare extends BaseEntity
118 119
     {
119 120
         return userId;
120 121
     }
122
+    public void setDeptId(Long deptId)
123
+    {
124
+        this.deptId = deptId;
125
+    }
126
+
127
+    public Long getDeptId()
128
+    {
129
+        return deptId;
130
+    }
121 131
     public void setUser(SysUser user)
122 132
     {
123 133
         this.user = user;

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml Dosyayı Görüntüle

@@ -69,7 +69,7 @@
69 69
 
70 70
     <sql id="selectCmcContractVo">
71 71
         select distinct c.contract_id, c.contract_code, c.contract_name, c.contract_number, c.tender_id, t.project_name as t_project_name, p.project_number, p.project_name,
72
-               p.project_source, c.party_a_id, pa.party_a_name, t.project_name as t_project_name, t.a_person as a_person, t.a_phone as a_phone, t.agent as agent, t.agent_person as agent_person,
72
+               p.project_source, c.party_a_id, pa.party_a_name, t.a_person as a_person, t.a_phone as a_phone, t.agent as agent, t.agent_person as agent_person,
73 73
                t.agent_phone as agent_phone, c.amount, c.deposit, c.contract_document, c.drafter, u.nick_name as draft_nick_name, c.draft_time, c.remark, c.sign_date, c.sign_remark, c.sign_scan,
74 74
                c.comment_type, c.manager_comment, c.manager_user_id, u1.nick_name as manager_nick_name, c.manager_time, c.gm_user_id, u2.nick_name as gm_nick_name, c.gm_time, c.gm_comment from cmc_contract as c
75 75
         left join sys_user as u on u.user_id = c.drafter

+ 4
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeclareMapper.xml Dosyayı Görüntüle

@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
8 8
         <result property="formId"    column="form_id"    />
9 9
         <result property="projectId"    column="project_id"    />
10 10
         <result property="userId"    column="user_id"    />
11
+        <result property="deptId"    column="dept_id"    />
11 12
         <result property="workType"    column="work_type"    />
12 13
         <result property="workItem"    column="work_item"    />
13 14
         <result property="workContent"    column="work_content"    />
@@ -28,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
28 29
     </resultMap>
29 30
 
30 31
     <sql id="selectCmcDeclareVo">
31
-        select d.form_id, d.project_id, p.project_number, p.project_name, d.user_id, u.nick_name, d.work_type, d.work_item, d.work_content, d.work_load, d.price, d.coefficient, d.check_status, d.audit_status, d.submit_time, d.confirm_status from cmc_declare as d
32
+        select d.form_id, d.project_id, p.project_number, p.project_name, d.user_id, u.dept_id, u.nick_name, d.work_type, d.work_item, d.work_content, d.work_load, d.price, d.coefficient, d.check_status, d.audit_status, d.submit_time, d.confirm_status from cmc_declare as d
32 33
         left join sys_user as u on u.user_id = d.user_id
33 34
         left join cmc_project as p on p.project_id = d.project_id
34 35
     </sql>
@@ -44,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
44 45
         <where>  
45 46
             <if test="projectId != null  and projectId != ''"> and d.project_id = #{projectId}</if>
46 47
             <if test="userId != null"> and d.user_id = #{userId}</if>
48
+            <if test="deptId != null"> and u.dept_id = #{deptId}</if>
47 49
             <if test="workType != null  and workType != ''"> and d.work_type = #{workType}</if>
48 50
             <if test="workItem != null  and workItem != ''"> and d.work_item = #{workItem}</if>
49 51
             <if test="workContent != null  and workContent != ''"> and d.work_content = #{workContent}</if>
@@ -52,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
52 54
             <if test="coefficient != null  and coefficient != ''"> and d.coefficient = #{coefficient}</if>
53 55
             <if test="checkStatus != null  and checkStatus != ''"> and d.check_status = #{checkStatus}</if>
54 56
             <if test="auditStatus != null  and auditStatus != ''"> and d.audit_status = #{auditStatus}</if>
55
-            <if test="submitTime != null "> and d.submit_time = #{submitTime}</if>
57
+            <if test="submitTime != null "> and date_format(d.submit_time, '%y%m') = date_format(#{submitTime}, '%y%m')</if>
56 58
             <if test="confirmStatus != null  and confirmStatus != ''"> and d.confirm_status = #{confirmStatus}</if>
57 59
         </where>
58 60
         order by d.submit_time desc

+ 1
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcOutsourceMapper.xml Dosyayı Görüntüle

@@ -78,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
78 78
             <if test="zjlComment != null  and zjlComment != ''"> and o.zjl_comment = #{zjlComment}</if>
79 79
             <if test="zjlTime != null "> and o.zjl_time = #{zjlTime}</if>
80 80
         </where>
81
+        order by o.apply_time desc
81 82
     </select>
82 83
     
83 84
     <select id="selectCmcOutsourceByOutsourceId" parameterType="String" resultMap="CmcOutsourceResult">

+ 1
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPerformanceMapper.xml Dosyayı Görüntüle

@@ -71,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
71 71
             <if test="zhUserId != null "> and p.zh_user_id = #{zhUserId}</if>
72 72
             <if test="zhTime != null "> and p.zh_time = #{zhTime}</if>
73 73
         </where>
74
+        order by p.report_time desc
74 75
     </select>
75 76
     
76 77
     <select id="selectCmcPerformanceByPerformanceId" parameterType="String" resultMap="CmcPerformanceResult">

+ 1
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProcureApprovalMapper.xml Dosyayı Görüntüle

@@ -79,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
79 79
             <if test="planTime != null "> and pa.plan_time = #{planTime}</if>
80 80
             <if test="planComment != null  and planComment != ''"> and pa.plan_comment = #{planComment}</if>
81 81
         </where>
82
+        order by pa.apply_time desc
82 83
     </select>
83 84
     
84 85
     <select id="selectCmcProcureApprovalByProcureApplyId" parameterType="String" resultMap="CmcProcureApprovalResult">

+ 1
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcTrainMapper.xml Dosyayı Görüntüle

@@ -30,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
30 30
             <if test="beginDate != null "> and begin_date = #{beginDate}</if>
31 31
             <if test="endDate != null "> and end_date = #{endDate}</if>
32 32
         </where>
33
+        order by begin_date desc
33 34
     </select>
34 35
     
35 36
     <select id="selectCmcTrainByTrainId" parameterType="Integer" resultMap="CmcTrainResult">

Loading…
İptal
Kaydet