qa-prevention-gwj/src/main/resources/mybatis/datasource/xgf/XgfFlowsMapper.xml

337 lines
10 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zcloud.mapper.datasource.XgfFlowsMapper">
<sql id="tableName">
xgf_flows
</sql>
<sql id="Field">
f.FLOWS_ID,
f.FOREIGN_KEY_ID,
f.FOREIGN_KEY_NAME,
f.FLOWS_STEP,
f.IS_DELETE,
f.APPOINT_ZERO_CORP_ID,
f.APPOINT_ZERO_CORP_TYEP,
f.APPOINT_ZERO_CORP_NAME,
f.APPOINT_ZERO_DEPARTMENT_ID,
f.APPOINT_ZERO_DEPARTMENT_NAME,
f.APPOINT_ZERO_USER_ID,
f.APPOINT_ZERO_USER_NAME,
f.APPOINT_ZERO_STATUS,
f.APPOINT_ZERO_OPINION,
f.APPOINT_ZERO_TIME,
f.APPOINT_ONE_CORP_ID,
f.APPOINT_ONE_CORP_NAME,
f.APPOINT_ONE_CORP_TYEP,
f.APPOINT_ONE_DEPARTMENT_ID,
f.APPOINT_ONE_DEPARTMENT_NAME,
f.APPOINT_ONE_USER_ID,
f.APPOINT_ONE_USER_NAME,
f.APPOINT_ONE_STATUS,
f.APPOINT_ONE_OPINION,
f.APPOINT_ONE_TIME,
f.APPOINT_TWO_CORP_ID,
f.APPOINT_TWO_CORP_NAME,
f.APPOINT_TWO_DEPARTMENT_ID,
f.APPOINT_TWO_DEPARTMENT_NAME,
f.APPOINT_TWO_USER_ID,
f.APPOINT_TWO_USER_NAME,
f.APPOINT_TWO_TIME,
f.APPOINT_THREE_CORP_ID,
f.APPOINT_THREE_CORP_NAME,
f.APPOINT_THREE_DEPARTMENT_ID,
f.APPOINT_THREE_DEPARTMENT_NAME,
f.APPOINT_THREE_USER_ID,
f.APPOINT_THREE_USER_NAME,
f.APPOINT_THREE_STATUS,
f.APPOINT_THREE_OPINION,
f.APPOINT_THREE_TIME,
f.APPOINT_FOUR_CORP_ID,
f.APPOINT_FOUR_CORP_NAME,
f.APPOINT_FOUR_DEPARTMENT_ID,
f.APPOINT_FOUR_DEPARTMENT_NAME,
f.APPOINT_FOUR_USER_ID,
f.APPOINT_FOUR_USER_NAME,
f.APPOINT_FOUR_STATUS,
f.APPOINT_FOUR_OPINION,
f.APPOINT_FIVE_CORP_ID,
f.APPOINT_FIVE_CORP_NAME,
f.APPOINT_FIVE_DEPARTMENT_ID,
f.APPOINT_FIVE_DEPARTMENT_NAME,
f.APPOINT_FIVE_USER_ID,
f.APPOINT_FIVE_USER_NAME,
f.APPOINT_FIVE_STATUS,
f.APPOINT_FIVE_OPINION,
f.APPOINT_SIX_CORP_ID,
f.APPOINT_SIX_CORP_NAME,
f.APPOINT_SIX_DEPARTMENT_ID,
f.APPOINT_SIX_DEPARTMENT_NAME,
f.APPOINT_SIX_USER_ID,
f.APPOINT_SIX_USER_NAME,
f.APPOINT_SIX_STATUS,
f.APPOINT_SIX_OPINION,
f.APPOINT_SEVEN_CORP_ID,
f.APPOINT_SEVEN_CORP_NAME,
f.APPOINT_SEVEN_DEPARTMENT_ID,
f.APPOINT_SEVEN_DEPARTMENT_NAME,
f.APPOINT_SEVEN_USER_ID,
f.APPOINT_SEVEN_USER_NAME,
f.APPOINT_SEVEN_STATUS,
f.APPOINT_SEVEN_OPINION
</sql>
<sql id="Field2">
FLOWS_ID,
FOREIGN_KEY_ID,
FOREIGN_KEY_NAME,
FLOWS_STEP,
IS_DELETE,
APPOINT_ZERO_CORP_ID,
APPOINT_ZERO_CORP_TYEP,
APPOINT_ZERO_CORP_NAME,
APPOINT_ZERO_DEPARTMENT_ID,
APPOINT_ZERO_DEPARTMENT_NAME,
APPOINT_ZERO_USER_ID,
APPOINT_ZERO_USER_NAME,
APPOINT_ZERO_STATUS,
APPOINT_ZERO_OPINION,
APPOINT_ZERO_TIME,
APPOINT_ONE_CORP_ID,
APPOINT_ONE_CORP_NAME,
APPOINT_ONE_CORP_TYEP,
APPOINT_ONE_DEPARTMENT_ID,
APPOINT_ONE_DEPARTMENT_NAME,
APPOINT_ONE_USER_ID,
APPOINT_ONE_USER_NAME,
APPOINT_ONE_STATUS,
APPOINT_ONE_OPINION,
APPOINT_ONE_TIME,
APPOINT_TWO_CORP_ID,
APPOINT_TWO_CORP_NAME,
APPOINT_TWO_DEPARTMENT_ID,
APPOINT_TWO_DEPARTMENT_NAME,
APPOINT_TWO_USER_ID,
APPOINT_TWO_USER_NAME,
APPOINT_TWO_TIME,
APPOINT_THREE_CORP_ID,
APPOINT_THREE_CORP_NAME,
APPOINT_THREE_DEPARTMENT_ID,
APPOINT_THREE_DEPARTMENT_NAME,
APPOINT_THREE_USER_ID,
APPOINT_THREE_USER_NAME,
APPOINT_THREE_STATUS,
APPOINT_THREE_OPINION,
APPOINT_THREE_TIME,
APPOINT_FOUR_CORP_ID,
APPOINT_FOUR_CORP_NAME,
APPOINT_FOUR_DEPARTMENT_ID,
APPOINT_FOUR_DEPARTMENT_NAME,
APPOINT_FOUR_USER_ID,
APPOINT_FOUR_USER_NAME,
APPOINT_FOUR_STATUS,
APPOINT_FOUR_OPINION,
APPOINT_FIVE_CORP_ID,
APPOINT_FIVE_CORP_NAME,
APPOINT_FIVE_DEPARTMENT_ID,
APPOINT_FIVE_DEPARTMENT_NAME,
APPOINT_FIVE_USER_ID,
APPOINT_FIVE_USER_NAME,
APPOINT_FIVE_STATUS,
APPOINT_FIVE_OPINION,
APPOINT_SIX_CORP_ID,
APPOINT_SIX_CORP_NAME,
APPOINT_SIX_DEPARTMENT_ID,
APPOINT_SIX_DEPARTMENT_NAME,
APPOINT_SIX_USER_ID,
APPOINT_SIX_USER_NAME,
APPOINT_SIX_STATUS,
APPOINT_SIX_OPINION,
APPOINT_SEVEN_CORP_ID,
APPOINT_SEVEN_CORP_NAME,
APPOINT_SEVEN_DEPARTMENT_ID,
APPOINT_SEVEN_DEPARTMENT_NAME,
APPOINT_SEVEN_USER_ID,
APPOINT_SEVEN_USER_NAME,
APPOINT_SEVEN_STATUS,
APPOINT_SEVEN_OPINION
</sql>
<sql id="FieldValue">
#{FLOWS_ID},
#{FOREIGN_KEY_ID},
#{FOREIGN_KEY_NAME},
#{FLOWS_STEP},
#{IS_DELETE},
#{APPOINT_ZERO_CORP_ID},
#{APPOINT_ZERO_CORP_TYEP},
#{APPOINT_ZERO_CORP_NAME},
#{APPOINT_ZERO_DEPARTMENT_ID},
#{APPOINT_ZERO_DEPARTMENT_NAME},
#{APPOINT_ZERO_USER_ID},
#{APPOINT_ZERO_USER_NAME},
#{APPOINT_ZERO_STATUS},
#{APPOINT_ZERO_OPINION},
#{APPOINT_ZERO_TIME},
#{APPOINT_ONE_CORP_ID},
#{APPOINT_ONE_CORP_NAME},
#{APPOINT_ONE_CORP_TYEP},
#{APPOINT_ONE_DEPARTMENT_ID},
#{APPOINT_ONE_DEPARTMENT_NAME},
#{APPOINT_ONE_USER_ID},
#{APPOINT_ONE_USER_NAME},
#{APPOINT_ONE_STATUS},
#{APPOINT_ONE_OPINION},
#{APPOINT_ONE_TIME},
#{APPOINT_TWO_CORP_ID},
#{APPOINT_TWO_CORP_NAME},
#{APPOINT_TWO_DEPARTMENT_ID},
#{APPOINT_TWO_DEPARTMENT_NAME},
#{APPOINT_TWO_USER_ID},
#{APPOINT_TWO_USER_NAME},
#{APPOINT_TWO_TIME},
#{APPOINT_THREE_CORP_ID},
#{APPOINT_THREE_CORP_NAME},
#{APPOINT_THREE_DEPARTMENT_ID},
#{APPOINT_THREE_DEPARTMENT_NAME},
#{APPOINT_THREE_USER_ID},
#{APPOINT_THREE_USER_NAME},
#{APPOINT_THREE_STATUS},
#{APPOINT_THREE_OPINION},
#{APPOINT_THREE_TIME},
#{APPOINT_FOUR_CORP_ID},
#{APPOINT_FOUR_CORP_NAME},
#{APPOINT_FOUR_DEPARTMENT_ID},
#{APPOINT_FOUR_DEPARTMENT_NAME},
#{APPOINT_FOUR_USER_ID},
#{APPOINT_FOUR_USER_NAME},
#{APPOINT_FOUR_STATUS},
#{APPOINT_FOUR_OPINION},
#{APPOINT_FIVE_CORP_ID},
#{APPOINT_FIVE_CORP_NAME},
#{APPOINT_FIVE_DEPARTMENT_ID},
#{APPOINT_FIVE_DEPARTMENT_NAME},
#{APPOINT_FIVE_USER_ID},
#{APPOINT_FIVE_USER_NAME},
#{APPOINT_FIVE_STATUS},
#{APPOINT_FIVE_OPINION},
#{APPOINT_SIX_CORP_ID},
#{APPOINT_SIX_CORP_NAME},
#{APPOINT_SIX_DEPARTMENT_ID},
#{APPOINT_SIX_DEPARTMENT_NAME},
#{APPOINT_SIX_USER_ID},
#{APPOINT_SIX_USER_NAME},
#{APPOINT_SIX_STATUS},
#{APPOINT_SIX_OPINION},
#{APPOINT_SEVEN_CORP_ID},
#{APPOINT_SEVEN_CORP_NAME},
#{APPOINT_SEVEN_DEPARTMENT_ID},
#{APPOINT_SEVEN_DEPARTMENT_NAME},
#{APPOINT_SEVEN_USER_ID},
#{APPOINT_SEVEN_USER_NAME},
#{APPOINT_SEVEN_STATUS},
#{APPOINT_SEVEN_OPINION}
</sql>
<!-- 新增 -->
<insert id="save" parameterType="pd">
insert into xgf_flows (<include refid="Field2"></include>) values (<include refid="FieldValue"></include>)
</insert>
<!-- 删除 -->
<delete id="delete" parameterType="pd">
delete from xgf_flows where FLOWS_ID = #{FLOWS_ID}
</delete>
<!-- 修改 -->
<update id="edit" parameterType="pd">
update xgf_flows set
FLOWS_ID = #{FLOWS_ID},
FOREIGN_KEY_ID = #{FOREIGN_KEY_ID},
FOREIGN_KEY_NAME = #{FOREIGN_KEY_NAME},
FLOWS_STEP = #{FLOWS_STEP},
IS_DELETE = #{IS_DELETE},
APPOINT_ZERO_CORP_ID = #{APPOINT_ZERO_CORP_ID},
APPOINT_ZERO_CORP_TYEP = #{APPOINT_ZERO_CORP_TYEP},
APPOINT_ZERO_CORP_NAME = #{APPOINT_ZERO_CORP_NAME},
APPOINT_ZERO_DEPARTMENT_ID = #{APPOINT_ZERO_DEPARTMENT_ID},
APPOINT_ZERO_DEPARTMENT_NAME = #{APPOINT_ZERO_DEPARTMENT_NAME},
APPOINT_ZERO_USER_ID = #{APPOINT_ZERO_USER_ID},
APPOINT_ZERO_USER_NAME = #{APPOINT_ZERO_USER_NAME},
APPOINT_ZERO_STATUS = #{APPOINT_ZERO_STATUS},
APPOINT_ZERO_OPINION = #{APPOINT_ZERO_OPINION},
APPOINT_ZERO_TIME = #{APPOINT_ZERO_TIME},
APPOINT_ONE_CORP_ID = #{APPOINT_ONE_CORP_ID},
APPOINT_ONE_CORP_NAME = #{APPOINT_ONE_CORP_NAME},
APPOINT_ONE_CORP_TYEP = #{APPOINT_ONE_CORP_TYEP},
APPOINT_ONE_DEPARTMENT_ID = #{APPOINT_ONE_DEPARTMENT_ID},
APPOINT_ONE_DEPARTMENT_NAME = #{APPOINT_ONE_DEPARTMENT_NAME},
APPOINT_ONE_USER_ID = #{APPOINT_ONE_USER_ID},
APPOINT_ONE_USER_NAME = #{APPOINT_ONE_USER_NAME},
APPOINT_ONE_STATUS = #{APPOINT_ONE_STATUS},
APPOINT_ONE_OPINION = #{APPOINT_ONE_OPINION},
APPOINT_ONE_TIME = #{APPOINT_ONE_TIME},
APPOINT_TWO_CORP_ID = #{APPOINT_TWO_CORP_ID},
APPOINT_TWO_CORP_NAME = #{APPOINT_TWO_CORP_NAME},
APPOINT_TWO_DEPARTMENT_ID = #{APPOINT_TWO_DEPARTMENT_ID},
APPOINT_TWO_DEPARTMENT_NAME = #{APPOINT_TWO_DEPARTMENT_NAME},
APPOINT_TWO_USER_ID = #{APPOINT_TWO_USER_ID},
APPOINT_TWO_USER_NAME = #{APPOINT_TWO_USER_NAME},
APPOINT_TWO_TIME = #{APPOINT_TWO_TIME},
APPOINT_THREE_CORP_ID = #{APPOINT_THREE_CORP_ID},
APPOINT_THREE_CORP_NAME = #{APPOINT_THREE_CORP_NAME},
APPOINT_THREE_DEPARTMENT_ID = #{APPOINT_THREE_DEPARTMENT_ID},
APPOINT_THREE_DEPARTMENT_NAME = #{APPOINT_THREE_DEPARTMENT_NAME},
APPOINT_THREE_USER_ID = #{APPOINT_THREE_USER_ID},
APPOINT_THREE_USER_NAME = #{APPOINT_THREE_USER_NAME},
APPOINT_THREE_STATUS = #{APPOINT_THREE_STATUS},
APPOINT_THREE_OPINION = #{APPOINT_THREE_OPINION},
APPOINT_THREE_TIME = #{APPOINT_THREE_TIME},
APPOINT_FOUR_CORP_ID = #{APPOINT_FOUR_CORP_ID},
APPOINT_FOUR_CORP_NAME = #{APPOINT_FOUR_CORP_NAME},
APPOINT_FOUR_DEPARTMENT_ID = #{APPOINT_FOUR_DEPARTMENT_ID},
APPOINT_FOUR_DEPARTMENT_NAME = #{APPOINT_FOUR_DEPARTMENT_NAME},
APPOINT_FOUR_USER_ID = #{APPOINT_FOUR_USER_ID},
APPOINT_FOUR_USER_NAME = #{APPOINT_FOUR_USER_NAME},
APPOINT_FOUR_STATUS = #{APPOINT_FOUR_STATUS},
APPOINT_FOUR_OPINION = #{APPOINT_FOUR_OPINION},
APPOINT_FIVE_CORP_ID = #{APPOINT_FIVE_CORP_ID},
APPOINT_FIVE_CORP_NAME = #{APPOINT_FIVE_CORP_NAME},
APPOINT_FIVE_DEPARTMENT_ID = #{APPOINT_FIVE_DEPARTMENT_ID},
APPOINT_FIVE_DEPARTMENT_NAME = #{APPOINT_FIVE_DEPARTMENT_NAME},
APPOINT_FIVE_USER_ID = #{APPOINT_FIVE_USER_ID},
APPOINT_FIVE_USER_NAME = #{APPOINT_FIVE_USER_NAME},
APPOINT_FIVE_STATUS = #{APPOINT_FIVE_STATUS},
APPOINT_FIVE_OPINION = #{APPOINT_FIVE_OPINION},
APPOINT_SIX_CORP_ID = #{APPOINT_SIX_CORP_ID},
APPOINT_SIX_CORP_NAME = #{APPOINT_SIX_CORP_NAME},
APPOINT_SIX_DEPARTMENT_ID = #{APPOINT_SIX_DEPARTMENT_ID},
APPOINT_SIX_DEPARTMENT_NAME = #{APPOINT_SIX_DEPARTMENT_NAME},
APPOINT_SIX_USER_ID = #{APPOINT_SIX_USER_ID},
APPOINT_SIX_USER_NAME = #{APPOINT_SIX_USER_NAME},
APPOINT_SIX_STATUS = #{APPOINT_SIX_STATUS},
APPOINT_SIX_OPINION = #{APPOINT_SIX_OPINION},
APPOINT_SEVEN_CORP_ID = #{APPOINT_SEVEN_CORP_ID},
APPOINT_SEVEN_CORP_NAME = #{APPOINT_SEVEN_CORP_NAME},
APPOINT_SEVEN_DEPARTMENT_ID = #{APPOINT_SEVEN_DEPARTMENT_ID},
APPOINT_SEVEN_DEPARTMENT_NAME = #{APPOINT_SEVEN_DEPARTMENT_NAME},
APPOINT_SEVEN_USER_ID = #{APPOINT_SEVEN_USER_ID},
APPOINT_SEVEN_USER_NAME = #{APPOINT_SEVEN_USER_NAME},
APPOINT_SEVEN_STATUS = #{APPOINT_SEVEN_STATUS},
APPOINT_SEVEN_OPINION = #{APPOINT_SEVEN_OPINION}
where a.FLOWS_ID = #{FLOWS_ID}
</update>
<!-- 分页查询 -->
<select id="datalistPage" parameterType="page" resultType="pd">
select * from xgf_flows a where a.IS_DELETE = '0'
</select>
<select id="findById" parameterType="pd" resultType="pd">
select * from xgf_flows a where a.FLOWS_ID = #{FLOWS_ID}
</select>
</mapper>