|
|
@@ -298,6 +298,23 @@
|
|
|
from project_task
|
|
|
where project_status =0
|
|
|
</select>
|
|
|
+ <resultMap id="AllProjectMonthMap" type="com.ruoyi.project.bo.ProjectTaskAllBo">
|
|
|
+ <id property="id" column="id"/>
|
|
|
+ <result property="name" column="name" />
|
|
|
+ <collection property="months" ofType="String">
|
|
|
+ <result column="recordTime" />
|
|
|
+ </collection>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="getAllProjectMonth" resultMap="AllProjectMonthMap">
|
|
|
+ select x.id,x.name,x.recordTime
|
|
|
+ from (select a.id,a.name ,date_format(b.record_time,'%Y-%m')recordTime
|
|
|
+ from project_task a left join project_staff_record b on a.id =b.pid
|
|
|
+ left join sys_user c on b.aid=c.user_id left join sys_dept d on c.dept_id=d.dept_id
|
|
|
+ where d.company_id= #{companyId}
|
|
|
+ )x group by x.id,x.name,x.recordTime
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
<update id="updateStaffName" >
|
|
|
update project_task
|