|
@@ -12,6 +12,7 @@
|
|
|
<result column="creatorId" property="creatorId" jdbcType="INTEGER" />
|
|
<result column="creatorId" property="creatorId" jdbcType="INTEGER" />
|
|
|
<result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
<result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
<result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
|
|
+ <result column="mn_rule" property="mn_rule" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause" >
|
|
<sql id="Example_Where_Clause" >
|
|
|
<where >
|
|
<where >
|
|
@@ -292,4 +293,16 @@
|
|
|
</where>
|
|
</where>
|
|
|
ORDER BY MN_ID DESC
|
|
ORDER BY MN_ID DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <select id="selectByCaller" resultMap="BaseResultMap">
|
|
|
|
|
+ SELECT * FROM MAXNUMBERS
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="caller">
|
|
|
|
|
+ and mn_caller=#{caller}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="companyId">
|
|
|
|
|
+ and COMPANYID=#{companyId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ ORDER BY MN_ID DESC
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|