|
@@ -1,19 +1,17 @@
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?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">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
-<mapper namespace="com.mw.platform.business.mysql.dao.BaOrgFjMapper">
|
|
|
|
|
|
+<mapper namespace="com.mw.platform.business.mysql.dao.ScoreSetMapper">
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<!-- 通用查询映射结果 -->
|
|
- <resultMap id="BaseResultMap" type="com.mw.platform.business.mysql.entity.BaOrgFj">
|
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.mw.platform.business.mysql.entity.ScoreSet">
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
- <result column="ba_org_id" property="baOrgId" jdbcType="INTEGER" />
|
|
|
|
- <result column="wjmc" property="wjmc" jdbcType="VARCHAR" />
|
|
|
|
- <result column="url" property="url" jdbcType="VARCHAR" />
|
|
|
|
- <result column="state" property="state" jdbcType="INTEGER" />
|
|
|
|
|
|
+ <result column="pjkg" property="pjkg" jdbcType="INTEGER" />
|
|
|
|
+ <result column="pjrq" property="pjrq" jdbcType="VARCHAR" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
<!-- 通用查询结果列 -->
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, ba_org_id, wjmc, url, state
|
|
|
|
|
|
+ id, pjkg, pjrq
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<!-- 通用条件查询 -->
|
|
<!-- 通用条件查询 -->
|
|
@@ -23,17 +21,11 @@
|
|
<if test="record.id != null">
|
|
<if test="record.id != null">
|
|
AND id = #{record.id}
|
|
AND id = #{record.id}
|
|
</if>
|
|
</if>
|
|
- <if test="record.baOrgId != null">
|
|
|
|
- AND ba_org_id = #{record.baOrgId}
|
|
|
|
|
|
+ <if test="record.pjkg != null">
|
|
|
|
+ AND pjkg = #{record.pjkg}
|
|
</if>
|
|
</if>
|
|
- <if test="record.wjmc != null and record.wjmc != ''">
|
|
|
|
- AND wjmc = #{record.wjmc}
|
|
|
|
- </if>
|
|
|
|
- <if test="record.url != null and record.url != ''">
|
|
|
|
- AND url = #{record.url}
|
|
|
|
- </if>
|
|
|
|
- <if test="record.state != null">
|
|
|
|
- AND state = #{record.state}
|
|
|
|
|
|
+ <if test="record.pjrq != null and record.pjrq != ''">
|
|
|
|
+ AND pjrq = #{record.pjrq}
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test=" custom != null " />
|
|
<if test=" custom != null " />
|
|
@@ -56,59 +48,41 @@
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<!-- 插入 -->
|
|
<!-- 插入 -->
|
|
- <insert id="insertSelective" parameterType="com.mw.platform.business.mysql.entity.BaOrgFj">
|
|
|
|
- INSERT INTO t_ba_org_fj
|
|
|
|
|
|
+ <insert id="insertSelective" parameterType="com.mw.platform.business.mysql.entity.ScoreSet">
|
|
|
|
+ INSERT INTO t_score_set
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
<if test="id != null" >
|
|
<if test="id != null" >
|
|
id,
|
|
id,
|
|
</if>
|
|
</if>
|
|
- <if test="baOrgId != null" >
|
|
|
|
- ba_org_id,
|
|
|
|
- </if>
|
|
|
|
- <if test="wjmc != null and wjmc != ''" >
|
|
|
|
- wjmc,
|
|
|
|
- </if>
|
|
|
|
- <if test="url != null and url != ''" >
|
|
|
|
- url,
|
|
|
|
|
|
+ <if test="pjkg != null" >
|
|
|
|
+ pjkg,
|
|
</if>
|
|
</if>
|
|
- <if test="state != null" >
|
|
|
|
- state,
|
|
|
|
|
|
+ <if test="pjrq != null and pjrq != ''" >
|
|
|
|
+ pjrq,
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="baOrgId != null">
|
|
|
|
- #{baOrgId,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="pjkg != null">
|
|
|
|
+ #{pjkg,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wjmc != null and wjmc != ''">
|
|
|
|
- #{wjmc,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="url != null and url != ''">
|
|
|
|
- #{url,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="state != null">
|
|
|
|
- #{state,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="pjrq != null and pjrq != ''">
|
|
|
|
+ #{pjrq,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 更新 -->
|
|
<!-- 更新 -->
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.mw.platform.business.mysql.entity.BaOrgFj" >
|
|
|
|
- UPDATE t_ba_org_fj
|
|
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.mw.platform.business.mysql.entity.ScoreSet" >
|
|
|
|
+ UPDATE t_score_set
|
|
<set>
|
|
<set>
|
|
- <if test="baOrgId != null">
|
|
|
|
- ba_org_id = #{baOrgId,jdbcType=INTEGER},
|
|
|
|
- </if>
|
|
|
|
- <if test="wjmc != null and wjmc != ''">
|
|
|
|
- wjmc = #{wjmc,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="url != null and url != ''">
|
|
|
|
- url = #{url,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="pjkg != null">
|
|
|
|
+ pjkg = #{pjkg,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="state != null">
|
|
|
|
- state = #{state,jdbcType=INTEGER},
|
|
|
|
|
|
+ <if test="pjrq != null and pjrq != ''">
|
|
|
|
+ pjrq = #{pjrq,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
WHERE id = #{id,jdbcType=INTEGER}
|
|
WHERE id = #{id,jdbcType=INTEGER}
|
|
@@ -116,15 +90,15 @@
|
|
|
|
|
|
<!-- 总记录条数 -->
|
|
<!-- 总记录条数 -->
|
|
<select id="totalByExample" resultType="Integer" parameterType="com.mw.platform.core.Example" >
|
|
<select id="totalByExample" resultType="Integer" parameterType="com.mw.platform.core.Example" >
|
|
- select count(id) from t_ba_org_fj
|
|
|
|
|
|
+ select count(id) from t_score_set
|
|
<include refid="example_where" />
|
|
<include refid="example_where" />
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 通过主键查询 -->
|
|
<!-- 通过主键查询 -->
|
|
- <select id="selectByPrimaryKey" resultType="com.mw.platform.business.mysql.entity.BaOrgFj" >
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" resultType="com.mw.platform.business.mysql.entity.ScoreSet" >
|
|
SELECT
|
|
SELECT
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
- FROM t_ba_org_fj
|
|
|
|
|
|
+ FROM t_score_set
|
|
WHERE id = #{id,jdbcType=INTEGER}
|
|
WHERE id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -132,14 +106,14 @@
|
|
<select id="selectByExample" resultType="HashMap" parameterType="com.mw.platform.core.Example" >
|
|
<select id="selectByExample" resultType="HashMap" parameterType="com.mw.platform.core.Example" >
|
|
SELECT
|
|
SELECT
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
- FROM t_ba_org_fj
|
|
|
|
|
|
+ FROM t_score_set
|
|
<include refid="example_where" />
|
|
<include refid="example_where" />
|
|
<include refid="base_order" />
|
|
<include refid="base_order" />
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 批量删除 -->
|
|
<!-- 批量删除 -->
|
|
<update id="deleteListByPrimaryKey" parameterType="java.lang.Integer" >
|
|
<update id="deleteListByPrimaryKey" parameterType="java.lang.Integer" >
|
|
- update t_ba_org_fj set state = -9
|
|
|
|
|
|
+ update t_score_set set state = -9
|
|
<where>
|
|
<where>
|
|
<if test="record != null">
|
|
<if test="record != null">
|
|
id in
|
|
id in
|