Browse Source

表去除owner

master
陈裕财 4 years ago
parent
commit
973c6dc4f4
  1. 26
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmAttachmentMapper.xml
  2. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmBranchStateMapper.xml
  3. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmBranchTaskTypeStateMapper.xml
  4. 32
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmEnvListMapper.xml
  5. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmExchangeMapper.xml
  6. 32
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmFileMapper.xml
  7. 38
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMapper.xml
  8. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMenuMapper.xml
  9. 22
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationProductLinkMapper.xml
  10. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationStateMapper.xml
  11. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuExchangeMapper.xml
  12. 56
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml
  13. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuPlanMapper.xml
  14. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuStateMapper.xml
  15. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuTemplateMapper.xml
  16. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMyFocusMapper.xml
  17. 34
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml
  18. 28
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductProjectLinkMapper.xml
  19. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductStateMapper.xml
  20. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductTemplateMapper.xml
  21. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectBaselineMapper.xml
  22. 32
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectEnvListMapper.xml
  23. 26
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupFormworkMapper.xml
  24. 26
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupMapper.xml
  25. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupStateMapper.xml
  26. 32
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml
  27. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectKpiHisMapper.xml
  28. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectKpiMapper.xml
  29. 36
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMBudgetCostNouserMapper.xml
  30. 36
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMBudgetCostUserMapper.xml
  31. 36
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMCostNouserMapper.xml
  32. 42
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMCostUserMapper.xml
  33. 48
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml
  34. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseBaselineMapper.xml
  35. 28
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseMapper.xml
  36. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseTemplateMapper.xml
  37. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectStateHisMapper.xml
  38. 26
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectStateMapper.xml
  39. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectTaskTypeStateMapper.xml
  40. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectTemplateMapper.xml
  41. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionHandleMapper.xml
  42. 36
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml
  43. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionTagMapper.xml
  44. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmRecordMapper.xml
  45. 34
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskExecuserMapper.xml
  46. 58
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml
  47. 26
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskSkillMapper.xml
  48. 24
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskTemplateMapper.xml
  49. 28
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseExecMapper.xml
  50. 28
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseMapper.xml
  51. 24
      xm-core/src/main/resources/mybatis/mapper/xm/share/dao/ShareBizInfoMapper.xml
  52. 24
      xm-core/src/main/resources/mybatis/mapper/xm/share/dao/ShareReceInfoMapper.xml

26
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmAttachmentMapper.xml

@ -6,7 +6,7 @@
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<delete id="deleteByOrigin" parameterType="com.xm.core.entity.XmAttachment">
delete from XM.xm_attachment where origin_id = #{originId} and origin_type = #{originType}
delete from xm_attachment where origin_id = #{originId} and origin_type = #{originType}
</delete>
@ -16,7 +16,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_attachment res
select * from xm_attachment res
<where>
<if test="ids != null"> and
id in
@ -31,7 +31,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmAttachment" resultType="com.xm.core.entity.XmAttachment">
select * from XM.xm_attachment res
select * from xm_attachment res
<where>
<include refid="where"/>
</where>
@ -39,27 +39,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmAttachment" resultType="com.xm.core.entity.XmAttachment">
select * from XM.xm_attachment res
select * from xm_attachment res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_attachment res
select * from xm_attachment res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmAttachment" resultType="long">
select count(1) from XM.xm_attachment res
select count(1) from xm_attachment res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmAttachment" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_attachment(
insert into xm_attachment(
<include refid="columns"/>
) values (
#{id},#{originType},#{originId},#{name},#{addr},#{type},#{remark}
@ -68,7 +68,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmAttachment">
delete from XM.xm_attachment res
delete from xm_attachment res
<where>
<include refid="where"/>
</where>
@ -76,13 +76,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmAttachment">
delete from XM.xm_attachment
delete from xm_attachment
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmAttachment">
update XM.xm_attachment
update xm_attachment
<set>
<include refid="someFieldSet"/>
</set>
@ -91,7 +91,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmAttachment">
update XM.xm_attachment
update xm_attachment
<set>
<include refid="set"/>
</set>
@ -106,7 +106,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_attachment
update xm_attachment
set
<include refid="batchSet"/>
where id = #{item.id}
@ -114,7 +114,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_attachment
delete from xm_attachment
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmBranchStateMapper.xml

@ -70,7 +70,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_branch_state res
select * from xm_branch_state res
<where>
<if test="ids != null"> and
id in
@ -85,7 +85,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmBranchState" resultType="com.xm.core.entity.XmBranchState">
select * from XM.xm_branch_state res
select * from xm_branch_state res
<where>
<include refid="where"/>
</where>
@ -93,27 +93,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmBranchState" resultType="com.xm.core.entity.XmBranchState">
select * from XM.xm_branch_state res
select * from xm_branch_state res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_branch_state res
select * from xm_branch_state res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmBranchState" resultType="long">
select count(1) from XM.xm_branch_state res
select count(1) from xm_branch_state res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmBranchState" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_branch_state(
insert into xm_branch_state(
<include refid="columns"/>
) values (
#{bizDate},#{totalFileCnt},#{totalBugCnt},#{totalTaskCnt},#{totalBudgetNouserAmount},#{id},#{totalStaffCnt},#{calcTime},#{calcStatus},#{totalCostNouserAmount},#{totalClosedBugCnt},#{totalResolvedBugCnt},#{totalCompleteTaskCnt},#{totalPhaseCnt},#{totalCompletePhaseCnt},#{totalNeedPayAmount},#{totalFinishPayAmount},#{totalNeedColAmount},#{totalFinishColAmount},#{totalCostUserAmount},#{totalBudgetInnerUserAmount},#{totalPlanWorkload},#{totalRiskCnt},#{totalCompleteRiskCnt},#{branchId},#{branchName},#{totalBudgetOutUserAmount},#{totalCompleteWorkload},#{totalCostInnerUserAmount},#{totalCostOutUserAmount},#{totalProgress},#{totalActiveBugCnt},#{totalConfirmedBugCnt},#{projectStatus},#{totalActWorkload},#{totalActOutWorkload},#{totalActInnerWorkload},#{totalTaskBudgetCostAt},#{totalTaskOutCnt},#{totalNeedPayCnt},#{totalFinishPayCnt},#{totalFinishPayUserCnt},#{totalNeedPayUserCnt},#{totalPlanInnerUserWorkload},#{totalPlanOutUserWorkload},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{menuCnt}
@ -122,7 +122,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmBranchState">
delete from XM.xm_branch_state res
delete from xm_branch_state res
<where>
<include refid="where"/>
</where>
@ -130,13 +130,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmBranchState">
delete from XM.xm_branch_state
delete from xm_branch_state
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmBranchState">
update XM.xm_branch_state
update xm_branch_state
<set>
<include refid="someFieldSet"/>
</set>
@ -145,7 +145,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmBranchState">
update XM.xm_branch_state
update xm_branch_state
<set>
<include refid="set"/>
</set>
@ -160,7 +160,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_branch_state
update xm_branch_state
set
<include refid="batchSet"/>
where id = #{item.id}
@ -168,7 +168,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_branch_state
delete from xm_branch_state
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmBranchTaskTypeStateMapper.xml

@ -17,7 +17,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_branch_task_type_state res
select * from xm_branch_task_type_state res
<where>
<if test="ids != null"> and
id in
@ -32,7 +32,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmBranchTaskTypeState" resultType="com.xm.core.entity.XmBranchTaskTypeState">
select * from XM.xm_branch_task_type_state res
select * from xm_branch_task_type_state res
<where>
<include refid="where"/>
</where>
@ -40,27 +40,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmBranchTaskTypeState" resultType="com.xm.core.entity.XmBranchTaskTypeState">
select * from XM.xm_branch_task_type_state res
select * from xm_branch_task_type_state res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_branch_task_type_state res
select * from xm_branch_task_type_state res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmBranchTaskTypeState" resultType="long">
select count(1) from XM.xm_branch_task_type_state res
select count(1) from xm_branch_task_type_state res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmBranchTaskTypeState" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_branch_task_type_state(
insert into xm_branch_task_type_state(
<include refid="columns"/>
) values (
#{taskType},#{planWorkload},#{planAmount},#{actWorkload},#{actAmount},#{branchId},#{bizDate},#{calcTime},#{planOutUserAt},#{planInnerUserAt},#{actOutUserAt},#{actInnerUserAt},#{planOutUserWorkload},#{planInnerUserWorkload},#{actOutUserWorkload},#{actInnerUserWorkload},#{planNouserAt},#{actNouserAt},#{id},#{branchName}
@ -69,7 +69,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmBranchTaskTypeState">
delete from XM.xm_branch_task_type_state res
delete from xm_branch_task_type_state res
<where>
<include refid="where"/>
</where>
@ -77,13 +77,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmBranchTaskTypeState">
delete from XM.xm_branch_task_type_state
delete from xm_branch_task_type_state
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmBranchTaskTypeState">
update XM.xm_branch_task_type_state
update xm_branch_task_type_state
<set>
<include refid="someFieldSet"/>
</set>
@ -92,7 +92,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmBranchTaskTypeState">
update XM.xm_branch_task_type_state
update xm_branch_task_type_state
<set>
<include refid="set"/>
</set>
@ -107,7 +107,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_branch_task_type_state
update xm_branch_task_type_state
set
<include refid="batchSet"/>
where id = #{item.id}
@ -115,7 +115,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_branch_task_type_state
delete from xm_branch_task_type_state
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

32
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmEnvListMapper.xml

@ -12,7 +12,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_env_list_process_approva (
insert into xm_env_list_process_approva (
id,env_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 (
#{id},#{envId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -22,7 +22,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_env_list b ,XM.xm_env_list_process_approva pa
update xm_env_list b ,XM.xm_env_list_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>
@ -42,13 +42,13 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_env_list_process_approva pa set pa.flow_state='2'
update xm_env_list_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_env_list
delete from xm_env_list
where biz_proc_inst_id=#{procInstId}
</delete>
@ -59,7 +59,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_env_list res left join XM.xm_env_list_process_approva pa on res.id=pa.env_id and res.biz_proc_inst_id=pa.proc_inst_id and res.branch_id=pa.branch_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_env_list res left join xm_env_list_process_approva pa on res.id=pa.env_id and res.biz_proc_inst_id=pa.proc_inst_id and res.branch_id=pa.branch_id
<where>
<if test="ids != null"> and
@ -78,7 +78,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmEnvList" resultType="com.xm.core.entity.XmEnvList">
select * from XM.xm_env_list res
select * from xm_env_list res
<where>
<include refid="where"/>
</where>
@ -86,27 +86,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmEnvList" resultType="com.xm.core.entity.XmEnvList">
select * from XM.xm_env_list res
select * from xm_env_list res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_env_list res
select * from xm_env_list res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmEnvList" resultType="long">
select count(1) from XM.xm_env_list res
select count(1) from xm_env_list res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmEnvList" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_env_list(
insert into xm_env_list(
<include refid="columns"/>
) values (
#{id},#{remark},#{ipAddress},#{port},#{branchId},#{accessUserid},#{accessPassword},#{effect},#{accessUrl},#{supplier},#{webIpAddress},#{webPort},#{otherRemark},#{createUserid},#{createUsername},#{createTime},#{envState},#{startTime},#{endTime},#{feeAmount},#{feeRule}
@ -115,7 +115,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmEnvList">
delete from XM.xm_env_list res
delete from xm_env_list res
<where>
<include refid="where"/>
</where>
@ -123,13 +123,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmEnvList">
delete from XM.xm_env_list
delete from xm_env_list
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmEnvList">
update XM.xm_env_list
update xm_env_list
<set>
<include refid="someFieldSet"/>
</set>
@ -138,7 +138,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmEnvList">
update XM.xm_env_list
update xm_env_list
<set>
<include refid="set"/>
</set>
@ -153,7 +153,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_env_list
update xm_env_list
set
<include refid="batchSet"/>
where id = #{item.id}
@ -161,7 +161,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_env_list
delete from xm_env_list
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmExchangeMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_exchange res
select * from xm_exchange res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmExchange" resultType="com.xm.core.entity.XmExchange">
select * from XM.xm_exchange res
select * from xm_exchange res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmExchange" resultType="com.xm.core.entity.XmExchange">
select * from XM.xm_exchange res
select * from xm_exchange res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_exchange res
select * from xm_exchange res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmExchange" resultType="long">
select count(1) from XM.xm_exchange res
select count(1) from xm_exchange res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmExchange" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_exchange(
insert into xm_exchange(
<include refid="columns"/>
) values (
#{taskId},#{taskName},#{projectId},#{remark},#{id},#{pid},#{cuserid},#{cusername},#{ctime},#{cbranchId},#{adopt},#{adoptUserid},#{adoptUsername},#{adoptTime},#{closed},#{puserid},#{pusername},#{premark},#{notifyUserids},#{notifyChannels},#{notifyUsernames},#{cuserHeadImg},#{replyType}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmExchange">
delete from XM.xm_exchange res
delete from xm_exchange res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmExchange">
delete from XM.xm_exchange
delete from xm_exchange
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmExchange">
update XM.xm_exchange
update xm_exchange
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmExchange">
update XM.xm_exchange
update xm_exchange
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_exchange
update xm_exchange
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_exchange
delete from xm_exchange
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

32
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmFileMapper.xml

@ -11,7 +11,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_file_process_approva (
insert into xm_file_process_approva (
id,file_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 (
#{id},#{fileId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -21,7 +21,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_file b ,XM.xm_file_process_approva pa
update xm_file b ,XM.xm_file_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>
@ -41,13 +41,13 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_file_process_approva pa set pa.flow_state='2'
update xm_file_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_file
delete from xm_file
where biz_proc_inst_id=#{procInstId}
</delete>
@ -59,7 +59,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_file res left join XM.xm_file_process_approva pa on res.id=pa.file_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_file res left join xm_file_process_approva pa on res.id=pa.file_id and res.biz_proc_inst_id=pa.proc_inst_id
<where>
<if test="ids != null"> and
@ -75,7 +75,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmFile" resultType="com.xm.core.entity.XmFile">
select * from XM.xm_file res
select * from xm_file res
<where>
<include refid="where"/>
</where>
@ -83,27 +83,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmFile" resultType="com.xm.core.entity.XmFile">
select * from XM.xm_file res
select * from xm_file res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_file res
select * from xm_file res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmFile" resultType="long">
select count(1) from XM.xm_file res
select count(1) from xm_file res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmFile" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_file(
insert into xm_file(
<include refid="columns"/>
) values (
#{id},#{name},#{projectId},#{projectName},#{description},#{createUserid},#{createUsername},#{createTime},#{bizProcInstId},#{bizFlowState}
@ -112,7 +112,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmFile">
delete from XM.xm_file res
delete from xm_file res
<where>
<include refid="where"/>
</where>
@ -120,13 +120,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmFile">
delete from XM.xm_file
delete from xm_file
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmFile">
update XM.xm_file
update xm_file
<set>
<include refid="someFieldSet"/>
</set>
@ -135,7 +135,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmFile">
update XM.xm_file
update xm_file
<set>
<include refid="set"/>
</set>
@ -150,7 +150,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_file
update xm_file
set
<include refid="batchSet"/>
where id = #{item.id}
@ -158,7 +158,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_file
delete from xm_file
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

38
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMapper.xml

@ -11,7 +11,7 @@
{call load_tasks_to_xm_iteration_state(#{inIterationId,mode=IN})}
</update>
<select id="selectListMapByWhereWithState" parameterType="HashMap" resultType="HashMap">
select res.*, s.* from XM.xm_iteration res left join XM.xm_iteration_state s on res.id=s.iteration_id
select res.*, s.* from xm_iteration res left join xm_iteration_state s on res.id=s.iteration_id
<where>
<if test="ids != null"> and
id in
@ -25,7 +25,7 @@
<if test=" onlineTimeEnd !=null "> and res.online_time &lt; #{onlineTimeEnd} </if>
<include refid="where"/>
<if test=" ( menuId != null and menuId !='')">
and exists ( select 1 from XM.xm_iteration_menu im where im.iteration_id=res.id and im.menu_id=#{menuId}
and exists ( select 1 from xm_iteration_menu im where im.iteration_id=res.id and im.menu_id=#{menuId}
<if test="productId != null and productId !='' "> and im.product_id=#{productId} </if>
)
</if>
@ -36,7 +36,7 @@
)
</if>
<if test=" projectId !=null and projectId!=''">
and exists( select 1 from XM.xm_iteration_product_link ipl inner join XM.xm_product_project_link ppl
and exists( select 1 from xm_iteration_product_link ipl inner join xm_product_project_link ppl
on ipl.product_id=ppl.product_id
where ppl.project_id=#{projectId} and ipl.iteration_id =res.id
<if test=" productId != null and productId !='' "> and ipl.product_id=#{productId}</if>
@ -44,7 +44,7 @@
</if>
<if test="compete !=null and compete!=''">
and ( res.admin_userid=#{compete}
or exists (select 1 from XM.xm_iteration_menu im left join xm.xm_menu m on im.product_id=m.product_id where m.mm_userid=#{compete} and im.iteration_id=res.id)
or exists (select 1 from xm_iteration_menu im left join xm_menu m on im.product_id=m.product_id where m.mm_userid=#{compete} and im.iteration_id=res.id)
)
</if>
@ -57,7 +57,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_iteration res
select * from xm_iteration res
<where>
<if test="ids != null"> and
id in
@ -71,7 +71,7 @@
<if test=" onlineTimeEnd !=null "> and res.online_time &lt; #{onlineTimeEnd} </if>
<include refid="where"/>
<if test=" ( menuId != null and menuId !='')">
and exists ( select 1 from XM.xm_iteration_menu im where im.iteration_id=res.id and im.menu_id=#{menuId}
and exists ( select 1 from xm_iteration_menu im where im.iteration_id=res.id and im.menu_id=#{menuId}
<if test="productId != null and productId !='' "> and im.product_id=#{productId} </if>
)
</if>
@ -82,7 +82,7 @@
)
</if>
<if test=" projectId !=null and projectId!=''">
and exists( select 1 from XM.xm_iteration_product_link ipl inner join XM.xm_product_project_link ppl
and exists( select 1 from xm_iteration_product_link ipl inner join xm_product_project_link ppl
on ipl.product_id=ppl.product_id
where ppl.project_id=#{projectId} and ipl.iteration_id =res.id
<if test=" productId != null and productId !='' "> and ipl.product_id=#{productId}</if>
@ -90,7 +90,7 @@
</if>
<if test="compete !=null and compete!=''">
and ( res.admin_userid=#{compete}
or exists (select 1 from XM.xm_iteration_menu im left join xm.xm_menu m on im.product_id=m.product_id where m.mm_userid=#{compete} and im.iteration_id=res.id)
or exists (select 1 from xm_iteration_menu im left join xm_menu m on im.product_id=m.product_id where m.mm_userid=#{compete} and im.iteration_id=res.id)
)
</if>
<if test="key != null and key !='' "> and res.iteration_name like #{key} </if>
@ -99,7 +99,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmIteration" resultType="com.xm.core.entity.XmIteration">
select * from XM.xm_iteration res
select * from xm_iteration res
<where>
<include refid="where"/>
</where>
@ -107,27 +107,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmIteration" resultType="com.xm.core.entity.XmIteration">
select * from XM.xm_iteration res
select * from xm_iteration res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_iteration res
select * from xm_iteration res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmIteration" resultType="long">
select count(1) from XM.xm_iteration res
select count(1) from xm_iteration res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmIteration" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_iteration(
insert into xm_iteration(
<include refid="columns"/>
) values (
#{id},#{branchId},#{iterationName},#{startTime},#{endTime},#{onlineTime},#{pid},#{adminUserid},#{adminUsername},#{ctime},#{budgetCost},#{budgetWorkload},#{seqNo},#{istatus},#{cuserid},#{cusername},#{remark},#{iphase}
@ -136,7 +136,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmIteration">
delete from XM.xm_iteration
delete from xm_iteration
<where>
1=2
</where>
@ -144,13 +144,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmIteration">
delete from XM.xm_iteration
delete from xm_iteration
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmIteration">
update XM.xm_iteration
update xm_iteration
<set>
<include refid="someFieldSet"/>
</set>
@ -159,7 +159,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmIteration">
update XM.xm_iteration
update xm_iteration
<set>
<include refid="set"/>
</set>
@ -174,7 +174,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_iteration
update xm_iteration
set
<include refid="batchSet"/>
where id = #{item.id}
@ -182,7 +182,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_iteration
delete from xm_iteration
where
(id)
in

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMenuMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select res.*,m.menu_name,m.seq_no,m.pmenu_id,m.mm_userid,m.mm_username from XM.xm_iteration_menu res left join XM.xm_menu m on m.menu_id=res.menu_id
select res.*,m.menu_name,m.seq_no,m.pmenu_id,m.mm_userid,m.mm_username from xm_iteration_menu res left join xm_menu m on m.menu_id=res.menu_id
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmIterationMenu" resultType="com.xm.core.entity.XmIterationMenu">
select * from XM.xm_iteration_menu res
select * from xm_iteration_menu res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmIterationMenu" resultType="com.xm.core.entity.XmIterationMenu">
select * from XM.xm_iteration_menu res
select * from xm_iteration_menu res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_iteration_menu res
select * from xm_iteration_menu res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmIterationMenu" resultType="long">
select count(1) from XM.xm_iteration_menu res
select count(1) from xm_iteration_menu res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmIterationMenu" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_iteration_menu(
insert into xm_iteration_menu(
<include refid="columns"/>
) values (
#{id},#{iterationId},#{menuId},#{productId},#{ctime},#{relStatus},#{hasTask},#{cuserid},#{cusername}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmIterationMenu">
delete from XM.xm_iteration_menu res
delete from xm_iteration_menu res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmIterationMenu">
delete from XM.xm_iteration_menu
delete from xm_iteration_menu
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmIterationMenu">
update XM.xm_iteration_menu
update xm_iteration_menu
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmIterationMenu">
update XM.xm_iteration_menu
update xm_iteration_menu
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_iteration_menu
update xm_iteration_menu
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_iteration_menu
delete from xm_iteration_menu
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

22
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationProductLinkMapper.xml

@ -36,7 +36,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmIterationProductLink" resultType="com.xm.core.entity.XmIterationProductLink">
select * from XM.xm_iteration_product_link res
select * from xm_iteration_product_link res
<where>
<include refid="where"/>
</where>
@ -44,7 +44,7 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmIterationProductLink" resultType="com.xm.core.entity.XmIterationProductLink">
select * from XM.xm_iteration_product_link res
select * from xm_iteration_product_link res
where
res.iteration_id = #{iterationId}
and res.product_id = #{productId}
@ -52,21 +52,21 @@
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_iteration_product_link res
select * from xm_iteration_product_link res
where
res.iteration_id = #{iterationId}
and res.product_id = #{productId}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmIterationProductLink" resultType="long">
select count(1) from XM.xm_iteration_product_link res
select count(1) from xm_iteration_product_link res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键iteration_id,product_id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmIterationProductLink" useGeneratedKeys="false" >
insert into XM.xm_iteration_product_link(
insert into xm_iteration_product_link(
<include refid="columns"/>
) values (
#{iterationId},#{productId},#{ctime},#{cuserid},#{cusername},#{linkStatus}
@ -75,7 +75,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmIterationProductLink">
delete from XM.xm_iteration_product_link
delete from xm_iteration_product_link
<where>
1=2
</where>
@ -83,13 +83,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmIterationProductLink">
delete from XM.xm_iteration_product_link
delete from xm_iteration_product_link
where iteration_id = #{iterationId} and product_id = #{productId}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmIterationProductLink">
update XM.xm_iteration_product_link
update xm_iteration_product_link
<set>
<include refid="someFieldSet"/>
</set>
@ -98,7 +98,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmIterationProductLink">
update XM.xm_iteration_product_link
update xm_iteration_product_link
<set>
<include refid="set"/>
</set>
@ -113,7 +113,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_iteration_product_link
update xm_iteration_product_link
set
<include refid="batchSet"/>
where iteration_id = #{item.iterationId} and product_id = #{item.productId}
@ -121,7 +121,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_iteration_product_link
delete from xm_iteration_product_link
where
(iteration_id, product_id)
in

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationStateMapper.xml

@ -17,7 +17,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_iteration_state res
select * from xm_iteration_state res
<where>
<if test="ids != null"> and
id in
@ -32,7 +32,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmIterationState" resultType="com.xm.core.entity.XmIterationState">
select * from XM.xm_iteration_state res
select * from xm_iteration_state res
<where>
<include refid="where"/>
</where>
@ -40,27 +40,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmIterationState" resultType="com.xm.core.entity.XmIterationState">
select * from XM.xm_iteration_state res
select * from xm_iteration_state res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_iteration_state res
select * from xm_iteration_state res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmIterationState" resultType="long">
select count(1) from XM.xm_iteration_state res
select count(1) from xm_iteration_state res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmIterationState" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_iteration_state(
insert into xm_iteration_state(
<include refid="columns"/>
) values (
#{id},#{distBudgetCost},#{distBudgetWorkload},#{actCost},#{actWorkload},#{actStaffNum},#{finishRate},#{testCases},#{execCases},#{designCases},#{finishCases},#{projectCnt},#{productCnt},#{menuCnt},#{taskCnt},#{finishTaskCnt},#{calcTime},#{iterationName},#{budgetCost},#{budgetWorkload},#{iterationId},#{bizDate},#{closedBugCnt},#{resolvedBugCnt},#{activeBugCnt},#{confirmedBugCnt},#{bugCnt}
@ -69,7 +69,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmIterationState">
delete from XM.xm_iteration_state res
delete from xm_iteration_state res
<where>
<include refid="where"/>
</where>
@ -77,13 +77,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmIterationState">
delete from XM.xm_iteration_state
delete from xm_iteration_state
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmIterationState">
update XM.xm_iteration_state
update xm_iteration_state
<set>
<include refid="someFieldSet"/>
</set>
@ -92,7 +92,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmIterationState">
update XM.xm_iteration_state
update xm_iteration_state
<set>
<include refid="set"/>
</set>
@ -107,7 +107,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_iteration_state
update xm_iteration_state
set
<include refid="batchSet"/>
where id = #{item.id}
@ -115,7 +115,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_iteration_state
delete from xm_iteration_state
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuExchangeMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu_exchange res
select * from xm_menu_exchange res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmMenuExchange" resultType="com.xm.core.entity.XmMenuExchange">
select * from XM.xm_menu_exchange res
select * from xm_menu_exchange res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmMenuExchange" resultType="com.xm.core.entity.XmMenuExchange">
select * from XM.xm_menu_exchange res
select * from xm_menu_exchange res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu_exchange res
select * from xm_menu_exchange res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmMenuExchange" resultType="long">
select count(1) from XM.xm_menu_exchange res
select count(1) from xm_menu_exchange res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmMenuExchange" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_menu_exchange(
insert into xm_menu_exchange(
<include refid="columns"/>
) values (
#{menuId},#{menuName},#{productId},#{remark},#{id},#{pid},#{cuserid},#{cusername},#{ctime},#{cbranchId},#{adopt},#{adoptUserid},#{adoptUsername},#{adoptTime},#{closed},#{puserid},#{pusername},#{premark},#{notifyUserids},#{notifyChannels},#{notifyUsernames},#{cuserHeadImg},#{replyType}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmMenuExchange">
delete from XM.xm_menu_exchange res
delete from xm_menu_exchange res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmMenuExchange">
delete from XM.xm_menu_exchange
delete from xm_menu_exchange
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmMenuExchange">
update XM.xm_menu_exchange
update xm_menu_exchange
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmMenuExchange">
update XM.xm_menu_exchange
update xm_menu_exchange
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_menu_exchange
update xm_menu_exchange
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_menu_exchange
delete from xm_menu_exchange
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

56
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml

@ -7,8 +7,8 @@
<!--请在此区域添加自定义函数-->
<select id="selectExistIterationMenus" parameterType="HashMap" resultType="com.xm.core.entity.XmMenu">
select * from xm.xm_menu res
where exists (select 1 from xm.xm_iteration_menu im where im.menu_id in
select * from xm_menu res
where exists (select 1 from xm_iteration_menu im where im.menu_id in
<foreach collection="menuIds" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
@ -19,7 +19,7 @@
where t.menu_id=#{menuId} and te.status !='8' and te.status !='7'
</select>
<select id="selectListMapByWhereWithState" parameterType="HashMap" resultType="HashMap">
select res.*,s.* from XM.xm_menu res left join XM.xm_menu_state s on res.menu_id=s.menu_id
select res.*,s.* from xm_menu res left join xm_menu_state s on res.menu_id=s.menu_id
<where>
<if test="ids != null"> and
menu_id in
@ -29,23 +29,23 @@
</if>
<include refid="where"/>
<if test=' iterationFilterType=="join" '>
and exists ( select 1 from XM.xm_iteration_menu im where im.menu_id=res.menu_id
and exists ( select 1 from xm_iteration_menu im where im.menu_id=res.menu_id
<if test="iterationId!=null"> and im.iteration_id=#{iterationId}</if>
)
</if>
<if test='iterationFilterType=="not-join"'>
and not exists ( select 1 from XM.xm_iteration_menu im where im.menu_id=res.menu_id)
and not exists ( select 1 from xm_iteration_menu im where im.menu_id=res.menu_id)
</if>
<if test=' taskFilterType!=null and taskFilterType!="" '>
and <if test='taskFilterType=="not-join"'> not </if>
exists ( select 1 from XM.xm_task t where t.menu_id=res.menu_id)
exists ( select 1 from xm_task t where t.menu_id=res.menu_id)
</if>
<if test=' projectId !=null and projectId!="" and ( taskFilterType==null or taskFilterType=="" )'>
and exists ( select 1 from XM.xm_task t where t.menu_id =res.menu_id and t.project_id=#{projectId})
and exists ( select 1 from xm_task t where t.menu_id =res.menu_id and t.project_id=#{projectId})
</if>
<if test="compete !=null and compete!=''">
and ( exists ( select 1 from XM.xm_menu m1 where m.mm_userid=#{compete} and m.product_id=res.product_id)
and ( exists ( select 1 from xm_menu m1 where m.mm_userid=#{compete} and m.product_id=res.product_id)
or exists ( select 1 from xm_product p where p.pm_userid=#{compete} and res.product_id=p.id)
)
</if>
@ -54,7 +54,7 @@
order by res.seq_no asc
</select>
<select id="selectListMapByWhereWithPlan" parameterType="HashMap" resultType="HashMap">
select res.*,plan.* from XM.xm_menu res left join XM.xm_menu_plan plan on res.menu_id=plan.menu_id and plan.project_id=#{projectId}
select res.*,plan.* from xm_menu res left join xm_menu_plan plan on res.menu_id=plan.menu_id and plan.project_id=#{projectId}
<where>
<if test="ids != null"> and
menu_id in
@ -64,23 +64,23 @@
</if>
<include refid="where"/>
<if test=' iterationFilterType=="join" '>
and exists ( select 1 from XM.xm_iteration_menu im where im.menu_id=res.menu_id
and exists ( select 1 from xm_iteration_menu im where im.menu_id=res.menu_id
<if test="iterationId!=null"> and im.iteration_id=#{iterationId}</if>
)
</if>
<if test='iterationFilterType=="not-join"'>
and not exists ( select 1 from XM.xm_iteration_menu im where im.menu_id=res.menu_id)
and not exists ( select 1 from xm_iteration_menu im where im.menu_id=res.menu_id)
</if>
<if test=' taskFilterType!=null and taskFilterType!="" '>
and <if test='taskFilterType=="not-join"'> not </if>
exists ( select 1 from XM.xm_task t where t.menu_id=res.menu_id)
exists ( select 1 from xm_task t where t.menu_id=res.menu_id)
</if>
<if test=' projectId !=null and projectId!="" and ( taskFilterType==null or taskFilterType=="" )'>
and exists ( select 1 from XM.xm_task t where t.menu_id =res.menu_id and t.project_id=#{projectId})
and exists ( select 1 from xm_task t where t.menu_id =res.menu_id and t.project_id=#{projectId})
</if>
<if test="compete !=null and compete!=''">
and ( exists ( select 1 from XM.xm_menu m1 where m.mm_userid=#{compete} and m.product_id=res.product_id)
and ( exists ( select 1 from xm_menu m1 where m.mm_userid=#{compete} and m.product_id=res.product_id)
or exists ( select 1 from xm_product p where p.pm_userid=#{compete} and res.product_id=p.id)
)
</if>
@ -96,7 +96,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu res
select * from xm_menu res
<where>
<if test="ids != null"> and
menu_id in
@ -107,11 +107,11 @@
<include refid="where"/>
<if test=' iterationFilterType!=null and iterationFilterType!=""'>
and <if test='iterationFilterType=="not-join"'> not </if>
exists ( select 1 from XM.xm_iteration_menu im where im.menu_id=res.menu_id)
exists ( select 1 from xm_iteration_menu im where im.menu_id=res.menu_id)
</if>
<if test=' taskFilterType!=null and taskFilterType!="" '>
and <if test='taskFilterType=="not-join"'> not </if>
exists ( select 1 from XM.xm_task t where t.menu_id=res.menu_id)
exists ( select 1 from xm_task t where t.menu_id=res.menu_id)
</if>
<if test="key != null and key !='' "> and res.menu_name like #{key} </if>
</where>
@ -119,7 +119,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmMenu" resultType="com.xm.core.entity.XmMenu">
select * from XM.xm_menu res
select * from xm_menu res
<where>
<include refid="where"/>
</where>
@ -127,27 +127,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmMenu" resultType="com.xm.core.entity.XmMenu">
select * from XM.xm_menu res
select * from xm_menu res
where
res.menu_id = #{menuId}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu res
select * from xm_menu res
where
res.menu_id = #{menuId}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmMenu" resultType="long">
select count(1) from XM.xm_menu res
select count(1) from xm_menu res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键menu_id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmMenu" useGeneratedKeys="false" keyProperty="menu_id">
insert into XM.xm_menu(
insert into xm_menu(
<include refid="columns"/>
) values (
#{menuId},#{menuName},#{pmenuId},#{productId},#{remark},#{status},#{online},#{demandUrl},#{codeUrl},#{designUrl},#{docUrl},#{helpUrl},#{operDocUrl},#{seqNo},#{mmUserid},#{mmUsername},#{ctime}
@ -156,7 +156,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmMenu">
delete from XM.xm_menu
delete from xm_menu
<where>
1=2
</where>
@ -164,13 +164,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmMenu">
delete from XM.xm_menu
delete from xm_menu
where menu_id = #{menuId}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmMenu">
update XM.xm_menu
update xm_menu
<set>
<include refid="someFieldSet"/>
</set>
@ -179,7 +179,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmMenu">
update XM.xm_menu
update xm_menu
<set>
<include refid="set"/>
</set>
@ -194,7 +194,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_menu
update xm_menu
set
<include refid="batchSet"/>
where menu_id = #{item.menuId}
@ -202,7 +202,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_menu
delete from xm_menu
where
(menu_id)
in

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuPlanMapper.xml

@ -16,7 +16,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu_plan res
select * from xm_menu_plan res
<where>
<if test="ids != null"> and
id in
@ -31,7 +31,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmMenuPlan" resultType="com.xm.core.entity.XmMenuPlan">
select * from XM.xm_menu_plan res
select * from xm_menu_plan res
<where>
<include refid="where"/>
</where>
@ -39,27 +39,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmMenuPlan" resultType="com.xm.core.entity.XmMenuPlan">
select * from XM.xm_menu_plan res
select * from xm_menu_plan res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu_plan res
select * from xm_menu_plan res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmMenuPlan" resultType="long">
select count(1) from XM.xm_menu_plan res
select count(1) from xm_menu_plan res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmMenuPlan" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_menu_plan(
insert into xm_menu_plan(
<include refid="columns"/>
) values (
#{projectId},#{id},#{projectName},#{menuId},#{planStartTime},#{planEndTime},#{actStartTime},#{actEndTime},#{planWorkload},#{actWorkload},#{planCostAmount},#{actCostAmount},#{finishRate},#{demandRate},#{designRate},#{devRate},#{uatRate},#{sitRate},#{onlineStatus},#{onlineTime},#{planStatus},#{chargeUserid},#{chargeUsername},#{menuStatus},#{ctime},#{ltime},#{cuserid},#{cusername},#{calcTime},#{menuName},#{planWorkhours},#{planWorkerCnt},#{closedBugs},#{activeBugs},#{confirmedBugs},#{resolvedBugs},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{taskCnt},#{finishTaskCnt},#{productId},#{productName},#{bugCnt}
@ -68,7 +68,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmMenuPlan">
delete from XM.xm_menu_plan res
delete from xm_menu_plan res
<where>
<include refid="where"/>
</where>
@ -76,13 +76,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmMenuPlan">
delete from XM.xm_menu_plan
delete from xm_menu_plan
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmMenuPlan">
update XM.xm_menu_plan
update xm_menu_plan
<set>
<include refid="someFieldSet"/>
</set>
@ -91,7 +91,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmMenuPlan">
update XM.xm_menu_plan
update xm_menu_plan
<set>
<include refid="set"/>
</set>
@ -106,7 +106,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_menu_plan
update xm_menu_plan
set
<include refid="batchSet"/>
where id = #{item.id}
@ -114,7 +114,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_menu_plan
delete from xm_menu_plan
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuStateMapper.xml

@ -17,7 +17,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu_state res
select * from xm_menu_state res
<where>
<if test="ids != null"> and
id in
@ -32,7 +32,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmMenuState" resultType="com.xm.core.entity.XmMenuState">
select * from XM.xm_menu_state res
select * from xm_menu_state res
<where>
<include refid="where"/>
</where>
@ -40,27 +40,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmMenuState" resultType="com.xm.core.entity.XmMenuState">
select * from XM.xm_menu_state res
select * from xm_menu_state res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu_state res
select * from xm_menu_state res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmMenuState" resultType="long">
select count(1) from XM.xm_menu_state res
select count(1) from xm_menu_state res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmMenuState" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_menu_state(
insert into xm_menu_state(
<include refid="columns"/>
) values (
#{id},#{menuId},#{planStartTime},#{planEndTime},#{actStartTime},#{actEndTime},#{planWorkload},#{actWorkload},#{planCostAmount},#{actCostAmount},#{finishRate},#{demandRate},#{designRate},#{devRate},#{uatRate},#{sitRate},#{onlineStatus},#{onlineTime},#{planStatus},#{chargeUserid},#{chargeUsername},#{menuStatus},#{ctime},#{ltime},#{cuserid},#{cusername},#{calcTime},#{menuName},#{planWorkhours},#{planWorkerCnt},#{closedBugs},#{activeBugs},#{confirmedBugs},#{resolvedBugs},#{productId},#{productName},#{testCases},#{execCases},#{designCases},#{finishCases},#{projectCnt},#{iterationCnt},#{taskCnt},#{finishTaskCnt},#{bizDate},#{bugCnt}
@ -69,7 +69,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmMenuState">
delete from XM.xm_menu_state res
delete from xm_menu_state res
<where>
<include refid="where"/>
</where>
@ -77,13 +77,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmMenuState">
delete from XM.xm_menu_state
delete from xm_menu_state
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmMenuState">
update XM.xm_menu_state
update xm_menu_state
<set>
<include refid="someFieldSet"/>
</set>
@ -92,7 +92,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmMenuState">
update XM.xm_menu_state
update xm_menu_state
<set>
<include refid="set"/>
</set>
@ -107,7 +107,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_menu_state
update xm_menu_state
set
<include refid="batchSet"/>
where id = #{item.id}
@ -115,7 +115,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_menu_state
delete from xm_menu_state
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuTemplateMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu_template res
select * from xm_menu_template res
<where>
<if test="ids != null"> and
menu_id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmMenuTemplate" resultType="com.xm.core.entity.XmMenuTemplate">
select * from XM.xm_menu_template res
select * from xm_menu_template res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmMenuTemplate" resultType="com.xm.core.entity.XmMenuTemplate">
select * from XM.xm_menu_template res
select * from xm_menu_template res
where
res.menu_id = #{menuId}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_menu_template res
select * from xm_menu_template res
where
res.menu_id = #{menuId}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmMenuTemplate" resultType="long">
select count(1) from XM.xm_menu_template res
select count(1) from xm_menu_template res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键menu_id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmMenuTemplate" useGeneratedKeys="false" keyProperty="menu_id">
insert into XM.xm_menu_template(
insert into xm_menu_template(
<include refid="columns"/>
) values (
#{menuId},#{menuName},#{pmenuId},#{productId},#{remark},#{status},#{online},#{demandUrl},#{codeUrl},#{designUrl},#{docUrl},#{helpUrl},#{operDocUrl},#{seqNo}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmMenuTemplate">
delete from XM.xm_menu_template res
delete from xm_menu_template res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmMenuTemplate">
delete from XM.xm_menu_template
delete from xm_menu_template
where menu_id = #{menuId}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmMenuTemplate">
update XM.xm_menu_template
update xm_menu_template
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmMenuTemplate">
update XM.xm_menu_template
update xm_menu_template
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_menu_template
update xm_menu_template
set
<include refid="batchSet"/>
where menu_id = #{item.menuId}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_menu_template
delete from xm_menu_template
where menu_id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.menuId }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMyFocusMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_my_focus res
select * from xm_my_focus res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmMyFocus" resultType="com.xm.core.entity.XmMyFocus">
select * from XM.xm_my_focus res
select * from xm_my_focus res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmMyFocus" resultType="com.xm.core.entity.XmMyFocus">
select * from XM.xm_my_focus res
select * from xm_my_focus res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_my_focus res
select * from xm_my_focus res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmMyFocus" resultType="long">
select count(1) from XM.xm_my_focus res
select count(1) from xm_my_focus res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmMyFocus" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_my_focus(
insert into xm_my_focus(
<include refid="columns"/>
) values (
#{userid},#{username},#{taskId},#{focusType},#{projectId},#{id},#{projectName},#{taskName}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmMyFocus">
delete from XM.xm_my_focus
delete from xm_my_focus
<where>
<if test="userid != null and userid != ''"> and userid = #{userid} </if>
<if test="taskId != null and taskId != ''"> and task_id = #{taskId} </if>
@ -78,13 +78,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmMyFocus">
delete from XM.xm_my_focus
delete from xm_my_focus
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmMyFocus">
update XM.xm_my_focus
update xm_my_focus
<set>
<include refid="someFieldSet"/>
</set>
@ -93,7 +93,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmMyFocus">
update XM.xm_my_focus
update xm_my_focus
<set>
<include refid="set"/>
</set>
@ -108,7 +108,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_my_focus
update xm_my_focus
set
<include refid="batchSet"/>
where id = #{item.id}
@ -116,7 +116,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_my_focus
delete from xm_my_focus
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

34
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml

@ -7,7 +7,7 @@
<!--请在此区域添加自定义函数-->
<select id="selectListMapByWhereWithState" parameterType="HashMap" resultType="HashMap">
select res.*,s.* from XM.xm_product res left join XM.xm_product_state s on res.id=s.product_id
select res.*,s.* from xm_product res left join xm_product_state s on res.id=s.product_id
<where>
<if test="ids != null"> and
id in
@ -17,7 +17,7 @@
</if>
<include refid="where"/>
<if test=" projectId !=null and projectId!=''">
and exists( select 1 from XM.xm_product_project_link ppl
and exists( select 1 from xm_product_project_link ppl
where ppl.project_id=#{projectId} and ppl.product_id=res.id
)
</if>
@ -25,7 +25,7 @@
and exists( select 1 from xm_iteration_product_link ipl where ipl.product_id =res.id and ipl.iteration_id=#{iterationId} )
</if>
<if test="compete !=null and compete!=''">
and ( exists ( select 1 from xm_project_group_user gu inner join XM.xm_task t on gu.project_id=t.project_id and t.product_id=res.id where gu.userid=#{compete} and t.product_id=res.id )
and ( exists ( select 1 from xm_project_group_user gu inner join xm_task t on gu.project_id=t.project_id and t.product_id=res.id where gu.userid=#{compete} and t.product_id=res.id )
or res.pm_userid=#{compete}
or exists ( select 1 from xm_menu m where m.mm_userid=#{compete} and m.product_id=res.id)
)
@ -40,7 +40,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_product res
select * from xm_product res
<where>
<if test="ids != null"> and
id in
@ -51,12 +51,12 @@
<include refid="where"/>
<if test="key != null and key !='' "> and res.product_name like #{key} </if>
<if test=" projectId !=null and projectId!=''">
and exists( select 1 from XM.xm_product_project_link ppl
and exists( select 1 from xm_product_project_link ppl
where ppl.project_id=#{projectId} and ppl.product_id=res.id
)
</if>
<if test="compete !=null and compete!=''">
and ( exists ( select 1 from xm_project_group_user gu inner join XM.xm_task t on gu.project_id=t.project_id and t.product_id=res.id where gu.userid=#{compete} and t.product_id=res.id )
and ( exists ( select 1 from xm_project_group_user gu inner join xm_task t on gu.project_id=t.project_id and t.product_id=res.id where gu.userid=#{compete} and t.product_id=res.id )
or res.pm_userid=#{compete}
or exists ( select 1 from xm_menu m where m.mm_userid=#{compete} and m.product_id=res.id)
)
@ -66,7 +66,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProduct" resultType="com.xm.core.entity.XmProduct">
select * from XM.xm_product res
select * from xm_product res
<where>
<include refid="where"/>
</where>
@ -74,27 +74,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProduct" resultType="com.xm.core.entity.XmProduct">
select * from XM.xm_product res
select * from xm_product res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_product res
select * from xm_product res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProduct" resultType="long">
select count(1) from XM.xm_product res
select count(1) from xm_product res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProduct" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_product(
insert into xm_product(
<include refid="columns"/>
) values (
#{id},#{productName},#{branchId},#{remark},#{version},#{pmUserid},#{pmUsername},#{ctime},#{deptid}
@ -103,7 +103,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProduct">
delete from XM.xm_product
delete from xm_product
<where>
1=2
</where>
@ -111,13 +111,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProduct">
delete from XM.xm_product
delete from xm_product
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProduct">
update XM.xm_product
update xm_product
<set>
<include refid="someFieldSet"/>
</set>
@ -126,7 +126,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProduct">
update XM.xm_product
update xm_product
<set>
<include refid="set"/>
</set>
@ -141,7 +141,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_product
update xm_product
set
<include refid="batchSet"/>
where id = #{item.id}
@ -149,7 +149,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_product
delete from xm_product
where
(id)
in

28
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductProjectLinkMapper.xml

@ -7,8 +7,8 @@
<!--请在此区域添加自定义函数-->
<select id="selectListByIterationId" parameterType="String" resultType="com.xm.core.entity.XmProductProjectLink">
select * from XM.xm_product_project_link res
where exists (select 1 from XM.xm_iteration_product_link ipl where ipl.iteration_id=#{iterationId} and ipl.product_id=res.product_id)
select * from xm_product_project_link res
where exists (select 1 from xm_iteration_product_link ipl where ipl.iteration_id=#{iterationId} and ipl.product_id=res.product_id)
</select>
<!--结束 自定义sql函数区域-->
@ -17,7 +17,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select res.*,prd.product_name,prj.name from XM.xm_product_project_link res
select res.*,prd.product_name,prj.name from xm_product_project_link res
inner join xm_product prd on prd.id=res.product_id inner join xm_project prj on prj.id=res.project_id
<where>
<if test="ids != null"> and
@ -33,7 +33,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProductProjectLink" resultType="com.xm.core.entity.XmProductProjectLink">
select * from XM.xm_product_project_link res
select * from xm_product_project_link res
<where>
<include refid="where"/>
</where>
@ -41,7 +41,7 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProductProjectLink" resultType="com.xm.core.entity.XmProductProjectLink">
select * from XM.xm_product_project_link res
select * from xm_product_project_link res
where
res.project_id = #{projectId}
and res.product_id = #{productId}
@ -49,21 +49,21 @@
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_product_project_link res
select * from xm_product_project_link res
where
res.project_id = #{projectId}
and res.product_id = #{productId}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProductProjectLink" resultType="long">
select count(1) from XM.xm_product_project_link res
select count(1) from xm_product_project_link res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键project_id,product_id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProductProjectLink" useGeneratedKeys="false" >
insert into XM.xm_product_project_link(
insert into xm_product_project_link(
<include refid="columns"/>
) values (
#{projectId},#{productId},#{ctime},#{cuserid},#{cusername},#{linkStatus}
@ -72,7 +72,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProductProjectLink">
delete from XM.xm_product_project_link
delete from xm_product_project_link
<where>
1=2
</where>
@ -80,13 +80,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProductProjectLink">
delete from XM.xm_product_project_link
delete from xm_product_project_link
where project_id = #{projectId} and product_id = #{productId}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProductProjectLink">
update XM.xm_product_project_link
update xm_product_project_link
<set>
<include refid="someFieldSet"/>
</set>
@ -95,7 +95,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProductProjectLink">
update XM.xm_product_project_link
update xm_product_project_link
<set>
<include refid="set"/>
</set>
@ -110,7 +110,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_product_project_link
update xm_product_project_link
set
<include refid="batchSet"/>
where project_id = #{item.projectId} and product_id = #{item.productId}
@ -118,7 +118,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_product_project_link
delete from xm_product_project_link
where
(project_id, product_id)
in

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductStateMapper.xml

@ -17,7 +17,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_product_state res
select * from xm_product_state res
<where>
<if test="ids != null"> and
id in
@ -32,7 +32,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProductState" resultType="com.xm.core.entity.XmProductState">
select * from XM.xm_product_state res
select * from xm_product_state res
<where>
<include refid="where"/>
</where>
@ -40,27 +40,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProductState" resultType="com.xm.core.entity.XmProductState">
select * from XM.xm_product_state res
select * from xm_product_state res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_product_state res
select * from xm_product_state res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProductState" resultType="long">
select count(1) from XM.xm_product_state res
select count(1) from xm_product_state res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProductState" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_product_state(
insert into xm_product_state(
<include refid="columns"/>
) values (
#{id},#{planStartTime},#{planEndTime},#{actStartTime},#{actEndTime},#{planWorkload},#{actWorkload},#{planCostAmount},#{actCostAmount},#{finishRate},#{demandRate},#{designRate},#{devRate},#{uatRate},#{sitRate},#{ctime},#{ltime},#{cuserid},#{cusername},#{calcTime},#{planWorkhours},#{planWorkerCnt},#{closedBugs},#{activeBugs},#{confirmedBugs},#{resolvedBugs},#{productId},#{productName},#{testCases},#{execCases},#{designCases},#{finishCases},#{projectCnt},#{iterationCnt},#{taskCnt},#{finishTaskCnt},#{bizDate},#{branchId},#{bugCnt}
@ -69,7 +69,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProductState">
delete from XM.xm_product_state res
delete from xm_product_state res
<where>
<include refid="where"/>
</where>
@ -77,13 +77,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProductState">
delete from XM.xm_product_state
delete from xm_product_state
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProductState">
update XM.xm_product_state
update xm_product_state
<set>
<include refid="someFieldSet"/>
</set>
@ -92,7 +92,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProductState">
update XM.xm_product_state
update xm_product_state
<set>
<include refid="set"/>
</set>
@ -107,7 +107,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_product_state
update xm_product_state
set
<include refid="batchSet"/>
where id = #{item.id}
@ -115,7 +115,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_product_state
delete from xm_product_state
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductTemplateMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_product_template res
select * from xm_product_template res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProductTemplate" resultType="com.xm.core.entity.XmProductTemplate">
select * from XM.xm_product_template res
select * from xm_product_template res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProductTemplate" resultType="com.xm.core.entity.XmProductTemplate">
select * from XM.xm_product_template res
select * from xm_product_template res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_product_template res
select * from xm_product_template res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProductTemplate" resultType="long">
select count(1) from XM.xm_product_template res
select count(1) from xm_product_template res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProductTemplate" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_product_template(
insert into xm_product_template(
<include refid="columns"/>
) values (
#{id},#{productName},#{branchId},#{remark},#{templateId},#{tcuserid},#{tcusername},#{tremark},#{tctime},#{tcbranchId},#{shareScope}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProductTemplate">
delete from XM.xm_product_template res
delete from xm_product_template res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProductTemplate">
delete from XM.xm_product_template
delete from xm_product_template
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProductTemplate">
update XM.xm_product_template
update xm_product_template
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProductTemplate">
update XM.xm_product_template
update xm_product_template
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_product_template
update xm_product_template
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_product_template
delete from xm_product_template
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectBaselineMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_baseline res
select * from xm_project_baseline res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectBaseline" resultType="com.xm.core.entity.XmProjectBaseline">
select * from XM.xm_project_baseline res
select * from xm_project_baseline res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectBaseline" resultType="com.xm.core.entity.XmProjectBaseline">
select * from XM.xm_project_baseline res
select * from xm_project_baseline res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_baseline res
select * from xm_project_baseline res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectBaseline" resultType="long">
select count(1) from XM.xm_project_baseline res
select count(1) from xm_project_baseline res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectBaseline" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_baseline(
insert into xm_project_baseline(
<include refid="columns"/>
) values (
#{id},#{code},#{name},#{xmType},#{startTime},#{endTime},#{urgent},#{priority},#{description},#{createUserid},#{createUsername},#{createTime},#{assess},#{assessRemarks},#{status},#{branchId},#{planTotalCost},#{bizProcInstId},#{bizFlowState},#{planNouserAt},#{planInnerUserAt},#{planOutUserAt},#{locked},#{baseTime},#{baseRemark},#{baselineId},#{planWorkload},#{totalReceivables},#{budgetMarginRate},#{contractAmt},#{planInnerUserPrice},#{planOutUserPrice},#{planOutUserCnt},#{planInnerUserCnt},#{planWorkingHours},#{taxRate},#{planInnerUserWorkload},#{planOutUserWorkload},#{fromTplId},#{budgetCtrl},#{deptid},#{projectId}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectBaseline">
delete from XM.xm_project_baseline
delete from xm_project_baseline
<where>
1=2
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectBaseline">
delete from XM.xm_project_baseline
delete from xm_project_baseline
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectBaseline">
update XM.xm_project_baseline
update xm_project_baseline
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectBaseline">
update XM.xm_project_baseline
update xm_project_baseline
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_baseline
update xm_project_baseline
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_baseline
delete from xm_project_baseline
where
(id)
in

32
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectEnvListMapper.xml

@ -12,7 +12,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_env_list_process_approva (
insert into xm_project_env_list_process_approva (
id,env_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 (
#{id},#{envId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -22,7 +22,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_project_env_list b ,XM.xm_project_env_list_process_approva pa
update xm_project_env_list b ,XM.xm_project_env_list_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>
@ -42,13 +42,13 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_project_env_list_process_approva pa set pa.flow_state='2'
update xm_project_env_list_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_project_env_list
delete from xm_project_env_list
where biz_proc_inst_id=#{procInstId}
</delete>
@ -58,7 +58,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_project_env_list res left join XM.xm_project_env_list_process_approva pa on res.id=pa.env_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_env_list res left join xm_project_env_list_process_approva pa on res.id=pa.env_id and res.biz_proc_inst_id=pa.proc_inst_id
<where>
<if test="ids != null"> and
@ -81,7 +81,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectEnvList" resultType="com.xm.core.entity.XmProjectEnvList">
select * from XM.xm_project_env_list res
select * from xm_project_env_list res
<where>
<include refid="where"/>
</where>
@ -89,27 +89,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectEnvList" resultType="com.xm.core.entity.XmProjectEnvList">
select * from XM.xm_project_env_list res
select * from xm_project_env_list res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_env_list res
select * from xm_project_env_list res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectEnvList" resultType="long">
select count(1) from XM.xm_project_env_list res
select count(1) from xm_project_env_list res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectEnvList" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_env_list(
insert into xm_project_env_list(
<include refid="columns"/>
) values (
#{id},#{remark},#{ipAddress},#{port},#{projectId},#{projectName},#{accessUserid},#{accessPassword},#{effect},#{accessUrl},#{webIpAddress},#{webPort},#{otherRemark},#{createUserid},#{createUsername},#{createTime},#{bizProcInstId},#{bizFlowState}
@ -118,7 +118,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectEnvList">
delete from XM.xm_project_env_list res
delete from xm_project_env_list res
<where>
<include refid="where"/>
</where>
@ -126,13 +126,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectEnvList">
delete from XM.xm_project_env_list
delete from xm_project_env_list
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectEnvList">
update XM.xm_project_env_list
update xm_project_env_list
<set>
<include refid="someFieldSet"/>
</set>
@ -141,7 +141,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectEnvList">
update XM.xm_project_env_list
update xm_project_env_list
<set>
<include refid="set"/>
</set>
@ -156,7 +156,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_env_list
update xm_project_env_list
set
<include refid="batchSet"/>
where id = #{item.id}
@ -164,7 +164,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_env_list
delete from xm_project_env_list
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

26
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupFormworkMapper.xml

@ -6,7 +6,7 @@
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<select id="selectAllGroupFormWork" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group_formwork res
select * from xm_project_group_formwork res
<where>
<if test="branchId != null and branchId != ''"> and res.branch_id = #{branchId} </if>
or res.is_pub = "1"
@ -21,7 +21,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group_formwork res
select * from xm_project_group_formwork res
<where>
<if test="ids != null"> and
id in
@ -36,7 +36,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectGroupFormwork" resultType="com.xm.core.entity.XmProjectGroupFormwork">
select * from XM.xm_project_group_formwork res
select * from xm_project_group_formwork res
<where>
<include refid="where"/>
</where>
@ -44,27 +44,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectGroupFormwork" resultType="com.xm.core.entity.XmProjectGroupFormwork">
select * from XM.xm_project_group_formwork res
select * from xm_project_group_formwork res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group_formwork res
select * from xm_project_group_formwork res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectGroupFormwork" resultType="long">
select count(1) from XM.xm_project_group_formwork res
select count(1) from xm_project_group_formwork res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectGroupFormwork" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_group_formwork(
insert into xm_project_group_formwork(
<include refid="columns"/>
) values (
#{id},#{branchId},#{groupName},#{isPub},#{pgTypeId},#{pgTypeName}
@ -73,7 +73,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectGroupFormwork">
delete from XM.xm_project_group_formwork res
delete from xm_project_group_formwork res
<where>
<include refid="where"/>
</where>
@ -81,13 +81,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectGroupFormwork">
delete from XM.xm_project_group_formwork
delete from xm_project_group_formwork
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectGroupFormwork">
update XM.xm_project_group_formwork
update xm_project_group_formwork
<set>
<include refid="someFieldSet"/>
</set>
@ -96,7 +96,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectGroupFormwork">
update XM.xm_project_group_formwork
update xm_project_group_formwork
<set>
<include refid="set"/>
</set>
@ -111,7 +111,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_group_formwork
update xm_project_group_formwork
set
<include refid="batchSet"/>
where id = #{item.id}
@ -119,7 +119,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_group_formwork
delete from xm_project_group_formwork
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

26
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupMapper.xml

@ -6,7 +6,7 @@
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<delete id="deleteByProjectId" parameterType="com.xm.core.entity.XmProjectGroup">
delete from XM.xm_project_group where project_id = #{projectId}
delete from xm_project_group where project_id = #{projectId}
</delete>
@ -17,7 +17,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group res
select * from xm_project_group res
<where>
<if test="ids != null"> and
id in
@ -32,7 +32,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectGroup" resultType="com.xm.core.entity.XmProjectGroup">
select * from XM.xm_project_group res
select * from xm_project_group res
<where>
<include refid="where"/>
</where>
@ -40,27 +40,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectGroup" resultType="com.xm.core.entity.XmProjectGroup">
select * from XM.xm_project_group res
select * from xm_project_group res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group res
select * from xm_project_group res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectGroup" resultType="long">
select count(1) from XM.xm_project_group res
select count(1) from xm_project_group res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectGroup" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_group(
insert into xm_project_group(
<include refid="columns"/>
) values (
#{id},#{groupName},#{projectId},#{pgTypeId},#{pgTypeName}
@ -69,7 +69,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectGroup">
delete from XM.xm_project_group res
delete from xm_project_group res
<where>
<include refid="where"/>
</where>
@ -77,13 +77,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectGroup">
delete from XM.xm_project_group
delete from xm_project_group
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectGroup">
update XM.xm_project_group
update xm_project_group
<set>
<include refid="someFieldSet"/>
</set>
@ -92,7 +92,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectGroup">
update XM.xm_project_group
update xm_project_group
<set>
<include refid="set"/>
</set>
@ -107,7 +107,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_group
update xm_project_group
set
<include refid="batchSet"/>
where id = #{item.id}
@ -115,7 +115,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_group
delete from xm_project_group
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupStateMapper.xml

@ -17,7 +17,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group_state res
select * from xm_project_group_state res
<where>
<if test="ids != null"> and
id in
@ -32,7 +32,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectGroupState" resultType="com.xm.core.entity.XmProjectGroupState">
select * from XM.xm_project_group_state res
select * from xm_project_group_state res
<where>
<include refid="where"/>
</where>
@ -40,27 +40,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectGroupState" resultType="com.xm.core.entity.XmProjectGroupState">
select * from XM.xm_project_group_state res
select * from xm_project_group_state res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group_state res
select * from xm_project_group_state res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectGroupState" resultType="long">
select count(1) from XM.xm_project_group_state res
select count(1) from xm_project_group_state res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectGroupState" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_group_state(
insert into xm_project_group_state(
<include refid="columns"/>
) values (
#{id},#{planStartTime},#{planEndTime},#{actStartTime},#{actEndTime},#{planWorkload},#{actWorkload},#{planCostAmount},#{actCostAmount},#{finishRate},#{demandRate},#{designRate},#{devRate},#{uatRate},#{sitRate},#{ctime},#{calcTime},#{planWorkhours},#{planWorkerCnt},#{closedBugs},#{activeBugs},#{confirmedBugs},#{resolvedBugs},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{taskCnt},#{finishTaskCnt},#{bizDate},#{bugCnt},#{groupId},#{projectId},#{projectName},#{groupName}
@ -69,7 +69,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectGroupState">
delete from XM.xm_project_group_state res
delete from xm_project_group_state res
<where>
<include refid="where"/>
</where>
@ -77,13 +77,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectGroupState">
delete from XM.xm_project_group_state
delete from xm_project_group_state
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectGroupState">
update XM.xm_project_group_state
update xm_project_group_state
<set>
<include refid="someFieldSet"/>
</set>
@ -92,7 +92,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectGroupState">
update XM.xm_project_group_state
update xm_project_group_state
<set>
<include refid="set"/>
</set>
@ -107,7 +107,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_group_state
update xm_project_group_state
set
<include refid="batchSet"/>
where id = #{item.id}
@ -115,7 +115,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_group_state
delete from xm_project_group_state
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

32
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml

@ -6,11 +6,11 @@
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<delete id="deleteByGroupId" parameterType="com.xm.core.entity.XmProjectGroupUser">
delete from XM.xm_project_group_user where group_id = #{groupId}
delete from xm_project_group_user where group_id = #{groupId}
</delete>
<select id="selectListByWhereHead" parameterType="com.xm.core.entity.XmProjectGroupUser" resultType="com.xm.core.entity.XmProjectGroupUser">
select * from XM.xm_project_group_user res
select * from xm_project_group_user res
<where>
<include refid="where"/>
</where>
@ -19,9 +19,9 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectGroupUserListByProjectId" parameterType="String" resultType="com.xm.core.entity.XmProjectGroupUser">
select * from XM.xm_project_group_user res
select * from xm_project_group_user res
<where>
exists( select 1 from XM.xm_project_group g where g.id=res.group_id and res.project_id=#{projectId})
exists( select 1 from xm_project_group g where g.id=res.group_id and res.project_id=#{projectId})
</where>
</select>
@ -31,7 +31,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group_user res
select * from xm_project_group_user res
<where>
<if test="ids != null"> and
id in
@ -46,7 +46,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectGroupUser" resultType="com.xm.core.entity.XmProjectGroupUser">
select * from XM.xm_project_group_user res
select * from xm_project_group_user res
<where>
<include refid="where"/>
</where>
@ -54,27 +54,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectGroupUser" resultType="com.xm.core.entity.XmProjectGroupUser">
select * from XM.xm_project_group_user res
select * from xm_project_group_user res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_group_user res
select * from xm_project_group_user res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectGroupUser" resultType="long">
select count(1) from XM.xm_project_group_user res
select count(1) from xm_project_group_user res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectGroupUser" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_group_user(
insert into xm_project_group_user(
<include refid="columns"/>
) values (
#{joinTime},#{id},#{groupId},#{userid},#{username},#{isHead},#{outTime},#{status},#{bizProcInstId},#{bizFlowState},#{projectId}
@ -83,7 +83,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectGroupUser">
delete from XM.xm_project_group_user res
delete from xm_project_group_user res
<where>
<include refid="where"/>
</where>
@ -91,13 +91,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectGroupUser">
delete from XM.xm_project_group_user
delete from xm_project_group_user
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectGroupUser">
update XM.xm_project_group_user
update xm_project_group_user
<set>
<include refid="someFieldSet"/>
</set>
@ -106,7 +106,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectGroupUser">
update XM.xm_project_group_user
update xm_project_group_user
<set>
<include refid="set"/>
</set>
@ -121,7 +121,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_group_user
update xm_project_group_user
set
<include refid="batchSet"/>
where id = #{item.id}
@ -129,7 +129,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_group_user
delete from xm_project_group_user
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectKpiHisMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_kpi_his res
select * from xm_project_kpi_his res
<where>
<if test="ids != null"> and
kpi_id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectKpiHis" resultType="com.xm.core.entity.XmProjectKpiHis">
select * from XM.xm_project_kpi_his res
select * from xm_project_kpi_his res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectKpiHis" resultType="com.xm.core.entity.XmProjectKpiHis">
select * from XM.xm_project_kpi_his res
select * from xm_project_kpi_his res
where
res.kpi_id = #{kpiId}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_kpi_his res
select * from xm_project_kpi_his res
where
res.kpi_id = #{kpiId}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectKpiHis" resultType="long">
select count(1) from XM.xm_project_kpi_his res
select count(1) from xm_project_kpi_his res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键kpi_id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectKpiHis" useGeneratedKeys="false" keyProperty="kpi_id">
insert into XM.xm_project_kpi_his(
insert into xm_project_kpi_his(
<include refid="columns"/>
) values (
#{projectId},#{branchId},#{kpiIndex},#{kpiName},#{maxValue},#{minValue},#{kpiId},#{score},#{scoreDate},#{bizFlowState},#{bizProcInstId},#{kpiValue},#{cdate},#{id},#{remark},#{calcType},#{nextCalcDate}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectKpiHis">
delete from XM.xm_project_kpi_his res
delete from xm_project_kpi_his res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectKpiHis">
delete from XM.xm_project_kpi_his
delete from xm_project_kpi_his
where kpi_id = #{kpiId}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectKpiHis">
update XM.xm_project_kpi_his
update xm_project_kpi_his
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectKpiHis">
update XM.xm_project_kpi_his
update xm_project_kpi_his
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_kpi_his
update xm_project_kpi_his
set
<include refid="batchSet"/>
where kpi_id = #{item.kpiId}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_kpi_his
delete from xm_project_kpi_his
where kpi_id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.kpiId }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectKpiMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_kpi res
select * from xm_project_kpi res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectKpi" resultType="com.xm.core.entity.XmProjectKpi">
select * from XM.xm_project_kpi res
select * from xm_project_kpi res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectKpi" resultType="com.xm.core.entity.XmProjectKpi">
select * from XM.xm_project_kpi res
select * from xm_project_kpi res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_kpi res
select * from xm_project_kpi res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectKpi" resultType="long">
select count(1) from XM.xm_project_kpi res
select count(1) from xm_project_kpi res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectKpi" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_kpi(
insert into xm_project_kpi(
<include refid="columns"/>
) values (
#{projectId},#{branchId},#{kpiIndex},#{kpiName},#{maxValue},#{minValue},#{id},#{score},#{scoreDate},#{bizFlowState},#{bizProcInstId},#{kpiValue},#{remark},#{calcType},#{nextCalcDate}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectKpi">
delete from XM.xm_project_kpi res
delete from xm_project_kpi res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectKpi">
delete from XM.xm_project_kpi
delete from xm_project_kpi
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectKpi">
update XM.xm_project_kpi
update xm_project_kpi
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectKpi">
update XM.xm_project_kpi
update xm_project_kpi
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_kpi
update xm_project_kpi
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_kpi
delete from xm_project_kpi
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

36
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMBudgetCostNouserMapper.xml

@ -11,7 +11,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_m_budget_cost_nouser_process_approva (
insert into xm_project_m_budget_cost_nouser_process_approva (
id,budget_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 (
#{id},#{budgetId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -21,7 +21,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_project_m_budget_cost_nouser b ,XM.xm_project_m_budget_cost_nouser_process_approva pa
update xm_project_m_budget_cost_nouser b ,XM.xm_project_m_budget_cost_nouser_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>
@ -41,18 +41,18 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_project_m_budget_cost_nouser_process_approva pa set pa.flow_state='2'
update xm_project_m_budget_cost_nouser_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_project_m_budget_cost_nouser
delete from xm_project_m_budget_cost_nouser
where biz_proc_inst_id=#{procInstId}
</delete>
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="listSum" parameterType="HashMap" resultType="HashMap">
select res.project_id,res.subject_id,res.subject_name,bizz_month,sum(res.budget_cost) as budget_cost from XM.xm_project_m_budget_cost_nouser res
select res.project_id,res.subject_id,res.subject_name,bizz_month,sum(res.budget_cost) as budget_cost from xm_project_m_budget_cost_nouser res
<where>
and res.project_id=#{projectId}
<if test="subjectId != null and subjectId !='' "> and res.subject_id =#{subjectId} </if>
@ -79,7 +79,7 @@
p.plan_working_hours
FROM
XM.xm_project p
LEFT JOIN XM.xm_project_m_budget_cost_nouser res ON p.id = res.project_id
LEFT JOIN xm_project_m_budget_cost_nouser res ON p.id = res.project_id
<where>
p.id = #{projectId}
<if test=" excludeIds !=null "> and res.id not in
@ -95,7 +95,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_project_m_budget_cost_nouser res left join XM.xm_project_m_budget_cost_nouser_process_approva pa on res.id=pa.budget_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_budget_cost_nouser res left join xm_project_m_budget_cost_nouser_process_approva pa on res.id=pa.budget_id and res.biz_proc_inst_id=pa.proc_inst_id
<where>
<if test="ids != null"> and
@ -111,7 +111,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectMBudgetCostNouser" resultType="com.xm.core.entity.XmProjectMBudgetCostNouser">
select * from XM.xm_project_m_budget_cost_nouser res
select * from xm_project_m_budget_cost_nouser res
<where>
<include refid="where"/>
</where>
@ -119,27 +119,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectMBudgetCostNouser" resultType="com.xm.core.entity.XmProjectMBudgetCostNouser">
select * from XM.xm_project_m_budget_cost_nouser res
select * from xm_project_m_budget_cost_nouser res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_m_budget_cost_nouser res
select * from xm_project_m_budget_cost_nouser res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectMBudgetCostNouser" resultType="long">
select count(1) from XM.xm_project_m_budget_cost_nouser res
select count(1) from xm_project_m_budget_cost_nouser res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectMBudgetCostNouser" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_m_budget_cost_nouser(
insert into xm_project_m_budget_cost_nouser(
<include refid="columns"/>
) values (
#{projectId},#{budgetCost},#{id},#{remark},#{subjectId},#{bizzStartDate},#{bizzEndDate},#{bizProcInstId},#{bizFlowState},#{projectPhaseId},#{costType},#{bizzMonth}
@ -148,7 +148,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectMBudgetCostNouser">
delete from XM.xm_project_m_budget_cost_nouser res
delete from xm_project_m_budget_cost_nouser res
<where>
<include refid="where"/>
</where>
@ -156,13 +156,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectMBudgetCostNouser">
delete from XM.xm_project_m_budget_cost_nouser
delete from xm_project_m_budget_cost_nouser
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectMBudgetCostNouser">
update XM.xm_project_m_budget_cost_nouser
update xm_project_m_budget_cost_nouser
<set>
<include refid="someFieldSet"/>
</set>
@ -171,7 +171,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectMBudgetCostNouser">
update XM.xm_project_m_budget_cost_nouser
update xm_project_m_budget_cost_nouser
<set>
<include refid="set"/>
</set>
@ -186,7 +186,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_m_budget_cost_nouser
update xm_project_m_budget_cost_nouser
set
<include refid="batchSet"/>
where id = #{item.id}
@ -194,7 +194,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_m_budget_cost_nouser
delete from xm_project_m_budget_cost_nouser
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

36
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMBudgetCostUserMapper.xml

@ -10,7 +10,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_m_budget_cost_user_process_approva (
insert into xm_project_m_budget_cost_user_process_approva (
id,budget_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 (
#{id},#{budgetId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -20,7 +20,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_project_m_budget_cost_user b ,XM.xm_project_m_budget_cost_user_process_approva pa
update xm_project_m_budget_cost_user b ,XM.xm_project_m_budget_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>
@ -40,19 +40,19 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_project_m_budget_cost_user_process_approva pa set pa.flow_state='2'
update xm_project_m_budget_cost_user_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_project_m_budget_cost_user
delete from xm_project_m_budget_cost_user
where biz_proc_inst_id=#{procInstId}
</delete>
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="listSum" parameterType="HashMap" resultType="HashMap">
select res.project_id,res.userid,res.username,subject_id,subject_name,bizz_month,sum(res.budget_cost) as budget_cost from XM.xm_project_m_budget_cost_user res
select res.project_id,res.userid,res.username,subject_id,subject_name,bizz_month,sum(res.budget_cost) as budget_cost from xm_project_m_budget_cost_user res
<where>
and res.project_id=#{projectId}
<if test="subjectId != null and subjectId !='' "> and res.subject_id =#{subjectId} </if>
@ -82,7 +82,7 @@
p.plan_working_hours
FROM
XM.xm_project p
LEFT JOIN XM.xm_project_m_budget_cost_user res ON p.id = res.project_id
LEFT JOIN xm_project_m_budget_cost_user res ON p.id = res.project_id
<where>
p.id = #{projectId}
<if test=" excludeIds !=null "> and res.id not in
@ -98,7 +98,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_project_m_budget_cost_user res left join XM.xm_project_m_budget_cost_user_process_approva pa on res.id=pa.budget_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_budget_cost_user res left join xm_project_m_budget_cost_user_process_approva pa on res.id=pa.budget_id and res.biz_proc_inst_id=pa.proc_inst_id
<where>
<if test="ids != null"> and
@ -113,7 +113,7 @@
</select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectMBudgetCostUser" resultType="com.xm.core.entity.XmProjectMBudgetCostUser">
select * from XM.xm_project_m_budget_cost_user res
select * from xm_project_m_budget_cost_user res
<where>
<include refid="where"/>
</where>
@ -121,27 +121,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectMBudgetCostUser" resultType="com.xm.core.entity.XmProjectMBudgetCostUser">
select * from XM.xm_project_m_budget_cost_user res
select * from xm_project_m_budget_cost_user res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_m_budget_cost_user res
select * from xm_project_m_budget_cost_user res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectMBudgetCostUser" resultType="long">
select count(1) from XM.xm_project_m_budget_cost_user res
select count(1) from xm_project_m_budget_cost_user res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectMBudgetCostUser" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_m_budget_cost_user(
insert into xm_project_m_budget_cost_user(
<include refid="columns"/>
) values (
#{projectId},#{userid},#{budgetCost},#{id},#{remark},#{username},#{subjectId},#{bizzStartDate},#{bizzEndDate},#{bizzMonth},#{bizProcInstId},#{bizFlowState},#{projectPhaseId},#{costType}
@ -150,7 +150,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectMBudgetCostUser">
delete from XM.xm_project_m_budget_cost_user res
delete from xm_project_m_budget_cost_user res
<where>
<include refid="where"/>
</where>
@ -158,13 +158,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectMBudgetCostUser">
delete from XM.xm_project_m_budget_cost_user
delete from xm_project_m_budget_cost_user
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectMBudgetCostUser">
update XM.xm_project_m_budget_cost_user
update xm_project_m_budget_cost_user
<set>
<include refid="someFieldSet"/>
</set>
@ -173,7 +173,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectMBudgetCostUser">
update XM.xm_project_m_budget_cost_user
update xm_project_m_budget_cost_user
<set>
<include refid="set"/>
</set>
@ -188,7 +188,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_m_budget_cost_user
update xm_project_m_budget_cost_user
set
<include refid="batchSet"/>
where id = #{item.id}
@ -196,7 +196,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_m_budget_cost_user
delete from xm_project_m_budget_cost_user
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

36
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMCostNouserMapper.xml

@ -11,7 +11,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_m_cost_nouser_process_approva (
insert into xm_project_m_cost_nouser_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
) values (
#{id},#{costId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -21,7 +21,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_project_m_cost_nouser b ,XM.xm_project_m_cost_nouser_process_approva pa
update xm_project_m_cost_nouser b ,XM.xm_project_m_cost_nouser_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>
@ -41,13 +41,13 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_project_m_cost_nouser_process_approva pa set pa.flow_state='2'
update xm_project_m_cost_nouser_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_project_m_cost_nouser
delete from xm_project_m_cost_nouser
where biz_proc_inst_id=#{procInstId}
</delete>
<!-- 查询非人力的支出及对应的项目的预算,非人力支出不能大于项目非人力总预算 -->
@ -69,7 +69,7 @@
p.plan_working_hours
FROM
XM.xm_project p
LEFT JOIN XM.xm_project_m_cost_nouser res ON p.id = res.project_id
LEFT JOIN xm_project_m_cost_nouser res ON p.id = res.project_id
<where>
p.id = #{projectId}
<if test=" excludeIds !=null "> and res.id not in
@ -81,7 +81,7 @@
</select>
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="listSum" parameterType="HashMap" resultType="HashMap">
select res.project_id,res.subject_id,res.subject_name,biz_month,sum(res.act_cost_amount) as act_cost_amount from XM.xm_project_m_cost_nouser res
select res.project_id,res.subject_id,res.subject_name,biz_month,sum(res.act_cost_amount) as act_cost_amount from xm_project_m_cost_nouser res
<where>
and res.project_id=#{projectId}
<if test="subjectId != null and subjectId !='' "> and res.subject_id =#{subjectId} </if>
@ -95,7 +95,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_project_m_cost_nouser res left join XM.xm_project_m_cost_nouser_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_nouser res left join xm_project_m_cost_nouser_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
@ -111,7 +111,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectMCostNouser" resultType="com.xm.core.entity.XmProjectMCostNouser">
select * from XM.xm_project_m_cost_nouser res
select * from xm_project_m_cost_nouser res
<where>
<include refid="where"/>
</where>
@ -119,27 +119,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectMCostNouser" resultType="com.xm.core.entity.XmProjectMCostNouser">
select * from XM.xm_project_m_cost_nouser res
select * from xm_project_m_cost_nouser res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_m_cost_nouser res
select * from xm_project_m_cost_nouser res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectMCostNouser" resultType="long">
select count(1) from XM.xm_project_m_cost_nouser res
select count(1) from xm_project_m_cost_nouser res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectMCostNouser" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_m_cost_nouser(
insert into xm_project_m_cost_nouser(
<include refid="columns"/>
) values (
#{projectId},#{userid},#{createTime},#{sendCostTime},#{username},#{projectName},#{remark},#{id},#{taskId},#{taskName},#{subjectId},#{bizzStartDate},#{bizzEndDate},#{bizProcInstId},#{bizFlowState},#{projectPhaseId},#{actCostAmount},#{costType},#{bizMonth},#{bizDate},#{subjectName},#{projectPhaseName}
@ -148,7 +148,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectMCostNouser">
delete from XM.xm_project_m_cost_nouser res
delete from xm_project_m_cost_nouser res
<where>
<include refid="where"/>
</where>
@ -156,13 +156,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectMCostNouser">
delete from XM.xm_project_m_cost_nouser
delete from xm_project_m_cost_nouser
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectMCostNouser">
update XM.xm_project_m_cost_nouser
update xm_project_m_cost_nouser
<set>
<include refid="someFieldSet"/>
</set>
@ -171,7 +171,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectMCostNouser">
update XM.xm_project_m_cost_nouser
update xm_project_m_cost_nouser
<set>
<include refid="set"/>
</set>
@ -186,7 +186,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_m_cost_nouser
update xm_project_m_cost_nouser
set
<include refid="batchSet"/>
where id = #{item.id}
@ -194,7 +194,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_m_cost_nouser
delete from xm_project_m_cost_nouser
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

42
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMCostUserMapper.xml

@ -11,7 +11,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.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
) values (
#{id},#{costId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -21,7 +21,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.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>
@ -41,25 +41,25 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.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}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_project_m_cost_user
delete from xm_project_m_cost_user
where biz_proc_inst_id=#{procInstId}
</delete>
<update id="updateExecuserStatusByExecuserProcInstId"
parameterType="HashMap">
update XM.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>
<!-- 按条件删除若干条记录-->
<delete id="deleteByExecuserProcInstId" parameterType="HashMap">
delete from XM.xm_project_m_cost_user
delete from xm_project_m_cost_user
where execuser_proc_inst_id=#{execuserProcInstId}
</delete>
<!-- 查询人力的总支出及对应的项目的总预算,人力总支出不能大于项目人力总预算 -->
@ -83,7 +83,7 @@
p.plan_working_hours
FROM
XM.xm_project p
LEFT JOIN XM.xm_project_m_cost_user res ON p.id = res.project_id
LEFT JOIN xm_project_m_cost_user res ON p.id = res.project_id
<where>
p.id = #{projectId}
<if test=" excludeIds !=null "> and res.id not in
@ -96,7 +96,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.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>
@ -113,7 +113,7 @@
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.xm_task t
FROM xm_task t
LEFT JOIN
XM.xm_project_m_cost_user res ON res.task_id = t.id AND res.project_id = t.project_id
<where>
@ -134,7 +134,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_project_m_cost_user res left join XM.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
@ -150,7 +150,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectMCostUser" resultType="com.xm.core.entity.XmProjectMCostUser">
select * from XM.xm_project_m_cost_user res
select * from xm_project_m_cost_user res
<where>
<include refid="where"/>
</where>
@ -158,27 +158,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectMCostUser" resultType="com.xm.core.entity.XmProjectMCostUser">
select * from XM.xm_project_m_cost_user res
select * from xm_project_m_cost_user res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_m_cost_user res
select * from xm_project_m_cost_user res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectMCostUser" resultType="long">
select count(1) from XM.xm_project_m_cost_user res
select count(1) from xm_project_m_cost_user res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectMCostUser" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_m_cost_user(
insert into xm_project_m_cost_user(
<include refid="columns"/>
) values (
#{subjectId},#{projectId},#{userid},#{createTime},#{sendCostTime},#{username},#{projectName},#{remark},#{id},#{taskId},#{taskName},#{actWorkload},#{bizzStartDate},#{bizzEndDate},#{bizProcInstId},#{bizFlowState},#{projectPhaseId},#{actCostAmount},#{costType},#{bizMonth},#{bizDate},#{subjectName},#{projectPhaseName},#{execuserProcInstId},#{execuserStatus},#{payStatus},#{payOpUserid},#{payOpUsername}
@ -187,7 +187,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectMCostUser">
delete from XM.xm_project_m_cost_user res
delete from xm_project_m_cost_user res
<where>
<include refid="where"/>
</where>
@ -195,13 +195,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectMCostUser">
delete from XM.xm_project_m_cost_user
delete from xm_project_m_cost_user
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectMCostUser">
update XM.xm_project_m_cost_user
update xm_project_m_cost_user
<set>
<include refid="someFieldSet"/>
</set>
@ -210,7 +210,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectMCostUser">
update XM.xm_project_m_cost_user
update xm_project_m_cost_user
<set>
<include refid="set"/>
</set>
@ -225,7 +225,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_m_cost_user
update xm_project_m_cost_user
set
<include refid="batchSet"/>
where id = #{item.id}
@ -233,7 +233,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_m_cost_user
delete from xm_project_m_cost_user
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

48
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml

@ -10,7 +10,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_process_approva (
insert into xm_project_process_approva (
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 (
#{id},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -20,7 +20,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_project b ,XM.xm_project_process_approva pa
update xm_project b ,XM.xm_project_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>
@ -40,13 +40,13 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_project_process_approva pa set pa.flow_state='2'
update xm_project_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_project
delete from xm_project
where biz_proc_inst_id=#{procInstId}
</delete>
@ -63,9 +63,9 @@
s.total_progress,s.total_active_bug_cnt,s.total_confirmed_bug_cnt,s.project_status,s.total_act_workload,s.total_act_out_workload,s.total_act_inner_workload,
s.total_task_budget_cost_at,s.total_task_out_cnt,s.total_need_pay_cnt,s.total_finish_pay_cnt,s.total_finish_pay_user_cnt,s.total_need_pay_user_cnt,s.total_plan_inner_user_workload,
s.total_plan_out_user_workload,s.test_cases,s.exec_cases,s.design_cases,s.finish_cases,s.iteration_cnt,s.product_cnt,s.menu_cnt,
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.xm_project res
left join XM.xm_project_state s on s.project_id=res.id
left join XM.xm_project_process_approva pa on res.id=pa.project_id and res.biz_proc_inst_id=pa.proc_inst_id
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 res
left join xm_project_state s on s.project_id=res.id
left join xm_project_process_approva pa on res.id=pa.project_id and res.biz_proc_inst_id=pa.proc_inst_id
<where>
<if test="ids != null"> and
@ -89,14 +89,14 @@
</if>
<!-- 我参与的 包括我创建的,我监控的,我审核的-->
<if test=" compete !=null and compete !='' ">
and ( exists ( select 1 from XM.xm_project_group g,XM.xm_project_group_user gu where gu.group_id=g.id and gu.userid=#{userid} and g.project_id=res.id )
and ( exists ( select 1 from xm_project_group g,XM.xm_project_group_user gu where gu.group_id=g.id and gu.userid=#{userid} and g.project_id=res.id )
or res.create_userid=#{compete}
or exists ( select 1 from XM.xm_task_execuser exe where exe.project_id=res.id and exe.userid=#{compete} )
or exists ( select 1 from xm_task_execuser exe where exe.project_id=res.id and exe.userid=#{compete} )
)
</if>
<!-- 按参与角色查询等-->
<if test="pgTypeIds != null ">
and exists ( select 1 from XM.xm_project_group g,XM.xm_project_group_user gu where gu.group_id=g.id and gu.userid=#{userid} and g.project_id=res.id
and exists ( select 1 from xm_project_group g,XM.xm_project_group_user gu where gu.group_id=g.id and gu.userid=#{userid} and g.project_id=res.id
and g.pg_type_id in
<foreach collection="pgTypeIds" item="item" index="index" open="(" separator="," close=")" >
#{item}
@ -105,7 +105,7 @@
</if>
<if test=" myExecuserStatus != null and myExecuserStatus != ''">
and exists ( select 1 from XM.xm_task_execuser exe where exe.project_id=res.id and exe.userid=#{userid}
and exists ( select 1 from xm_task_execuser exe where exe.project_id=res.id and exe.userid=#{userid}
<if test=' myExecuserStatus != "all" '>
and exe.status=#{myExecuserStatus}
</if>
@ -113,10 +113,10 @@
</if>
<if test="myFocus != null and myFocus != ''">
and exists ( select 1 from XM.xm_my_focus f where f.userid=#{userid} and f.project_id=res.id )
and exists ( select 1 from xm_my_focus f where f.userid=#{userid} and f.project_id=res.id )
</if>
<if test=" productId !=null and productId!='' ">
and exists( select 1 from XM.xm_product_project_link ppl
and exists( select 1 from xm_product_project_link ppl
where ppl.product_id=#{productId} and ppl.project_id=res.id
)
</if>
@ -132,7 +132,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProject" resultType="com.xm.core.entity.XmProject">
select * from XM.xm_project res
select * from xm_project res
<where>
<include refid="where"/>
</where>
@ -140,27 +140,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProject" resultType="com.xm.core.entity.XmProject">
select * from XM.xm_project res
select * from xm_project res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project res
select * from xm_project res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProject" resultType="long">
select count(1) from XM.xm_project res
select count(1) from xm_project res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProject" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project(
insert into xm_project(
<include refid="columns"/>
) values (
#{id},#{code},#{name},#{xmType},#{startTime},#{endTime},#{urgent},#{priority},#{description},#{createUserid},#{createUsername},#{createTime},#{assess},#{assessRemarks},#{status},#{branchId},#{planTotalCost},#{bizProcInstId},#{bizFlowState},#{planNouserAt},#{planInnerUserAt},#{planOutUserAt},#{locked},#{baseTime},#{baseRemark},#{baselineId},#{planWorkload},#{totalReceivables},#{budgetMarginRate},#{contractAmt},#{planInnerUserPrice},#{planOutUserPrice},#{planOutUserCnt},#{planInnerUserCnt},#{planWorkingHours},#{taxRate},#{planInnerUserWorkload},#{planOutUserWorkload},#{fromTplId},#{budgetCtrl},#{deptid},#{showOut}
@ -169,7 +169,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProject">
delete from XM.xm_project
delete from xm_project
<where>
1=2
</where>
@ -177,13 +177,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProject">
delete from XM.xm_project
delete from xm_project
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProject">
update XM.xm_project
update xm_project
<set>
<include refid="someFieldSet"/>
</set>
@ -192,7 +192,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProject">
update XM.xm_project
update xm_project
<set>
<include refid="set"/>
</set>
@ -207,7 +207,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project
update xm_project
set
<include refid="batchSet"/>
where id = #{item.id}
@ -215,7 +215,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project
delete from xm_project
where
(id)
in

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseBaselineMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_phase_baseline res
select * from xm_project_phase_baseline res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectPhaseBaseline" resultType="com.xm.core.entity.XmProjectPhaseBaseline">
select * from XM.xm_project_phase_baseline res
select * from xm_project_phase_baseline res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectPhaseBaseline" resultType="com.xm.core.entity.XmProjectPhaseBaseline">
select * from XM.xm_project_phase_baseline res
select * from xm_project_phase_baseline res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_phase_baseline res
select * from xm_project_phase_baseline res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectPhaseBaseline" resultType="long">
select count(1) from XM.xm_project_phase_baseline res
select count(1) from xm_project_phase_baseline res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectPhaseBaseline" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_phase_baseline(
insert into xm_project_phase_baseline(
<include refid="columns"/>
) values (
#{baseCtime},#{projectPhaseId},#{phaseName},#{remark},#{parentPhaseId},#{branchId},#{projectId},#{beginDate},#{endDate},#{planWorkingHours},#{planWorkingStaffNu},#{ctime},#{totalBudgetNouser},#{totalBudgetInnerUser},#{totalBudgetOutUser},#{id},#{baseRemark},#{projectBaselineId},#{bizProcInstId},#{bizFlowState},#{totalBudgetWorkload},#{totalActWorkload}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectPhaseBaseline">
delete from XM.xm_project_phase_baseline res
delete from xm_project_phase_baseline res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectPhaseBaseline">
delete from XM.xm_project_phase_baseline
delete from xm_project_phase_baseline
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectPhaseBaseline">
update XM.xm_project_phase_baseline
update xm_project_phase_baseline
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectPhaseBaseline">
update XM.xm_project_phase_baseline
update xm_project_phase_baseline
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_phase_baseline
update xm_project_phase_baseline
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_phase_baseline
delete from xm_project_phase_baseline
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

28
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseMapper.xml

@ -44,11 +44,11 @@
{call load_tasks_to_xm_project_phase(#{projectId,mode=IN})}
</update>
<select id="checkExistsTask" parameterType="String" resultType="Long">
select count(1) from XM.xm_task t where t.project_phase_id=#{phaseId}
select count(1) from xm_task t where t.project_phase_id=#{phaseId}
</select>
<select id="checkExistsChildren" parameterType="String" resultType="Long" >
select count(1) from XM.xm_project_phase res where res.parent_phase_id = #{id}
select count(1) from xm_project_phase res where res.parent_phase_id = #{id}
</select>
<!--结束 自定义sql函数区域-->
@ -56,7 +56,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_phase res
select * from xm_project_phase res
<where>
<if test="ids != null"> and
id in
@ -79,7 +79,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectPhase" resultType="com.xm.core.entity.XmProjectPhase">
select * from XM.xm_project_phase res
select * from xm_project_phase res
<where>
<include refid="where"/>
</where>
@ -87,27 +87,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectPhase" resultType="com.xm.core.entity.XmProjectPhase">
select * from XM.xm_project_phase res
select * from xm_project_phase res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_phase res
select * from xm_project_phase res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectPhase" resultType="long">
select count(1) from XM.xm_project_phase res
select count(1) from xm_project_phase res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectPhase" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_phase(
insert into xm_project_phase(
<include refid="columns"/>
) values (
#{id},#{phaseName},#{remark},#{parentPhaseId},#{branchId},#{projectId},#{beginDate},#{endDate},#{phaseBudgetHours},#{phaseBudgetStaffNu},#{ctime},#{phaseBudgetNouserAt},#{phaseBudgetInnerUserAt},#{phaseBudgetOutUserAt},#{projectBaselineId},#{bizProcInstId},#{bizFlowState},#{phaseBudgetWorkload},#{phaseActWorkload},#{phaseActInnerUserWorkload},#{phaseActOutUserWorkload},#{taskType},#{planType},#{seqNo},#{phaseBudgetInnerUserWorkload},#{phaseBudgetOutUserWorkload},#{actNouserAt},#{actInnerUserAt},#{phaseBudgetInnerUserPrice},#{phaseBudgetOutUserPrice},#{phaseBudgetOutUserCnt},#{phaseBudgetInnerUserCnt},#{actRate},#{phaseStatus},#{actOutUserAt},#{taskCnt},#{finishTaskCnt},#{iterationCnt},#{calcTime},#{taskBudgetWorkload},#{taskBudgetAt},#{mngUserid},#{mngUsername},#{milestone},#{pleaf}
@ -116,7 +116,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectPhase">
delete from XM.xm_project_phase
delete from xm_project_phase
<where>
1=2
</where>
@ -124,13 +124,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectPhase">
delete from XM.xm_project_phase
delete from xm_project_phase
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectPhase">
update XM.xm_project_phase
update xm_project_phase
<set>
<include refid="someFieldSet"/>
</set>
@ -139,7 +139,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectPhase">
update XM.xm_project_phase
update xm_project_phase
<set>
<include refid="set"/>
</set>
@ -154,7 +154,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_phase
update xm_project_phase
set
<include refid="batchSet"/>
where id = #{item.id}
@ -162,7 +162,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_phase
delete from xm_project_phase
where
(id)
in

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectPhaseTemplateMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_phase_template res
select * from xm_project_phase_template res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectPhaseTemplate" resultType="com.xm.core.entity.XmProjectPhaseTemplate">
select * from XM.xm_project_phase_template res
select * from xm_project_phase_template res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectPhaseTemplate" resultType="com.xm.core.entity.XmProjectPhaseTemplate">
select * from XM.xm_project_phase_template res
select * from xm_project_phase_template res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_phase_template res
select * from xm_project_phase_template res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectPhaseTemplate" resultType="long">
select count(1) from XM.xm_project_phase_template res
select count(1) from xm_project_phase_template res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectPhaseTemplate" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_phase_template(
insert into xm_project_phase_template(
<include refid="columns"/>
) values (
#{id},#{phaseName},#{remark},#{parentPhaseId},#{branchId},#{projectId},#{beginDate},#{endDate},#{phaseBudgetHours},#{phaseBudgetStaffNu},#{ctime},#{phaseBudgetNouserAt},#{phaseBudgetInnerUserAt},#{phaseBudgetOutUserAt},#{phaseBudgetWorkload},#{taskType},#{planType},#{seqNo},#{phaseBudgetInnerUserWorkload},#{phaseBudgetOutUserWorkload},#{phaseBudgetInnerUserPrice},#{phaseBudgetOutUserPrice},#{phaseBudgetOutUserCnt},#{phaseBudgetInnerUserCnt}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectPhaseTemplate">
delete from XM.xm_project_phase_template res
delete from xm_project_phase_template res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectPhaseTemplate">
delete from XM.xm_project_phase_template
delete from xm_project_phase_template
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectPhaseTemplate">
update XM.xm_project_phase_template
update xm_project_phase_template
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectPhaseTemplate">
update XM.xm_project_phase_template
update xm_project_phase_template
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_phase_template
update xm_project_phase_template
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_phase_template
delete from xm_project_phase_template
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectStateHisMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_state_his res
select * from xm_project_state_his res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectStateHis" resultType="com.xm.core.entity.XmProjectStateHis">
select * from XM.xm_project_state_his res
select * from xm_project_state_his res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectStateHis" resultType="com.xm.core.entity.XmProjectStateHis">
select * from XM.xm_project_state_his res
select * from xm_project_state_his res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_state_his res
select * from xm_project_state_his res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectStateHis" resultType="long">
select count(1) from XM.xm_project_state_his res
select count(1) from xm_project_state_his res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectStateHis" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_state_his(
insert into xm_project_state_his(
<include refid="columns"/>
) values (
#{projectId},#{bizDate},#{totalFileCnt},#{totalBugCnt},#{totalTaskCnt},#{totalBudgetNouserAmount},#{projectName},#{id},#{totalStaffCnt},#{calcTime},#{calcStatus},#{totalCostNouserAmount},#{totalClosedBugCnt},#{totalResolvedBugCnt},#{totalCompleteTaskCnt},#{totalPhaseCnt},#{totalCompletePhaseCnt},#{totalNeedPayAmount},#{totalFinishPayAmount},#{totalNeedColAmount},#{totalFinishColAmount},#{totalCostUserAmount},#{totalBudgetInnerUserAmount},#{totalPlanWorkload},#{totalRiskCnt},#{totalCompleteRiskCnt},#{branchId},#{branchName},#{totalBudgetOutUserAmount},#{totalCompleteWorkload},#{totalCostInnerUserAmount},#{totalCostOutUserAmount},#{totalProgress},#{totalActiveBugCnt},#{totalConfirmedBugCnt},#{projectStatus},#{totalActWorkload},#{totalActOutWorkload},#{totalActInnerWorkload},#{totalTaskBudgetCostAt},#{totalTaskOutCnt},#{totalNeedPayCnt},#{totalFinishPayCnt},#{totalFinishPayUserCnt},#{totalNeedPayUserCnt},#{totalPlanInnerUserWorkload},#{totalPlanOutUserWorkload},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{menuCnt}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectStateHis">
delete from XM.xm_project_state_his res
delete from xm_project_state_his res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectStateHis">
delete from XM.xm_project_state_his
delete from xm_project_state_his
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectStateHis">
update XM.xm_project_state_his
update xm_project_state_his
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectStateHis">
update XM.xm_project_state_his
update xm_project_state_his
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_state_his
update xm_project_state_his
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_state_his
delete from xm_project_state_his
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

26
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectStateMapper.xml

@ -7,7 +7,7 @@
<!--请在此区域添加自定义函数-->
<select id="selectPortalProjectStates" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_state res
select * from xm_project_state res
<where>
res.calc_time > DATE_SUB(now(),INTERVAL 7 DAY)
</where>
@ -26,7 +26,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_state res
select * from xm_project_state res
<where>
<if test="ids != null"> and
id in
@ -41,7 +41,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectState" resultType="com.xm.core.entity.XmProjectState">
select * from XM.xm_project_state res
select * from xm_project_state res
<where>
<include refid="where"/>
</where>
@ -49,27 +49,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectState" resultType="com.xm.core.entity.XmProjectState">
select * from XM.xm_project_state res
select * from xm_project_state res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_state res
select * from xm_project_state res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectState" resultType="long">
select count(1) from XM.xm_project_state res
select count(1) from xm_project_state res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectState" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_state(
insert into xm_project_state(
<include refid="columns"/>
) values (
#{projectId},#{bizDate},#{totalFileCnt},#{totalBugCnt},#{totalTaskCnt},#{totalBudgetNouserAmount},#{projectName},#{id},#{totalStaffCnt},#{calcTime},#{calcStatus},#{totalCostNouserAmount},#{totalClosedBugCnt},#{totalResolvedBugCnt},#{totalCompleteTaskCnt},#{totalPhaseCnt},#{totalCompletePhaseCnt},#{totalNeedPayAmount},#{totalFinishPayAmount},#{totalNeedColAmount},#{totalFinishColAmount},#{totalCostUserAmount},#{totalBudgetInnerUserAmount},#{totalPlanWorkload},#{totalRiskCnt},#{totalCompleteRiskCnt},#{branchId},#{branchName},#{totalBudgetOutUserAmount},#{totalCompleteWorkload},#{totalCostInnerUserAmount},#{totalCostOutUserAmount},#{totalProgress},#{totalActiveBugCnt},#{totalConfirmedBugCnt},#{projectStatus},#{totalActWorkload},#{totalActOutWorkload},#{totalActInnerWorkload},#{totalTaskBudgetCostAt},#{totalTaskOutCnt},#{totalNeedPayCnt},#{totalFinishPayCnt},#{totalFinishPayUserCnt},#{totalNeedPayUserCnt},#{totalPlanInnerUserWorkload},#{totalPlanOutUserWorkload},#{testCases},#{execCases},#{designCases},#{finishCases},#{iterationCnt},#{productCnt},#{menuCnt}
@ -78,7 +78,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectState">
delete from XM.xm_project_state res
delete from xm_project_state res
<where>
<include refid="where"/>
</where>
@ -86,13 +86,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectState">
delete from XM.xm_project_state
delete from xm_project_state
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectState">
update XM.xm_project_state
update xm_project_state
<set>
<include refid="someFieldSet"/>
</set>
@ -101,7 +101,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectState">
update XM.xm_project_state
update xm_project_state
<set>
<include refid="set"/>
</set>
@ -116,7 +116,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_state
update xm_project_state
set
<include refid="batchSet"/>
where id = #{item.id}
@ -124,7 +124,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_state
delete from xm_project_state
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectTaskTypeStateMapper.xml

@ -16,7 +16,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_task_type_state res
select * from xm_project_task_type_state res
<where>
<if test="ids != null"> and
id in
@ -31,7 +31,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectTaskTypeState" resultType="com.xm.core.entity.XmProjectTaskTypeState">
select * from XM.xm_project_task_type_state res
select * from xm_project_task_type_state res
<where>
<include refid="where"/>
</where>
@ -39,27 +39,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectTaskTypeState" resultType="com.xm.core.entity.XmProjectTaskTypeState">
select * from XM.xm_project_task_type_state res
select * from xm_project_task_type_state res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_task_type_state res
select * from xm_project_task_type_state res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectTaskTypeState" resultType="long">
select count(1) from XM.xm_project_task_type_state res
select count(1) from xm_project_task_type_state res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectTaskTypeState" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_task_type_state(
insert into xm_project_task_type_state(
<include refid="columns"/>
) values (
#{projectId},#{projectName},#{taskType},#{planWorkload},#{planAmount},#{actWorkload},#{actAmount},#{branchId},#{bizDate},#{calcTime},#{planOutUserAt},#{planInnerUserAt},#{actOutUserAt},#{actInnerUserAt},#{planOutUserWorkload},#{planInnerUserWorkload},#{actOutUserWorkload},#{actInnerUserWorkload},#{planNouserAt},#{actNouserAt},#{id}
@ -68,7 +68,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectTaskTypeState">
delete from XM.xm_project_task_type_state res
delete from xm_project_task_type_state res
<where>
<include refid="where"/>
</where>
@ -76,13 +76,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectTaskTypeState">
delete from XM.xm_project_task_type_state
delete from xm_project_task_type_state
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectTaskTypeState">
update XM.xm_project_task_type_state
update xm_project_task_type_state
<set>
<include refid="someFieldSet"/>
</set>
@ -91,7 +91,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectTaskTypeState">
update XM.xm_project_task_type_state
update xm_project_task_type_state
<set>
<include refid="set"/>
</set>
@ -106,7 +106,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_task_type_state
update xm_project_task_type_state
set
<include refid="batchSet"/>
where id = #{item.id}
@ -114,7 +114,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_task_type_state
delete from xm_project_task_type_state
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectTemplateMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_template res
select * from xm_project_template res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmProjectTemplate" resultType="com.xm.core.entity.XmProjectTemplate">
select * from XM.xm_project_template res
select * from xm_project_template res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmProjectTemplate" resultType="com.xm.core.entity.XmProjectTemplate">
select * from XM.xm_project_template res
select * from xm_project_template res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_project_template res
select * from xm_project_template res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmProjectTemplate" resultType="long">
select count(1) from XM.xm_project_template res
select count(1) from xm_project_template res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmProjectTemplate" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_project_template(
insert into xm_project_template(
<include refid="columns"/>
) values (
#{id},#{code},#{name},#{xmType},#{startTime},#{endTime},#{urgent},#{priority},#{description},#{createUserid},#{createUsername},#{createTime},#{assess},#{assessRemarks},#{status},#{branchId},#{planTotalCost},#{bizProcInstId},#{bizFlowState},#{planNouserAt},#{planInnerUserAt},#{planOutUserAt},#{locked},#{baseTime},#{baseRemark},#{baselineId},#{planWorkload},#{totalReceivables},#{budgetMarginRate},#{contractAmt},#{planInnerUserPrice},#{planOutUserPrice},#{planOutUserCnt},#{planInnerUserCnt},#{planWorkingHours},#{taxRate},#{planInnerUserWorkload},#{planOutUserWorkload},#{productId},#{productName},#{templateId},#{tcuserid},#{tcusername},#{tremark},#{tctime},#{tcbranchId},#{shareScope}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmProjectTemplate">
delete from XM.xm_project_template res
delete from xm_project_template res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmProjectTemplate">
delete from XM.xm_project_template
delete from xm_project_template
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmProjectTemplate">
update XM.xm_project_template
update xm_project_template
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmProjectTemplate">
update XM.xm_project_template
update xm_project_template
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_project_template
update xm_project_template
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_project_template
delete from xm_project_template
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionHandleMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_question_handle res
select * from xm_question_handle res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmQuestionHandle" resultType="com.xm.core.entity.XmQuestionHandle">
select * from XM.xm_question_handle res
select * from xm_question_handle res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmQuestionHandle" resultType="com.xm.core.entity.XmQuestionHandle">
select * from XM.xm_question_handle res
select * from xm_question_handle res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_question_handle res
select * from xm_question_handle res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmQuestionHandle" resultType="long">
select count(1) from XM.xm_question_handle res
select count(1) from xm_question_handle res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmQuestionHandle" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_question_handle(
insert into xm_question_handle(
<include refid="columns"/>
) values (
#{id},#{handlerUserid},#{handlerUsername},#{handleSolution},#{receiptMessage},#{receiptTime},#{handleStatus},#{bizProcInstId},#{bizFlowState},#{questionId},#{lastUpdateTime},#{createTime},#{actWorkload},#{actCostAmount},#{urls},#{targetUserid},#{targetUsername}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmQuestionHandle">
delete from XM.xm_question_handle res
delete from xm_question_handle res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmQuestionHandle">
delete from XM.xm_question_handle
delete from xm_question_handle
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmQuestionHandle">
update XM.xm_question_handle
update xm_question_handle
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmQuestionHandle">
update XM.xm_question_handle
update xm_question_handle
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_question_handle
update xm_question_handle
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_question_handle
delete from xm_question_handle
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

36
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml

@ -12,7 +12,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_question_process_approva (
insert into xm_question_process_approva (
id,question_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 (
#{id},#{questionId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -22,7 +22,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_question b ,XM.xm_question_process_approva pa
update xm_question b ,XM.xm_question_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>
@ -42,13 +42,13 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_question_process_approva pa set pa.flow_state='2'
update xm_question_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_question
delete from xm_question
where biz_proc_inst_id=#{procInstId}
</delete>
@ -58,7 +58,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_question res left join XM.xm_question_process_approva pa on res.id=pa.question_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_question res left join xm_question_process_approva pa on res.id=pa.question_id and res.biz_proc_inst_id=pa.proc_inst_id
<where>
<if test="ids != null"> and
@ -67,11 +67,11 @@
#{item}
</foreach>
</if>
<if test="hisHandlerUserid !=null "> and exists (select 1 from xm.xm_question_handle h where h.question_id = res.id and h.handler_userid=#{hisHandlerUserid} and handle_status=#{hisHandleStatus})</if>
<if test="hisHandlerUserid !=null "> and exists (select 1 from xm_question_handle h where h.question_id = res.id and h.handler_userid=#{hisHandlerUserid} and handle_status=#{hisHandleStatus})</if>
<if test=" createTimeStart !=null "> and res.create_time between #{createTimeStart} and #{createTimeEnd} </if>
<if test=" ltimeStart !=null "> and res.ltime between #{ltimeStart} and #{ltimeEnd} </if>
<include refid="where"/>
<if test=" productId !=null and productId!='' "> and exists( select 1 from xm.xm_menu m where m.menu_id=res.menu_id and m.product_id=#{productId}) </if>
<if test=" productId !=null and productId!='' "> and exists( select 1 from xm_menu m where m.menu_id=res.menu_id and m.product_id=#{productId}) </if>
<if test="myUserid != null and myUserid != ''"> and ( res.create_userid=#{myUserid} or res.handler_userid=#{myUserid}) </if>
<if test="menuIds != null"> and
res.menu_id in
@ -89,7 +89,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmQuestion" resultType="com.xm.core.entity.XmQuestion">
select * from XM.xm_question res
select * from xm_question res
<where>
<include refid="where"/>
</where>
@ -97,27 +97,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmQuestion" resultType="com.xm.core.entity.XmQuestion">
select * from XM.xm_question res
select * from xm_question res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_question res
select * from xm_question res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmQuestion" resultType="long">
select count(1) from XM.xm_question res
select count(1) from xm_question res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmQuestion" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_question(
insert into xm_question(
<include refid="columns"/>
) values (
#{id},#{name},#{projectId},#{projectName},#{caseId},#{caseName},#{endTime},#{askUserid},#{askUsername},#{handlerUserid},#{handlerUsername},#{priority},#{solution},#{description},#{createUserid},#{createUsername},#{createTime},#{bugStatus},#{bizProcInstId},#{bizFlowState},#{menuId},#{menuName},#{planWorkload},#{planCostAmount},#{totalActWorkload},#{totalActCostAmount},#{expectResult},#{opStep},#{currResult},#{refRequire},#{bugSeverity},#{bugType},#{tagIds},#{tagNames},#{urls},#{ltime},#{qtype},#{taskId},#{taskName},#{iterationId},#{iterationName},#{caseExecId},#{lremark}
@ -126,7 +126,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmQuestion">
delete from XM.xm_question
delete from xm_question
<where>
1=2
</where>
@ -134,13 +134,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmQuestion">
delete from XM.xm_question
delete from xm_question
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmQuestion">
update XM.xm_question
update xm_question
<set>
<include refid="someFieldSet"/>
</set>
@ -149,7 +149,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmQuestion">
update XM.xm_question
update xm_question
<set>
<include refid="set"/>
</set>
@ -164,7 +164,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_question
update xm_question
set
<include refid="batchSet"/>
where id = #{item.id}
@ -172,7 +172,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_question
delete from xm_question
where
(id)
in

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionTagMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_question_tag res
select * from xm_question_tag res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmQuestionTag" resultType="com.xm.core.entity.XmQuestionTag">
select * from XM.xm_question_tag res
select * from xm_question_tag res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmQuestionTag" resultType="com.xm.core.entity.XmQuestionTag">
select * from XM.xm_question_tag res
select * from xm_question_tag res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_question_tag res
select * from xm_question_tag res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmQuestionTag" resultType="long">
select count(1) from XM.xm_question_tag res
select count(1) from xm_question_tag res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmQuestionTag" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_question_tag(
insert into xm_question_tag(
<include refid="columns"/>
) values (
#{questionId},#{tagId},#{tagName},#{ctime},#{id}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmQuestionTag">
delete from XM.xm_question_tag res
delete from xm_question_tag res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmQuestionTag">
delete from XM.xm_question_tag
delete from xm_question_tag
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmQuestionTag">
update XM.xm_question_tag
update xm_question_tag
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmQuestionTag">
update XM.xm_question_tag
update xm_question_tag
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_question_tag
update xm_question_tag
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_question_tag
delete from xm_question_tag
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmRecordMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_record res
select * from xm_record res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmRecord" resultType="com.xm.core.entity.XmRecord">
select * from XM.xm_record res
select * from xm_record res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmRecord" resultType="com.xm.core.entity.XmRecord">
select * from XM.xm_record res
select * from xm_record res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_record res
select * from xm_record res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmRecord" resultType="long">
select count(1) from XM.xm_record res
select count(1) from xm_record res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmRecord" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_record(
insert into xm_record(
<include refid="columns"/>
) values (
#{id},#{projectId},#{operUserid},#{operUsername},#{operTime},#{objType},#{action},#{oldValue},#{newValue},#{remarks},#{taskId},#{reqNo},#{branchId},#{ip}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmRecord">
delete from XM.xm_record res
delete from xm_record res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmRecord">
delete from XM.xm_record
delete from xm_record
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmRecord">
update XM.xm_record
update xm_record
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmRecord">
update XM.xm_record
update xm_record
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_record
update xm_record
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_record
delete from xm_record
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

34
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskExecuserMapper.xml

@ -12,7 +12,7 @@
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_task_execuser_process_approva (
insert into xm_task_execuser_process_approva (
id,execuser_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 (
#{id},#{execuserId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -22,7 +22,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_task_execuser b ,XM.xm_task_execuser_process_approva pa
update xm_task_execuser b ,XM.xm_task_execuser_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>
@ -44,18 +44,18 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_task_execuser_process_approva pa set pa.flow_state='2'
update xm_task_execuser_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_task_execuser
delete from xm_task_execuser
where biz_proc_inst_id=#{procInstId}
</delete>
<update id="updateXmTaskExeUseridsAndUsernamesByTaskId"
parameterType="String">
UPDATE XM.xm_task t
UPDATE xm_task t
left join
(
SELECT
@ -124,7 +124,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_task_execuser res left join XM.xm_task_execuser_process_approva pa on res.id=pa.execuser_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_task_execuser res left join xm_task_execuser_process_approva pa on res.id=pa.execuser_id and res.biz_proc_inst_id=pa.proc_inst_id
<where>
<if test="ids != null"> and
@ -141,7 +141,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmTaskExecuser" resultType="com.xm.core.entity.XmTaskExecuser">
select * from XM.xm_task_execuser res
select * from xm_task_execuser res
<where>
<include refid="where"/>
</where>
@ -149,27 +149,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmTaskExecuser" resultType="com.xm.core.entity.XmTaskExecuser">
select * from XM.xm_task_execuser res
select * from xm_task_execuser res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_task_execuser res
select * from xm_task_execuser res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmTaskExecuser" resultType="long">
select count(1) from XM.xm_task_execuser res
select count(1) from xm_task_execuser res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmTaskExecuser" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_task_execuser(
insert into xm_task_execuser(
<include refid="columns"/>
) values (
#{createTime},#{id},#{taskId},#{userid},#{startTime},#{endTime},#{status},#{remarks},#{settleAmount},#{settleWorkload},#{settleStatus},#{settleTime},#{createUserid},#{createUsername},#{username},#{matchScore},#{quoteWeekday},#{quoteAmount},#{quoteTime},#{bizProcInstId},#{bizFlowState},#{projectId},#{projectPhaseId},#{skillRemark},#{quoteWorkload},#{quoteStartTime},#{quoteEndTime},#{branchId},#{projectPhaseName},#{taskName},#{isLeader},#{distUserid},#{distUsername}
@ -178,7 +178,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmTaskExecuser">
delete from XM.xm_task_execuser
delete from xm_task_execuser
<where>
1=2
</where>
@ -186,13 +186,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmTaskExecuser">
delete from XM.xm_task_execuser
delete from xm_task_execuser
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmTaskExecuser">
update XM.xm_task_execuser
update xm_task_execuser
<set>
<include refid="someFieldSet"/>
</set>
@ -201,7 +201,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmTaskExecuser">
update XM.xm_task_execuser
update xm_task_execuser
<set>
<include refid="set"/>
</set>
@ -216,7 +216,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_task_execuser
update xm_task_execuser
set
<include refid="batchSet"/>
where id = #{item.id}
@ -224,7 +224,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_task_execuser
delete from xm_task_execuser
where
(id)
in

58
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

@ -6,32 +6,32 @@
<!--开始 自定sql函数区域 -->
<!--请在此区域添加自定义函数-->
<select id="getAvgRate" parameterType="String" resultType="long" >
select avg(res.rate) from XM.xm_task res where res.parent_taskid = #{parentTaskid}
select avg(res.rate) from xm_task res where res.parent_taskid = #{parentTaskid}
</select>
<select id="shareTaskDetail" parameterType="HashMap" resultType="HashMap">
SELECT res.*,m.remark from XM.xm_task res left join XM.xm_menu m on res.menu_id = m.menu_id
SELECT res.*,m.remark from xm_task res left join xm_menu m on res.menu_id = m.menu_id
WHERE res.id=#{id}
</select>
<select id="checkExistsExecuser" parameterType="String" resultType="Long" >
select count(1) from XM.xm_task_execuser res where res.task_id = #{taskId} and ( res.settle_status not in('2','6'))
select count(1) from xm_task_execuser res where res.task_id = #{taskId} and ( res.settle_status not in('2','6'))
</select>
<select id="checkExistsChildren" parameterType="String" resultType="Long" >
select count(1) from XM.xm_task res where res.parent_taskid = #{id}
select count(1) from xm_task res where res.parent_taskid = #{id}
</select>
<update id="updatePreTask" parameterType="String">
update XM.xm_task set pre_taskid = NULL,pre_taskname = NULL where pre_taskid = #{id}
update xm_task set pre_taskid = NULL,pre_taskname = NULL where pre_taskid = #{id}
</update>
<update id="relTaskWithMenu" parameterType="com.xm.core.entity.XmTask">
update XM.xm_task set menu_id = #{menuId}, menu_name = #{menuName},product_id=#{productId},product_name=#{productName} where id = #{id}
update xm_task set menu_id = #{menuId}, menu_name = #{menuName},product_id=#{productId},product_name=#{productName} where id = #{id}
</update>
<!-- 插入流程审批表数据 -->
<insert id="insertProcessApprova"
parameterType="HashMap"
useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_task_process_approva (
insert into xm_task_process_approva (
id,xm_task_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 (
#{id},#{xmTaskId},#{projectId},#{flowBranchId},#{agree},#{actId},#{taskName},#{procInstId},#{mainTitle},#{commentMsg},#{flowLastTime},#{eventName},#{bizKey},#{modelKey},#{assignee},#{startUserid},#{procDefId}
@ -41,7 +41,7 @@
<!-- 同时修改业务表及流程审批表数据状态 -->
<update id="updateProcessApprova"
parameterType="HashMap">
update XM.xm_task b ,XM.xm_task_process_approva pa
update xm_task b ,XM.xm_task_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>
@ -61,13 +61,13 @@
<update id="updateFlowStateByProcInstForDeleteSuccess"
parameterType="HashMap">
update XM.xm_task_process_approva pa set pa.flow_state='2'
update xm_task_process_approva pa set pa.flow_state='2'
where pa.proc_inst_id = #{procInstId} and pa.flow_branch_id=#{flowBranchId}
</update>
<!-- 按条件删除若干条记录-->
<delete id="deleteByProcInstId" parameterType="HashMap">
delete from XM.xm_task
delete from xm_task
where biz_proc_inst_id=#{procInstId}
</delete>
<!-- 查询任务总的预算及对应的阶段的预算,任务总预算不能大于阶段总预算 -->
@ -84,7 +84,7 @@
p.phase_budget_workload,
p.phase_budget_hours,
p.phase_budget_staff_nu
FROM XM.xm_project_phase p LEFT JOIN XM.xm_task res
FROM xm_project_phase p LEFT JOIN xm_task res
ON p.id = res.project_phase_id
WHERE
p.id = #{projectPhaseId}
@ -97,7 +97,7 @@
</select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectTaskListByIds" parameterType="HashMap" resultType="com.xm.core.entity.XmTask">
select * from XM.xm_task res
select * from xm_task res
where res.id in
<foreach collection="ids" item="item" index="index" open="(" separator="," close=")" >
#{item}
@ -111,8 +111,8 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<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.xm_task res left join XM.xm_task_process_approva pa on res.id=pa.xm_task_id and res.biz_proc_inst_id=pa.proc_inst_id
left join XM.xm_project p on p.id=res.project_id
from xm_task res left join xm_task_process_approva pa on res.id=pa.xm_task_id and res.biz_proc_inst_id=pa.proc_inst_id
left join xm_project p on p.id=res.project_id
<where>
<if test="ids != null"> and
id in
@ -128,7 +128,7 @@
<!-- 我参与的-->
<if test=" (myExecuserStatus != null and myExecuserStatus) != '' or ( isMy !=null and isMy !='' )">
and exists ( select 1 from XM.xm_task_execuser exe where exe.task_id=res.id and exe.userid=#{userid}
and exists ( select 1 from xm_task_execuser exe where exe.task_id=res.id and exe.userid=#{userid}
<if test=' myExecuserStatus != "all" and myExecuserStatus!=null and myExecuserStatus !="" '>
and exe.status=#{myExecuserStatus}
</if>
@ -136,10 +136,10 @@
</if>
<!-- 我关注的 -->
<if test="myFocus != null and myFocus != ''">
and exists ( select 1 from XM.xm_my_focus f where f.userid=#{userid} and f.project_id=res.project_id and f.task_id=res.id )
and exists ( select 1 from xm_my_focus f where f.userid=#{userid} and f.project_id=res.project_id and f.task_id=res.id )
</if>
<if test="skillIds != null and skillIds != ''">
and exists ( select 1 from XM.xm_task_skill f where f.task_id=res.id and f.task_skill_id in
and exists ( select 1 from xm_task_skill f where f.task_id=res.id and f.task_skill_id in
<foreach collection="skillIds" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
@ -147,7 +147,7 @@
</if>
<if test="compete !=null and compete!=''">
and ( exists ( select 1 from xm_project_group_user gu where gu.userid=#{compete} and gu.project_id=res.project_id )
or exists ( select 1 from XM.xm_task_execuser exe where exe.project_id=res.project_id and exe.userid=#{compete})
or exists ( select 1 from xm_task_execuser exe where exe.project_id=res.project_id and exe.userid=#{compete})
)
</if>
@ -162,7 +162,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmTask" resultType="com.xm.core.entity.XmTask">
select * from XM.xm_task res
select * from xm_task res
<where>
<include refid="where"/>
</where>
@ -170,27 +170,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmTask" resultType="com.xm.core.entity.XmTask">
select * from XM.xm_task res
select * from xm_task res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_task res
select * from xm_task res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmTask" resultType="long">
select count(1) from XM.xm_task res
select count(1) from xm_task res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmTask" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_task(
insert into xm_task(
<include refid="columns"/>
) values (
#{id},#{name},#{parentTaskid},#{parentTaskname},#{projectId},#{projectName},#{level},#{sortLevel},#{executorUserid},#{executorUsername},#{preTaskid},#{preTaskname},#{startTime},#{endTime},#{milestone},#{description},#{remarks},#{createUserid},#{createUsername},#{createTime},#{rate},#{budgetCost},#{budgetWorkload},#{actCost},#{actWorkload},#{taskState},#{taskType},#{taskClass},#{toTaskCenter},#{actStartTime},#{actEndTime},#{bizProcInstId},#{bizFlowState},#{projectPhaseId},#{projectPhaseName},#{taskSkillNames},#{exeUsernames},#{taskSkillIds},#{exeUserids},#{taskOut},#{planType},#{settleSchemel},#{menuId},#{menuName},#{productId},#{productName},#{cbranchId},#{cdeptid}
@ -199,7 +199,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmTask">
delete from XM.xm_task
delete from xm_task
<where>
1=2
</where>
@ -207,13 +207,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmTask">
delete from XM.xm_task
delete from xm_task
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmTask">
update XM.xm_task
update xm_task
<set>
<include refid="someFieldSet"/>
</set>
@ -222,7 +222,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmTask">
update XM.xm_task
update xm_task
<set>
<include refid="set"/>
</set>
@ -237,7 +237,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_task
update xm_task
set
<include refid="batchSet"/>
where id = #{item.id}
@ -245,7 +245,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_task
delete from xm_task
where
(id)
in

26
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskSkillMapper.xml

@ -10,7 +10,7 @@
<update id="updateXmTaskSkillIdsAndNamesByTaskId"
parameterType="String">
update XM.xm_task t,(select task_id, group_concat(e.task_skill_id Separator ',') as task_skill_ids,group_concat(e.task_skill_name Separator ',') as task_skill_names from XM.xm_task_skill e where e.task_id=#{taskId}) e1
update xm_task t,(select task_id, group_concat(e.task_skill_id Separator ',') as task_skill_ids,group_concat(e.task_skill_name Separator ',') as task_skill_names from xm_task_skill e where e.task_id=#{taskId}) e1
set t.task_skill_ids= e1.task_skill_ids , t.task_skill_names = e1.task_skill_names
where e1.task_id=#{taskId} and t.id=e1.task_id
@ -21,7 +21,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_task_skill res
select * from xm_task_skill res
<where>
<if test="ids != null"> and
id in
@ -36,7 +36,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmTaskSkill" resultType="com.xm.core.entity.XmTaskSkill">
select * from XM.xm_task_skill res
select * from xm_task_skill res
<where>
<include refid="where"/>
</where>
@ -44,27 +44,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmTaskSkill" resultType="com.xm.core.entity.XmTaskSkill">
select * from XM.xm_task_skill res
select * from xm_task_skill res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_task_skill res
select * from xm_task_skill res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmTaskSkill" resultType="long">
select count(1) from XM.xm_task_skill res
select count(1) from xm_task_skill res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmTaskSkill" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_task_skill(
insert into xm_task_skill(
<include refid="columns"/>
) values (
#{id},#{taskId},#{taskSkillId},#{taskSkillName},#{skillRemarks}
@ -73,7 +73,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmTaskSkill">
delete from XM.xm_task_skill res
delete from xm_task_skill res
<where>
<include refid="where"/>
</where>
@ -81,13 +81,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmTaskSkill">
delete from XM.xm_task_skill
delete from xm_task_skill
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmTaskSkill">
update XM.xm_task_skill
update xm_task_skill
<set>
<include refid="someFieldSet"/>
</set>
@ -96,7 +96,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmTaskSkill">
update XM.xm_task_skill
update xm_task_skill
<set>
<include refid="set"/>
</set>
@ -111,7 +111,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_task_skill
update xm_task_skill
set
<include refid="batchSet"/>
where id = #{item.id}
@ -119,7 +119,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_task_skill
delete from xm_task_skill
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskTemplateMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_task_template res
select * from xm_task_template res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmTaskTemplate" resultType="com.xm.core.entity.XmTaskTemplate">
select * from XM.xm_task_template res
select * from xm_task_template res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmTaskTemplate" resultType="com.xm.core.entity.XmTaskTemplate">
select * from XM.xm_task_template res
select * from xm_task_template res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_task_template res
select * from xm_task_template res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmTaskTemplate" resultType="long">
select count(1) from XM.xm_task_template res
select count(1) from xm_task_template res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmTaskTemplate" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_task_template(
insert into xm_task_template(
<include refid="columns"/>
) values (
#{id},#{name},#{parentTaskid},#{parentTaskname},#{projectId},#{projectName},#{level},#{sortLevel},#{preTaskid},#{preTaskname},#{startTime},#{endTime},#{milestone},#{description},#{remarks},#{createUserid},#{createUsername},#{createTime},#{rate},#{budgetCost},#{budgetWorkload},#{taskState},#{taskType},#{taskClass},#{toTaskCenter},#{projectPhaseId},#{projectPhaseName},#{taskSkillNames},#{taskSkillIds},#{taskOut},#{planType},#{settleSchemel},#{menuId},#{menuName}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmTaskTemplate">
delete from XM.xm_task_template res
delete from xm_task_template res
<where>
<include refid="where"/>
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmTaskTemplate">
delete from XM.xm_task_template
delete from xm_task_template
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmTaskTemplate">
update XM.xm_task_template
update xm_task_template
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmTaskTemplate">
update XM.xm_task_template
update xm_task_template
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_task_template
update xm_task_template
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_task_template
delete from xm_task_template
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

28
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseExecMapper.xml

@ -7,7 +7,7 @@
<!--请在此区域添加自定义函数-->
<select id="listByProjectAndCaseIds" parameterType="HashMap" resultType="com.xm.core.entity.XmTestCaseExec">
select * from XM.xm_test_case_exec res
select * from xm_test_case_exec res
<where>
and res.project_id=#{projectId}
<if test="caseIds != null"> and
@ -25,7 +25,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select res.*,c.* from XM.xm_test_case_exec res left join XM.xm_test_case c on res.case_id=c.id
select res.*,c.* from xm_test_case_exec res left join xm_test_case c on res.case_id=c.id
<where>
<if test="ids != null"> and
id in
@ -46,7 +46,7 @@
<if test="compete !=null and compete!=''">
and exists ( select 1 from xm_project_group_user gu where gu.userid=#{compete} and gu.project_id=res.project_id )
</if>
<if test="productId != null and productId !='' "> and exists( select 1 from xm.xm_menu m where m.menu_id =res.menu_id and m.product_id=#{productId}) </if>
<if test="productId != null and productId !='' "> and exists( select 1 from xm_menu m where m.menu_id =res.menu_id and m.product_id=#{productId}) </if>
<if test="key != null and key !='' "> and res.case_name like #{key} </if>
</where>
@ -54,7 +54,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmTestCaseExec" resultType="com.xm.core.entity.XmTestCaseExec">
select * from XM.xm_test_case_exec res
select * from xm_test_case_exec res
<where>
<include refid="where"/>
</where>
@ -62,27 +62,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmTestCaseExec" resultType="com.xm.core.entity.XmTestCaseExec">
select * from XM.xm_test_case_exec res
select * from xm_test_case_exec res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_test_case_exec res
select * from xm_test_case_exec res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmTestCaseExec" resultType="long">
select count(1) from XM.xm_test_case_exec res
select count(1) from xm_test_case_exec res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmTestCaseExec" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_test_case_exec(
insert into xm_test_case_exec(
<include refid="columns"/>
) values (
#{execUserid},#{startTime},#{id},#{projectId},#{projectName},#{caseId},#{caseName},#{endTime},#{remark},#{createUserid},#{createUsername},#{createTime},#{execStatus},#{iterationId},#{iterationName},#{execUsername},#{taskId},#{taskName},#{menuId},#{menuName}
@ -91,7 +91,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmTestCaseExec">
delete from XM.xm_test_case_exec res
delete from xm_test_case_exec res
<where>
<include refid="where"/>
</where>
@ -99,13 +99,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmTestCaseExec">
delete from XM.xm_test_case_exec
delete from xm_test_case_exec
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmTestCaseExec">
update XM.xm_test_case_exec
update xm_test_case_exec
<set>
<include refid="someFieldSet"/>
</set>
@ -114,7 +114,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmTestCaseExec">
update XM.xm_test_case_exec
update xm_test_case_exec
<set>
<include refid="set"/>
</set>
@ -129,7 +129,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_test_case_exec
update xm_test_case_exec
set
<include refid="batchSet"/>
where id = #{item.id}
@ -137,7 +137,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_test_case_exec
delete from xm_test_case_exec
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

28
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_test_case res
select * from xm_test_case res
<where>
<if test="ids != null"> and
id in
@ -34,15 +34,15 @@
#{item}
</foreach>
</if>
<if test="projectId !=null and projectId !=''"> and exists ( select 1 from xm.xm_test_case_exec c where c.case_id=res.id and c.project_id=#{projectId} )</if>
<if test="productId != null and productId !='' "> and exists( select 1 from xm.xm_menu m where m.menu_id =res.menu_id and m.product_id=#{productId}) </if>
<if test="projectId !=null and projectId !=''"> and exists ( select 1 from xm_test_case_exec c where c.case_id=res.id and c.project_id=#{projectId} )</if>
<if test="productId != null and productId !='' "> and exists( select 1 from xm_menu m where m.menu_id =res.menu_id and m.product_id=#{productId}) </if>
<if test="key != null and key !='' "> and res.case_name like #{key} </if>
</where>
</select>
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.core.entity.XmTestCase" resultType="com.xm.core.entity.XmTestCase">
select * from XM.xm_test_case res
select * from xm_test_case res
<where>
<include refid="where"/>
</where>
@ -50,27 +50,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.core.entity.XmTestCase" resultType="com.xm.core.entity.XmTestCase">
select * from XM.xm_test_case res
select * from xm_test_case res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_test_case res
select * from xm_test_case res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.core.entity.XmTestCase" resultType="long">
select count(1) from XM.xm_test_case res
select count(1) from xm_test_case res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.core.entity.XmTestCase" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_test_case(
insert into xm_test_case(
<include refid="columns"/>
) values (
#{id},#{caseName},#{caseRemark},#{testStep},#{expectResult},#{menuId},#{menuName},#{ctime},#{ltime},#{luserid},#{lusername},#{cbranchId},#{moduleId},#{moduleName},#{caseStatus}
@ -79,7 +79,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.core.entity.XmTestCase">
delete from XM.xm_test_case res
delete from xm_test_case res
<where>
<include refid="where"/>
</where>
@ -87,13 +87,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.core.entity.XmTestCase">
delete from XM.xm_test_case
delete from xm_test_case
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.core.entity.XmTestCase">
update XM.xm_test_case
update xm_test_case
<set>
<include refid="someFieldSet"/>
</set>
@ -102,7 +102,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.core.entity.XmTestCase">
update XM.xm_test_case
update xm_test_case
<set>
<include refid="set"/>
</set>
@ -117,7 +117,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_test_case
update xm_test_case
set
<include refid="batchSet"/>
where id = #{item.id}
@ -125,7 +125,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_test_case
delete from xm_test_case
where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item.id }

24
xm-core/src/main/resources/mybatis/mapper/xm/share/dao/ShareBizInfoMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_share_biz_info res
select * from xm_share_biz_info res
<where>
<if test="ids != null"> and
share_key in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.share.entity.ShareBizInfo" resultType="com.xm.share.entity.ShareBizInfo">
select * from XM.xm_share_biz_info res
select * from xm_share_biz_info res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.share.entity.ShareBizInfo" resultType="com.xm.share.entity.ShareBizInfo">
select * from XM.xm_share_biz_info res
select * from xm_share_biz_info res
where
res.share_key = #{shareKey}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_share_biz_info res
select * from xm_share_biz_info res
where
res.share_key = #{shareKey}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.share.entity.ShareBizInfo" resultType="long">
select count(1) from XM.xm_share_biz_info res
select count(1) from xm_share_biz_info res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键share_key,-->
<insert id="insert" parameterType="com.xm.share.entity.ShareBizInfo" useGeneratedKeys="false" keyProperty="share_key">
insert into XM.xm_share_biz_info(
insert into xm_share_biz_info(
<include refid="columns"/>
) values (
#{shareKey},#{shareUserid},#{shareUsername},#{pageUrl},#{pageType},#{shareTime},#{bizPkId},#{bizBranchId},#{shareBranchId},#{bizSubPkId},#{params},#{shareType},#{pshareKey},#{pshareUserid},#{pshareUsername},#{bizType},#{bizCategoryId}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.share.entity.ShareBizInfo">
delete from XM.xm_share_biz_info
delete from xm_share_biz_info
<where>
1=2
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.share.entity.ShareBizInfo">
delete from XM.xm_share_biz_info
delete from xm_share_biz_info
where share_key = #{shareKey}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.share.entity.ShareBizInfo">
update XM.xm_share_biz_info
update xm_share_biz_info
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.share.entity.ShareBizInfo">
update XM.xm_share_biz_info
update xm_share_biz_info
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_share_biz_info
update xm_share_biz_info
set
<include refid="batchSet"/>
where share_key = #{item.shareKey}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_share_biz_info
delete from xm_share_biz_info
where
(share_key)
in

24
xm-core/src/main/resources/mybatis/mapper/xm/share/dao/ShareReceInfoMapper.xml

@ -14,7 +14,7 @@
<!-- 通过条件查询获取数据列表 返回list<map> -->
<select id="selectListMapByWhere" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_share_rece_info res
select * from xm_share_rece_info res
<where>
<if test="ids != null"> and
id in
@ -29,7 +29,7 @@
<!-- 通过条件查询获取数据列表 不分页 返回 list<Object> -->
<select id="selectListByWhere" parameterType="com.xm.share.entity.ShareReceInfo" resultType="com.xm.share.entity.ShareReceInfo">
select * from XM.xm_share_rece_info res
select * from xm_share_rece_info res
<where>
<include refid="where"/>
</where>
@ -37,27 +37,27 @@
<!-- 通过主键查询获取数据对象 返回object -->
<select id="selectOneObject" parameterType="com.xm.share.entity.ShareReceInfo" resultType="com.xm.share.entity.ShareReceInfo">
select * from XM.xm_share_rece_info res
select * from xm_share_rece_info res
where
res.id = #{id}
</select>
<!-- 通过主键查询获取数据对象 返回map-->
<select id="selectOneMap" parameterType="HashMap" resultType="HashMap">
select * from XM.xm_share_rece_info res
select * from xm_share_rece_info res
where
res.id = #{id}
</select>
<!-- 获取数据条目 返回long -->
<select id="countByWhere" parameterType="com.xm.share.entity.ShareReceInfo" resultType="long">
select count(1) from XM.xm_share_rece_info res
select count(1) from xm_share_rece_info res
<where>
<include refid="where"/>
</where>
</select>
<!-- 新增一条记录 主键id,-->
<insert id="insert" parameterType="com.xm.share.entity.ShareReceInfo" useGeneratedKeys="false" keyProperty="id">
insert into XM.xm_share_rece_info(
insert into xm_share_rece_info(
<include refid="columns"/>
) values (
#{id},#{shareKey},#{receiverId},#{receiverName},#{receTime}
@ -66,7 +66,7 @@
<!-- 按条件删除若干条记录-->
<delete id="deleteByWhere" parameterType="com.xm.share.entity.ShareReceInfo">
delete from XM.xm_share_rece_info
delete from xm_share_rece_info
<where>
1=2
</where>
@ -74,13 +74,13 @@
<!-- 按主键删除一条记录-->
<delete id="deleteByPk" parameterType="com.xm.share.entity.ShareReceInfo">
delete from XM.xm_share_rece_info
delete from xm_share_rece_info
where id = #{id}
</delete>
<!-- 根据条件修改若干条记录 -->
<update id="updateSomeFieldByPk" parameterType="com.xm.share.entity.ShareReceInfo">
update XM.xm_share_rece_info
update xm_share_rece_info
<set>
<include refid="someFieldSet"/>
</set>
@ -89,7 +89,7 @@
<!-- 根据主键修改一条记录 -->
<update id="updateByPk" parameterType="com.xm.share.entity.ShareReceInfo">
update XM.xm_share_rece_info
update xm_share_rece_info
<set>
<include refid="set"/>
</set>
@ -104,7 +104,7 @@
<!-- 批量更新 -->
<update id="batchUpdate" parameterType="List">
<foreach collection="list" item="item" index="index" separator=";" >
update XM.xm_share_rece_info
update xm_share_rece_info
set
<include refid="batchSet"/>
where id = #{item.id}
@ -112,7 +112,7 @@
</update>
<!-- 批量删除 -->
<delete id="batchDelete" parameterType="List">
delete from XM.xm_share_rece_info
delete from xm_share_rece_info
where
(id)
in

Loading…
Cancel
Save