Initial commit

This commit is contained in:
zgw
2026-01-20 15:41:23 +08:00
commit b616cb490c
36 changed files with 23438 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<?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.project.joggle.mapper.ReplaceRelationshipMapper">
<resultMap id="BaseResultMap" type="com.project.joggle.domain.ReplaceRelationship">
<result property="id" column="ID" jdbcType="VARCHAR"/>
<result property="oldTraceCode" column="OLD_TRACE_CODE" jdbcType="VARCHAR"/>
<result property="newTraceCode" column="NEW_TRACE_CODE" jdbcType="VARCHAR"/>
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
<result property="errorcount" column="ERRORCOUNT" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
ID,OLD_TRACE_CODE,NEW_TRACE_CODE,
STATUS,ERRORCOUNT
</sql>
<select id="selectReplaceRelationshipList" parameterType="ReplaceRelationship" resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List"/>
FROM REPLACE_RELATIONSHIP
<where>
STATUS in (0,2)
and (ERRORCOUNT is null or ERRORCOUNT &lt;3)
<if test="id != null and id != ''">
AND ID = #{id}
</if>
<if test="oldTraceCode != null and oldTraceCode != ''">
AND OLD_TRACE_CODE = #{oldTraceCode}
</if>
<if test="newTraceCode != null and newTraceCode != ''">
AND NEW_TRACE_CODE = #{newTraceCode}
</if>
</where>
</select>
<update id="updateRelationshipRestructur" parameterType="ReplaceRelationship">
UPDATE REPLACE_RELATIONSHIP
<set>
<if test="status != null and status != ''">
STATUS = #{status},
</if>
<if test="errorcount !=null and errorcount != ''">
ERRORCOUNT= #{errorcount}
</if>
</set>
WHERE id = #{id}
</update>
</mapper>