@ -3,150 +3,149 @@
<mapper namespace= "com.xm.core.entity.XmProjectMCostUser" >
<mapper namespace= "com.xm.core.entity.XmProjectMCostUser" >
<!-- 开始 自定sql函数区域 -->
<!-- 请在此区域添加自定义函数 -->
<!-- 开始 自定sql函数区域 请在此区域添加自定义函数,其它区域尽量不要动,因为代码随时重新生成 -->
<sql id= "whereForMap" >
<if test= " ids != null" > and (res.id) in
<foreach collection= "ids" item= "item" index= "index" open= "(" separator= "," close= ")" >
( #{item})
</foreach>
</if>
<if test= "key != null and key !='' " > </if>
</sql>
<!-- 插入流程审批表数据 -->
<insert id= "insertProcessApprova"
<insert id= "insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into xm_project_m_cost_user_process_approva (
insert into xm_project_m_cost_user_process_approva (
id,cost_id,project_id,flow_branch_id,agree,act_id,task_name,proc_inst_id,main_title,comment_msg,flow_last_time,event_name,biz_key,model_key,assignee,start_userid,proc_def_id
id,cost_id,project_id,flow_branch_id,agree,act_id,task_name,proc_inst_id,main_title,comment_msg,flow_last_time,event_name,biz_key,model_key,assignee,start_userid,proc_def_id
) values (
) values (
#{id},#{costId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
#{id},#{costId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
)
)
</insert>
</insert>
<!-- 同时修改业务表及流程审批表数据状态 -->
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id= "updateProcessApprova"
<update id= "updateProcessApprova"
parameterType="HashMap">
parameterType="HashMap">
update xm_project_m_cost_user b ,XM.xm_project_m_cost_user_process_approva pa
update xm_project_m_cost_user b ,XM.xm_project_m_cost_user_process_approva pa
<set >
<if test= ' agree != null and agree !="" ' > pa.agree = #{agree},</if>
<if test= ' actId != null and actId !="" ' > pa.act_id = #{actId},</if>
<if test= ' assignee != null and assignee !="" ' > pa.assignee = #{assignee},</if>
<if test= ' assigneeName != null and assigneeName !="" ' > pa.assignee_name = #{assigneeName},</if>
<if test= ' taskName != null and taskName !="" ' > pa.task_name = #{taskName},</if>
<if test= ' commentMsg != null and commentMsg !="" ' > pa.comment_msg = #{commentMsg},</if>
pa.flow_last_time = now(),
<if test= ' eventName != null and eventName !="" ' > pa.event_name = #{eventName},</if>
<if test= ' flowState != null and flowState !="" ' > pa.flow_state=#{flowState},</if>
<if test= ' bizFlowState != null and bizFlowState !="" ' > b.biz_flow_state=#{bizFlowState},</if>
<if test= ' bizProcInstId != null and bizProcInstId !="" ' > b.biz_proc_inst_id=#{bizProcInstId},</if>
</set>
<set >
<if test= ' agree != null and agree !="" ' > pa.agree = #{agree},</if>
<if test= ' actId != null and actId !="" ' > pa.act_id = #{actId},</if>
<if test= ' assignee != null and assignee !="" ' > pa.assignee = #{assignee},</if>
<if test= ' assigneeName != null and assigneeName !="" ' > pa.assignee_name = #{assigneeName},</if>
<if test= ' taskName != null and taskName !="" ' > pa.task_name = #{taskName},</if>
<if test= ' commentMsg != null and commentMsg !="" ' > pa.comment_msg = #{commentMsg},</if>
pa.flow_last_time = now(),
<if test= ' eventName != null and eventName !="" ' > pa.event_name = #{eventName},</if>
<if test= ' flowState != null and flowState !="" ' > pa.flow_state=#{flowState},</if>
<if test= ' bizFlowState != null and bizFlowState !="" ' > b.biz_flow_state=#{bizFlowState},</if>
<if test= ' bizProcInstId != null and bizProcInstId !="" ' > b.biz_proc_inst_id=#{bizProcInstId},</if>
</set>
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
and b.id=pa.cost_id
</update>
and b.id=pa.cost_id
</update>
<update id= "updateFlowStateByProcInstForDeleteSuccess"
<update id= "updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
parameterType="HashMap">
update xm_project_m_cost_user_process_approva pa set pa.flow_state='2'
update xm_project_m_cost_user_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
</update>
<!-- 按条件删除若干条记录 -->
<!-- 按条件删除若干条记录 -->
<delete id= "deleteByProcInstId" parameterType= "HashMap" >
<delete id= "deleteByProcInstId" parameterType= "HashMap" >
delete from xm_project_m_cost_user
delete from xm_project_m_cost_user
where biz_proc_inst_id=#{procInstId}
where biz_proc_inst_id=#{procInstId}
</delete>
</delete>
<update id= "updateExecuserStatusByExecuserProcInstId"
<update id= "updateExecuserStatusByExecuserProcInstId"
parameterType="HashMap">
parameterType="HashMap">
update xm_project_m_cost_user pa set pa.execuser_status=#{execuserStatus}
update xm_project_m_cost_user pa set pa.execuser_status=#{execuserStatus}
where pa.execuser_proc_inst_id = #{execuserProcInstId}
</update>
where pa.execuser_proc_inst_id = #{execuserProcInstId}
</update>
<!-- 按条件删除若干条记录 -->
<!-- 按条件删除若干条记录 -->
<delete id= "deleteByExecuserProcInstId" parameterType= "HashMap" >
<delete id= "deleteByExecuserProcInstId" parameterType= "HashMap" >
delete from xm_project_m_cost_user
delete from xm_project_m_cost_user
where execuser_proc_inst_id=#{execuserProcInstId}
where execuser_proc_inst_id=#{execuserProcInstId}
</delete>
</delete>
<!-- 查询人力的总支出及对应的项目的总预算,人力总支出不能大于项目人力总预算 -->
<!-- 查询人力的总支出及对应的项目的总预算,人力总支出不能大于项目人力总预算 -->
<select id= "selectTotalProjectAndUserActCost" parameterType= "HashMap" resultType= "HashMap" >
<select id= "selectTotalProjectAndUserActCost" parameterType= "HashMap" resultType= "HashMap" >
SELECT
SELECT
sum( case when res.cost_type='1' then ifnull(res.act_cost_amount,0) else 0 end ) AS act_cost_inner_user_amount,
sum( case when res.cost_type='2' then ifnull(res.act_cost_amount,0) else 0 end ) AS act_cost_out_user_amount,
sum( ifnull(res.act_cost_amount,0) ) AS act_cost_user_amount,
p.plan_nouser_at,
p.plan_inner_user_at,
p.plan_out_user_at,
p.locked,
p.plan_workload,
p.total_receivables,
p.budget_margin_rate,
p.contract_amt,
p.plan_inner_user_price,
p.plan_out_user_price,
p.plan_out_user_cnt,
p.plan_inner_user_cnt,
p.plan_working_hours
sum( case when res.cost_type='1' then ifnull(res.act_cost_amount,0) else 0 end ) AS act_cost_inner_user_amount,
sum( case when res.cost_type='2' then ifnull(res.act_cost_amount,0) else 0 end ) AS act_cost_out_user_amount,
sum( ifnull(res.act_cost_amount,0) ) AS act_cost_user_amount,
p.plan_nouser_at,
p.plan_inner_user_at,
p.plan_out_user_at,
p.locked,
p.plan_workload,
p.total_receivables,
p.budget_margin_rate,
p.contract_amt,
p.plan_inner_user_price,
p.plan_out_user_price,
p.plan_out_user_cnt,
p.plan_inner_user_cnt,
p.plan_working_hours
FROM
FROM
XM.xm_project p
LEFT JOIN xm_project_m_cost_user res ON p.id = res.project_id
XM.xm_project p
LEFT JOIN xm_project_m_cost_user res ON p.id = res.project_id
<where >
<where >
p.id = #{projectId}
p.id = #{projectId}
<if test= " excludeIds !=null " > and res.id not in
<foreach collection= "excludeIds" item= "item" index= "index" open= "(" separator= "," close= ")" >
#{item}
</foreach>
</if>
</where>
<if test= " excludeIds !=null " > and res.id not in
<foreach collection= "excludeIds" item= "item" index= "index" open= "(" separator= "," close= ")" >
#{item}
</foreach>
</if>
</where>
</select>
</select>
<!-- 通过条件查询获取数据列表 返回list<map> -->
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id= "listSum" parameterType= "HashMap" resultType= "HashMap" >
<select id= "listSum" parameterType= "HashMap" resultType= "HashMap" >
select res.project_id,res.userid,max(res.username) as username,subject_id,max(subject_name) as subject_name,biz_month,sum(res.act_cost_amount) as act_cost_amount from xm_project_m_cost_user res
select res.project_id,res.userid,max(res.username) as username,subject_id,max(subject_name) as subject_name,biz_month,sum(res.act_cost_amount) as act_cost_amount from xm_project_m_cost_user res
<where >
and res.project_id=#{projectId}
<if test= "subjectId != null and subjectId !='' " > and res.subject_id =#{subjectId} </if>
<if test= "costType != null and costType !='' " > and res.cost_type =#{costType} </if>
<where >
and res.project_id=#{projectId}
<if test= "subjectId != null and subjectId !='' " > and res.subject_id =#{subjectId} </if>
<if test= "costType != null and costType !='' " > and res.cost_type =#{costType} </if>
</where>
</where>
group by res.project_id,res.userid,subject_id,biz_month
group by res.project_id,res.userid,subject_id,biz_month
</select>
</select>
<select id= "listSumForSettleGroupByTaskIdAndUserid" parameterType= "HashMap" resultType= "HashMap" >
<select id= "listSumForSettleGroupByTaskIdAndUserid" parameterType= "HashMap" resultType= "HashMap" >
SELECT
SELECT
res.project_id,
res.task_id,
res.userid,
max( res.username ) as username,
sum( res.act_cost_amount ) AS act_cost_amount,
max( t.budget_cost ) AS task_budget_cost,
max( t.project_name ) AS project_name
res.project_id,
res.task_id,
res.userid,
max( res.username ) as username,
sum( res.act_cost_amount ) AS act_cost_amount,
max( t.budget_cost ) AS task_budget_cost,
max( t.project_name ) AS project_name
FROM xm_task t
FROM xm_task t
LEFT JOIN
LEFT JOIN
XM.xm_project_m_cost_user res ON res.task_id = t.id AND res.project_id = t.project_id
<where >
t.project_id=#{projectId}
<if test= "subjectId != null and subjectId !='' " > and res.subject_id =#{subjectId} </if>
<if test= "costType != null and costType !='' " > and res.cost_type =#{costType} </if>
<if test= "taskId != null and taskId !='' " > and res.task_id =#{taskId} </if>
<if test= "userid != null and userid !='' " > and res.userid =#{userid} </if>
XM.xm_project_m_cost_user res ON res.task_id = t.id AND res.project_id = t.project_id
<where >
t.project_id=#{projectId}
<if test= "subjectId != null and subjectId !='' " > and res.subject_id =#{subjectId} </if>
<if test= "costType != null and costType !='' " > and res.cost_type =#{costType} </if>
<if test= "taskId != null and taskId !='' " > and res.task_id =#{taskId} </if>
<if test= "userid != null and userid !='' " > and res.userid =#{userid} </if>
</where>
</where>
GROUP BY
GROUP BY
res.project_id,
res.task_id,
res.userid
res.project_id,
res.task_id,
res.userid
</select>
</select>
<!-- 结束 自定义sql函数区域 -->
<!-- 结束 自定义sql函数区域 -->
<!-- 通过条件查询获取数据列表 返回list<map> -->
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id= "selectListMapByWhere" parameterType= "HashMap" resultType= "HashMap" >
<select id= "selectListMapByWhere" parameterType= "HashMap" resultType= "HashMap" >
select res.*,pa.proc_inst_id,pa.assignee,pa.assignee_name,pa.main_title,pa.flow_branch_id,pa.task_name,pa.agree,pa.flow_last_time,pa.comment_msg,pa.proc_def_id,pa.flow_state from xm_project_m_cost_user res left join xm_project_m_cost_user_process_approva pa on res.id=pa.cost_id and res.biz_proc_inst_id=pa.proc_inst_id
select res.*,pa.proc_inst_id,pa.assignee,pa.assignee_name,pa.main_title,pa.flow_branch_id,pa.task_name,pa.agree,pa.flow_last_time,pa.comment_msg,pa.proc_def_id,pa.flow_state from xm_project_m_cost_user res left join xm_project_m_cost_user_process_approva pa on res.id=pa.cost_id and res.biz_proc_inst_id=pa.proc_inst_id
<where >
<if test= "ids != null" > and
id in
<foreach collection= "ids" item= "item" index= "index" open= "(" separator= "," close= ")" >
#{item}
</foreach>
</if>
<where >
<include refid= "whereForMap" />
<include refid= "where" />
<include refid= "where" />
<if test= "key != null and key !='' " > </if>
</where>
</where>
</select>
</select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id= "selectListByWhere" parameterType= "com.xm.core.entity.XmProjectMCostUser" resultType= "com.xm.core.entity.XmProjectMCostUser" >
<select id= "selectListByWhere" parameterType= "com.xm.core.entity.XmProjectMCostUser" resultType= "com.xm.core.entity.XmProjectMCostUser" >
@ -162,7 +161,13 @@
where
where
res.id = #{id}
res.id = #{id}
</select>
</select>
<select id= "selectListByIds" parameterType= "List" resultType= "com.xm.core.entity.XmProjectMCostUser" >
select * from xm_project_m_cost_user res
where (res.id) in
<foreach collection= "list" item= "item" index= "index" open= "(" separator= "," close= ")" >
( #{item})
</foreach>
</select>
<!-- 通过主键查询获取数据对象 返回map -->
<!-- 通过主键查询获取数据对象 返回map -->
<select id= "selectOneMap" parameterType= "HashMap" resultType= "HashMap" >
<select id= "selectOneMap" parameterType= "HashMap" resultType= "HashMap" >
select * from xm_project_m_cost_user res
select * from xm_project_m_cost_user res
@ -177,11 +182,11 @@
</where>
</where>
</select>
</select>
<!-- 新增一条记录 主键id, -->
<!-- 新增一条记录 主键id, -->
<insert id= "insert" parameterType= "com.xm.core.entity.XmProjectMCostUser" useGeneratedKeys= "false" keyProperty= "id" >
<insert id= "insert" parameterType= "com.xm.core.entity.XmProjectMCostUser" useGeneratedKeys= "false" keyProperty= "id" >
insert into xm_project_m_cost_user(
insert into xm_project_m_cost_user(
<include refid= "columns" />
<include refid= "columns" />
) values (
) values (
#{subjectId},#{projectId},#{userid},#{createTime},#{sendCostTime},#{username},#{projectName},#{remark},#{id},#{taskId},#{taskName},#{actWorkload},#{bizzStartDate},#{bizzEndDate},#{bizProcInstId},#{bizFlowState},#{projectP haseId},#{actCostAmount},#{costType},#{bizMonth},#{bizDate},#{subjectName},#{project Name},#{execuserProcInstId},#{execuserStatus},#{payStatus},#{payOpUserid},#{payOpUsername}
#{subjectId},#{projectId},#{userid},#{createTime},#{sendCostTime},#{username},#{projectName},#{remark},#{id},#{taskId},#{taskName},#{actWorkload},#{bizzStartDate},#{bizzEndDate},#{bizProcInstId},#{bizFlowState},#{phaseId},#{actCostAmount},#{costType},#{bizMonth},#{bizDate},#{subjectName},#{phase Name},#{execuserProcInstId},#{execuserStatus},#{payStatus},#{payOpUserid},#{payOpUsername}
)
)
</insert>
</insert>
@ -195,13 +200,13 @@
<!-- 按主键删除一条记录 -->
<!-- 按主键删除一条记录 -->
<delete id= "deleteByPk" parameterType= "com.xm.core.entity.XmProjectMCostUser" >
<delete id= "deleteByPk" parameterType= "com.xm.core.entity.XmProjectMCostUser" >
delete from xm_project_m_cost_user
delete from xm_project_m_cost_user
where id = #{id}
where id = #{id}
</delete>
</delete>
<!-- 根据条件修改若干条记录 -->
<!-- 根据条件修改若干条记录 -->
<update id= "updateSomeFieldByPk" parameterType= "com.xm.core.entity.XmProjectMCostUser" >
<update id= "updateSomeFieldByPk" parameterType= "com.xm.core.entity.XmProjectMCostUser" >
update xm_project_m_cost_user
update xm_project_m_cost_user
<set >
<set >
<include refid= "someFieldSet" />
<include refid= "someFieldSet" />
</set>
</set>
@ -210,7 +215,7 @@
<!-- 根据主键修改一条记录 -->
<!-- 根据主键修改一条记录 -->
<update id= "updateByPk" parameterType= "com.xm.core.entity.XmProjectMCostUser" >
<update id= "updateByPk" parameterType= "com.xm.core.entity.XmProjectMCostUser" >
update xm_project_m_cost_user
update xm_project_m_cost_user
<set >
<set >
<include refid= "set" />
<include refid= "set" />
</set>
</set>
@ -225,7 +230,7 @@
<!-- 批量更新 -->
<!-- 批量更新 -->
<update id= "batchUpdate" parameterType= "List" >
<update id= "batchUpdate" parameterType= "List" >
<foreach collection= "list" item= "item" index= "index" separator= ";" >
<foreach collection= "list" item= "item" index= "index" separator= ";" >
update xm_project_m_cost_user
update xm_project_m_cost_user
set
set
<include refid= "batchSet" />
<include refid= "batchSet" />
where id = #{item.id}
where id = #{item.id}
@ -233,26 +238,27 @@
</update>
</update>
<!-- 批量删除 -->
<!-- 批量删除 -->
<delete id= "batchDelete" parameterType= "List" >
<delete id= "batchDelete" parameterType= "List" >
delete from xm_project_m_cost_user
where id in
<foreach collection= "list" item= "item" index= "index" open= "(" separator= "," close= ")" >
#{item.id }
</foreach>
delete from xm_project_m_cost_user
where
(id) in
<foreach collection= "list" item= "item" index= "index" open= "(" separator= "," close= ")" >
( #{item.id} )
</foreach>
</delete>
</delete>
<!-- sql片段 列 -->
<!-- sql片段 列 -->
<sql id= "columns" >
<sql id= "columns" >
subject_id,project_id,userid,create_time,send_cost_time,username,project_name,remark,id,task_id,task_name,act_workload,bizz_start_date,bizz_end_date,biz_proc_inst_id,biz_flow_state,project_p hase_id,act_cost_amount,cost_type,biz_month,biz_date,subject_name,project_ phase_name,execuser_proc_inst_id,execuser_status,pay_status,pay_op_userid,pay_op_username
subject_id,project_id,userid,create_time,send_cost_time,username,project_name,remark,id,task_id,task_name,act_workload,bizz_start_date,bizz_end_date,biz_proc_inst_id,biz_flow_state,phase_id,act_cost_amount,cost_type,biz_month,biz_date,subject_name,phase_name,execuser_proc_inst_id,execuser_status,pay_status,pay_op_userid,pay_op_username
</sql>
</sql>
<!-- sql片段 动态条件 YYYY - MM - DD HH24:MI:SS -->
<!-- sql片段 动态条件 YYYY - MM - DD HH24:MI:SS -->
<sql id= "where" >
<sql id= "where" >
<if test= "subjectId != null and subjectId != ''" > and res.subject_id = #{subjectId} </if>
<if test= "subjectId != null and subjectId != ''" > and res.subject_id = #{subjectId} </if>
<if test= "projectId != null and projectId != ''" > and res.project_id = #{projectId} </if>
<if test= "projectId != null and projectId != ''" > and res.project_id = #{projectId} </if>
<if test= "userid != null and userid != ''" > and res.userid = #{userid} </if>
<if test= "userid != null and userid != ''" > and res.userid = #{userid} </if>
<if test= "createTime != null" > and TO_CHAR(res.create_time,'YYYY-MM-DD') = TO_CHAR(#{createTime},'YYYY-MM-DD ') </if>
<if test= "sendCostTime != null" > and TO_CHAR(res.send_cost_time,'YYYY-MM-DD') = TO_CHAR(#{sendCostTime},'YYYY-MM-DD ') </if>
<if test= "createTime != null" > and date_format(res.create_time,'%Y-%m-%d') = date_format(#{createTime},'%Y-%m-%d ') </if>
<if test= "sendCostTime != null" > and date_format(res.send_cost_time,'%Y-%m-%d') = date_format(#{sendCostTime},'%Y-%m-%d ') </if>
<if test= "username != null and username != ''" > and res.username = #{username} </if>
<if test= "username != null and username != ''" > and res.username = #{username} </if>
<if test= "projectName != null and projectName != ''" > and res.project_name = #{projectName} </if>
<if test= "projectName != null and projectName != ''" > and res.project_name = #{projectName} </if>
<if test= "remark != null and remark != ''" > and res.remark = #{remark} </if>
<if test= "remark != null and remark != ''" > and res.remark = #{remark} </if>
@ -260,17 +266,17 @@
<if test= "taskId != null and taskId != ''" > and res.task_id = #{taskId} </if>
<if test= "taskId != null and taskId != ''" > and res.task_id = #{taskId} </if>
<if test= "taskName != null and taskName != ''" > and res.task_name = #{taskName} </if>
<if test= "taskName != null and taskName != ''" > and res.task_name = #{taskName} </if>
<if test= "actWorkload != null and actWorkload != ''" > and res.act_workload = #{actWorkload} </if>
<if test= "actWorkload != null and actWorkload != ''" > and res.act_workload = #{actWorkload} </if>
<if test= "bizzStartDate != null" > and TO_CHAR(res.bizz_start_date,'YYYY-MM-DD') = TO_CHAR(#{bizzStartDate},'YYYY-MM-DD ') </if>
<if test= "bizzEndDate != null" > and TO_CHAR(res.bizz_end_date,'YYYY-MM-DD') = TO_CHAR(#{bizzEndDate},'YYYY-MM-DD ') </if>
<if test= "bizzStartDate != null" > and date_format(res.bizz_start_date,'%Y-%m-%d') = date_format(#{bizzStartDate},'%Y-%m-%d ') </if>
<if test= "bizzEndDate != null" > and date_format(res.bizz_end_date,'%Y-%m-%d') = date_format(#{bizzEndDate},'%Y-%m-%d ') </if>
<if test= "bizProcInstId != null and bizProcInstId != ''" > and res.biz_proc_inst_id = #{bizProcInstId} </if>
<if test= "bizProcInstId != null and bizProcInstId != ''" > and res.biz_proc_inst_id = #{bizProcInstId} </if>
<if test= "bizFlowState != null and bizFlowState != ''" > and res.biz_flow_state = #{bizFlowState} </if>
<if test= "bizFlowState != null and bizFlowState != ''" > and res.biz_flow_state = #{bizFlowState} </if>
<if test= "projectP haseId != null and projectP haseId != ''" > and res.project_p hase_id = #{projectP haseId} </if>
<if test= "phaseId != null and phaseId != ''" > and res.phase_id = #{phaseId} </if>
<if test= "actCostAmount != null and actCostAmount != ''" > and res.act_cost_amount = #{actCostAmount} </if>
<if test= "actCostAmount != null and actCostAmount != ''" > and res.act_cost_amount = #{actCostAmount} </if>
<if test= "costType != null and costType != ''" > and res.cost_type = #{costType} </if>
<if test= "costType != null and costType != ''" > and res.cost_type = #{costType} </if>
<if test= "bizMonth != null and bizMonth != ''" > and res.biz_month = #{bizMonth} </if>
<if test= "bizMonth != null and bizMonth != ''" > and res.biz_month = #{bizMonth} </if>
<if test= "bizDate != null and bizDate != ''" > and res.biz_date = #{bizDate} </if>
<if test= "bizDate != null and bizDate != ''" > and res.biz_date = #{bizDate} </if>
<if test= "subjectName != null and subjectName != ''" > and res.subject_name = #{subjectName} </if>
<if test= "subjectName != null and subjectName != ''" > and res.subject_name = #{subjectName} </if>
<if test= "projectName != null and projectName != ''" > and res.project_phase_name = #{project Name} </if>
<if test= "phaseName != null and phaseName != ''" > and res.phase_name = #{phase Name} </if>
<if test= "execuserProcInstId != null and execuserProcInstId != ''" > and res.execuser_proc_inst_id = #{execuserProcInstId} </if>
<if test= "execuserProcInstId != null and execuserProcInstId != ''" > and res.execuser_proc_inst_id = #{execuserProcInstId} </if>
<if test= "execuserStatus != null and execuserStatus != ''" > and res.execuser_status = #{execuserStatus} </if>
<if test= "execuserStatus != null and execuserStatus != ''" > and res.execuser_status = #{execuserStatus} </if>
<if test= "payStatus != null and payStatus != ''" > and res.pay_status = #{payStatus} </if>
<if test= "payStatus != null and payStatus != ''" > and res.pay_status = #{payStatus} </if>
@ -294,13 +300,13 @@
bizz_end_date = #{bizzEndDate},
bizz_end_date = #{bizzEndDate},
biz_proc_inst_id = #{bizProcInstId},
biz_proc_inst_id = #{bizProcInstId},
biz_flow_state = #{bizFlowState},
biz_flow_state = #{bizFlowState},
project_p hase_id = #{projectP haseId},
phase_id = #{phaseId},
act_cost_amount = #{actCostAmount},
act_cost_amount = #{actCostAmount},
cost_type = #{costType},
cost_type = #{costType},
biz_month = #{bizMonth},
biz_month = #{bizMonth},
biz_date = #{bizDate},
biz_date = #{bizDate},
subject_name = #{subjectName},
subject_name = #{subjectName},
project_phase_name = #{project Name},
phase_name = #{phase Name},
execuser_proc_inst_id = #{execuserProcInstId},
execuser_proc_inst_id = #{execuserProcInstId},
execuser_status = #{execuserStatus},
execuser_status = #{execuserStatus},
pay_status = #{payStatus},
pay_status = #{payStatus},
@ -323,13 +329,13 @@
<if test= "bizzEndDate != null" > bizz_end_date = #{bizzEndDate}, </if>
<if test= "bizzEndDate != null" > bizz_end_date = #{bizzEndDate}, </if>
<if test= "bizProcInstId != null and bizProcInstId != ''" > biz_proc_inst_id = #{bizProcInstId}, </if>
<if test= "bizProcInstId != null and bizProcInstId != ''" > biz_proc_inst_id = #{bizProcInstId}, </if>
<if test= "bizFlowState != null and bizFlowState != ''" > biz_flow_state = #{bizFlowState}, </if>
<if test= "bizFlowState != null and bizFlowState != ''" > biz_flow_state = #{bizFlowState}, </if>
<if test= "projectP haseId != null and projectP haseId != ''" > project_p hase_id = #{projectP haseId}, </if>
<if test= "phaseId != null and phaseId != ''" > phase_id = #{phaseId}, </if>
<if test= "actCostAmount != null and actCostAmount != ''" > act_cost_amount = #{actCostAmount}, </if>
<if test= "actCostAmount != null and actCostAmount != ''" > act_cost_amount = #{actCostAmount}, </if>
<if test= "costType != null and costType != ''" > cost_type = #{costType}, </if>
<if test= "costType != null and costType != ''" > cost_type = #{costType}, </if>
<if test= "bizMonth != null and bizMonth != ''" > biz_month = #{bizMonth}, </if>
<if test= "bizMonth != null and bizMonth != ''" > biz_month = #{bizMonth}, </if>
<if test= "bizDate != null and bizDate != ''" > biz_date = #{bizDate}, </if>
<if test= "bizDate != null and bizDate != ''" > biz_date = #{bizDate}, </if>
<if test= "subjectName != null and subjectName != ''" > subject_name = #{subjectName}, </if>
<if test= "subjectName != null and subjectName != ''" > subject_name = #{subjectName}, </if>
<if test= "projectName != null and projectName != ''" > project_phase_name = #{project Name}, </if>
<if test= "phaseName != null and phaseName != ''" > phase_name = #{phase Name}, </if>
<if test= "execuserProcInstId != null and execuserProcInstId != ''" > execuser_proc_inst_id = #{execuserProcInstId}, </if>
<if test= "execuserProcInstId != null and execuserProcInstId != ''" > execuser_proc_inst_id = #{execuserProcInstId}, </if>
<if test= "execuserStatus != null and execuserStatus != ''" > execuser_status = #{execuserStatus}, </if>
<if test= "execuserStatus != null and execuserStatus != ''" > execuser_status = #{execuserStatus}, </if>
<if test= "payStatus != null and payStatus != ''" > pay_status = #{payStatus}, </if>
<if test= "payStatus != null and payStatus != ''" > pay_status = #{payStatus}, </if>
@ -353,13 +359,13 @@
bizz_end_date = #{item.bizzEndDate},
bizz_end_date = #{item.bizzEndDate},
biz_proc_inst_id = #{item.bizProcInstId},
biz_proc_inst_id = #{item.bizProcInstId},
biz_flow_state = #{item.bizFlowState},
biz_flow_state = #{item.bizFlowState},
project_p hase_id = #{item.projectP haseId},
phase_id = #{item.phaseId},
act_cost_amount = #{item.actCostAmount},
act_cost_amount = #{item.actCostAmount},
cost_type = #{item.costType},
cost_type = #{item.costType},
biz_month = #{item.bizMonth},
biz_month = #{item.bizMonth},
biz_date = #{item.bizDate},
biz_date = #{item.bizDate},
subject_name = #{item.subjectName},
subject_name = #{item.subjectName},
project_phase_name = #{item.project Name},
phase_name = #{item.phase Name},
execuser_proc_inst_id = #{item.execuserProcInstId},
execuser_proc_inst_id = #{item.execuserProcInstId},
execuser_status = #{item.execuserStatus},
execuser_status = #{item.execuserStatus},
pay_status = #{item.payStatus},
pay_status = #{item.payStatus},