成本分析查询所有项目成本接口初步修改

This commit is contained in:
liuzongkun999
2025-03-06 20:46:01 +08:00
parent c70a3de1ca
commit c31f440510
7 changed files with 53 additions and 20 deletions

View File

@@ -151,6 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND attendance_day = #{attendanceDay}
</select>
<delete id="delOaAttendanceAll">
delete from sys_oa_attendance where
attendance_day = #{day}
@@ -158,4 +159,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and create_time > #{firstDay}
</delete>
<select id="getAttendanceDay" resultType="java.lang.Double">
select sum(day_length)
from sys_oa_attendance
where user_id = #{userId} and project_id = #{projectId} and del_flag = '0'
</select>
</mapper>

View File

@@ -168,6 +168,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join sys_oa_project sop on soc.project_id = sop.project_id
where soc.proc_ins_id = #{procInsId}
</select>
<select id="getClaimCost" resultType="java.lang.Double">
SELECT SUM(cost) FROM sys_oa_claim WHERE claim_id = #{claimId} and del_flag = '0'
</select>
</mapper>

View File

@@ -22,8 +22,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<select id="AllList" resultType="com.ruoyi.oa.domain.vo.SysOaCostAll">
select op.project_id,op.project_name, cost, cost_type, oc.remark, oc.create_time, material_id, user_id, finance_id, claim_id
from sys_oa_cost oc
left join sys_oa_project op on oc.project_id = op.project_id
from sys_oa_cost oc
left join sys_oa_project op on oc.project_id = op.project_id
<where>
<if test="projectName != null and projectName != ''">
and op.project_name like concat('%',#{projectName},'%')