|
@@ -3,11 +3,14 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.lnst.mapper.LnstYjMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="LnstYj" id="LnstYjResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="yjCode" column="yj_code" />
|
|
|
<result property="mchnt" column="mchnt" />
|
|
|
+<!-- <result property="kz1" column="kz1" />-->
|
|
|
+<!-- <result property="kz2" column="kz2" />-->
|
|
|
+<!-- <result property="kz3" column="kz3" />-->
|
|
|
<result property="createTimeStr" column="create_time_str" />
|
|
|
<result property="createUserId" column="create_user_id" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -26,4 +29,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="state" column="state" />
|
|
|
</resultMap>
|
|
|
|
|
|
-</mapper>
|
|
|
+ <select id="check" parameterType="LnstYj" resultType="java.util.HashMap">
|
|
|
+ select * from lnst_yj
|
|
|
+ <where>
|
|
|
+ <if test="yjCode != null and yjCode != ''"> and yj_code = #{yjCode}</if>
|
|
|
+ <if test="mchnt != null and mchnt != ''"> and mchnt = #{mchnt}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+</mapper>
|