|
@@ -17,74 +17,74 @@
|
|
|
from tb_enterprise
|
|
|
</sql>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
<!-- 查集合 - 根据条件(参数为空时代表忽略指定条件) [G] -->
|
|
|
<select id="getList" resultMap="model">
|
|
|
<include refid="select_sql"></include>
|
|
|
- <where>
|
|
|
- <if test=' this.has("id") '> and id = #{id} </if>
|
|
|
- <if test=' this.has("name") '> and name = #{name} </if>
|
|
|
- <if test=' this.has("nationality") '> and nationality = #{nationality} </if>
|
|
|
- <if test=' this.has("type") '> and type = #{type} </if>
|
|
|
- <if test=' this.has("legalPerson") '> and legal_person = #{legalPerson} </if>
|
|
|
- <if test=' this.has("idCard") '> and id_card = #{idCard} </if>
|
|
|
- <if test=' this.has("contact") '> and contact = #{contact} </if>
|
|
|
- <if test=' this.has("shopId") '> and shop_id = #{shopId} </if>
|
|
|
- <if test=' this.has("shopName") '> and shop_name = #{shopName} </if>
|
|
|
- <if test=' this.has("bankNo") '> and bank_no = #{bankNo} </if>
|
|
|
- <if test=' this.has("bankName") '> and bank_name = #{bankName} </if>
|
|
|
- <if test=' this.has("bankAccount") '> and bank_account = #{bankAccount} </if>
|
|
|
- <if test=' this.has("dutyParagraph") '> and duty_paragraph = #{dutyParagraph} </if>
|
|
|
- <if test=' this.has("addressIds") '> and address_ids = #{addressIds} </if>
|
|
|
- <if test=' this.has("address") '> and address = #{address} </if>
|
|
|
- <if test=' this.has("agreement") '> and agreement = #{agreement} </if>
|
|
|
- <if test=' this.has("judgeStatus") '> and judge_status = #{judgeStatus} </if>
|
|
|
- <if test=' this.has("judgeContent") '> and judge_content = #{judgeContent} </if>
|
|
|
- <if test=' this.has("judgeTime") '> and judge_time = #{judgeTime} </if>
|
|
|
- <if test=' this.has("registerTime") '> and register_time = #{registerTime} </if>
|
|
|
- <if test=' this.has("personId") '> and person_id = #{personId} </if>
|
|
|
- <if test=' this.has("createTime") '> and create_time = #{createTime} </if>
|
|
|
- <if test=' this.has("createBy") '> and create_by = #{createBy} </if>
|
|
|
- <if test=' this.has("createName") '> and create_name = #{createName} </if>
|
|
|
- <if test=' this.has("updateTime") '> and update_time = #{updateTime} </if>
|
|
|
- <if test=' this.has("updateBy") '> and update_by = #{updateBy} </if>
|
|
|
- <if test=' this.has("updateName") '> and update_name = #{updateName} </if>
|
|
|
- <if test=' this.has("deleteStatus") '> and delete_status = #{deleteStatus} </if>
|
|
|
- </where>
|
|
|
- order by
|
|
|
- <choose>
|
|
|
- <when test='sortType == 1'> id desc </when>
|
|
|
- <when test='sortType == 2'> name desc </when>
|
|
|
- <when test='sortType == 3'> nationality desc </when>
|
|
|
- <when test='sortType == 4'> type desc </when>
|
|
|
- <when test='sortType == 5'> legal_person desc </when>
|
|
|
- <when test='sortType == 6'> id_card desc </when>
|
|
|
- <when test='sortType == 7'> contact desc </when>
|
|
|
- <when test='sortType == 8'> shop_id desc </when>
|
|
|
- <when test='sortType == 9'> shop_name desc </when>
|
|
|
- <when test='sortType == 10'> bank_no desc </when>
|
|
|
- <when test='sortType == 11'> bank_name desc </when>
|
|
|
- <when test='sortType == 12'> bank_account desc </when>
|
|
|
- <when test='sortType == 13'> duty_paragraph desc </when>
|
|
|
- <when test='sortType == 14'> address_ids desc </when>
|
|
|
- <when test='sortType == 15'> address desc </when>
|
|
|
- <when test='sortType == 16'> agreement desc </when>
|
|
|
- <when test='sortType == 17'> judge_status desc </when>
|
|
|
- <when test='sortType == 18'> judge_content desc </when>
|
|
|
- <when test='sortType == 19'> judge_time desc </when>
|
|
|
- <when test='sortType == 20'> register_time desc </when>
|
|
|
- <when test='sortType == 21'> person_id desc </when>
|
|
|
- <when test='sortType == 22'> create_time desc </when>
|
|
|
- <when test='sortType == 23'> create_by desc </when>
|
|
|
- <when test='sortType == 24'> create_name desc </when>
|
|
|
- <when test='sortType == 25'> update_time desc </when>
|
|
|
- <when test='sortType == 26'> update_by desc </when>
|
|
|
- <when test='sortType == 27'> update_name desc </when>
|
|
|
- <when test='sortType == 28'> delete_status desc </when>
|
|
|
- <otherwise> id desc </otherwise>
|
|
|
- </choose>
|
|
|
+<!-- <where>-->
|
|
|
+<!-- <if test=' this.has("id") '> and id = #{id} </if>-->
|
|
|
+<!-- <if test=' this.has("name") '> and name = #{name} </if>-->
|
|
|
+<!-- <if test=' this.has("nationality") '> and nationality = #{nationality} </if>-->
|
|
|
+<!-- <if test=' this.has("type") '> and type = #{type} </if>-->
|
|
|
+<!-- <if test=' this.has("legalPerson") '> and legal_person = #{legalPerson} </if>-->
|
|
|
+<!-- <if test=' this.has("idCard") '> and id_card = #{idCard} </if>-->
|
|
|
+<!-- <if test=' this.has("contact") '> and contact = #{contact} </if>-->
|
|
|
+<!-- <if test=' this.has("shopId") '> and shop_id = #{shopId} </if>-->
|
|
|
+<!-- <if test=' this.has("shopName") '> and shop_name = #{shopName} </if>-->
|
|
|
+<!-- <if test=' this.has("bankNo") '> and bank_no = #{bankNo} </if>-->
|
|
|
+<!-- <if test=' this.has("bankName") '> and bank_name = #{bankName} </if>-->
|
|
|
+<!-- <if test=' this.has("bankAccount") '> and bank_account = #{bankAccount} </if>-->
|
|
|
+<!-- <if test=' this.has("dutyParagraph") '> and duty_paragraph = #{dutyParagraph} </if>-->
|
|
|
+<!-- <if test=' this.has("addressIds") '> and address_ids = #{addressIds} </if>-->
|
|
|
+<!-- <if test=' this.has("address") '> and address = #{address} </if>-->
|
|
|
+<!-- <if test=' this.has("agreement") '> and agreement = #{agreement} </if>-->
|
|
|
+<!-- <if test=' this.has("judgeStatus") '> and judge_status = #{judgeStatus} </if>-->
|
|
|
+<!-- <if test=' this.has("judgeContent") '> and judge_content = #{judgeContent} </if>-->
|
|
|
+<!-- <if test=' this.has("judgeTime") '> and judge_time = #{judgeTime} </if>-->
|
|
|
+<!-- <if test=' this.has("registerTime") '> and register_time = #{registerTime} </if>-->
|
|
|
+<!-- <if test=' this.has("personId") '> and person_id = #{personId} </if>-->
|
|
|
+<!-- <if test=' this.has("createTime") '> and create_time = #{createTime} </if>-->
|
|
|
+<!-- <if test=' this.has("createBy") '> and create_by = #{createBy} </if>-->
|
|
|
+<!-- <if test=' this.has("createName") '> and create_name = #{createName} </if>-->
|
|
|
+<!-- <if test=' this.has("updateTime") '> and update_time = #{updateTime} </if>-->
|
|
|
+<!-- <if test=' this.has("updateBy") '> and update_by = #{updateBy} </if>-->
|
|
|
+<!-- <if test=' this.has("updateName") '> and update_name = #{updateName} </if>-->
|
|
|
+<!-- <if test=' this.has("deleteStatus") '> and delete_status = #{deleteStatus} </if>-->
|
|
|
+<!-- </where>-->
|
|
|
+<!-- order by-->
|
|
|
+<!-- <choose>-->
|
|
|
+<!-- <when test='sortType == 1'> id desc </when>-->
|
|
|
+<!-- <when test='sortType == 2'> name desc </when>-->
|
|
|
+<!-- <when test='sortType == 3'> nationality desc </when>-->
|
|
|
+<!-- <when test='sortType == 4'> type desc </when>-->
|
|
|
+<!-- <when test='sortType == 5'> legal_person desc </when>-->
|
|
|
+<!-- <when test='sortType == 6'> id_card desc </when>-->
|
|
|
+<!-- <when test='sortType == 7'> contact desc </when>-->
|
|
|
+<!-- <when test='sortType == 8'> shop_id desc </when>-->
|
|
|
+<!-- <when test='sortType == 9'> shop_name desc </when>-->
|
|
|
+<!-- <when test='sortType == 10'> bank_no desc </when>-->
|
|
|
+<!-- <when test='sortType == 11'> bank_name desc </when>-->
|
|
|
+<!-- <when test='sortType == 12'> bank_account desc </when>-->
|
|
|
+<!-- <when test='sortType == 13'> duty_paragraph desc </when>-->
|
|
|
+<!-- <when test='sortType == 14'> address_ids desc </when>-->
|
|
|
+<!-- <when test='sortType == 15'> address desc </when>-->
|
|
|
+<!-- <when test='sortType == 16'> agreement desc </when>-->
|
|
|
+<!-- <when test='sortType == 17'> judge_status desc </when>-->
|
|
|
+<!-- <when test='sortType == 18'> judge_content desc </when>-->
|
|
|
+<!-- <when test='sortType == 19'> judge_time desc </when>-->
|
|
|
+<!-- <when test='sortType == 20'> register_time desc </when>-->
|
|
|
+<!-- <when test='sortType == 21'> person_id desc </when>-->
|
|
|
+<!-- <when test='sortType == 22'> create_time desc </when>-->
|
|
|
+<!-- <when test='sortType == 23'> create_by desc </when>-->
|
|
|
+<!-- <when test='sortType == 24'> create_name desc </when>-->
|
|
|
+<!-- <when test='sortType == 25'> update_time desc </when>-->
|
|
|
+<!-- <when test='sortType == 26'> update_by desc </when>-->
|
|
|
+<!-- <when test='sortType == 27'> update_name desc </when>-->
|
|
|
+<!-- <when test='sortType == 28'> delete_status desc </when>-->
|
|
|
+<!-- <otherwise> id desc </otherwise>-->
|
|
|
+<!-- </choose>-->
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|