|
|
@@ -36,8 +36,26 @@
|
|
|
register_date,
|
|
|
punish_amount,
|
|
|
declare_date
|
|
|
- from ry.bj_administrative_punish
|
|
|
+ from bj_administrative_punish
|
|
|
where del_flag = '0'
|
|
|
+ <if test="bo.caseNo != null and bo.caseNo != ''">
|
|
|
+ and case_no like concat('%',#{bo.caseNo},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.punishReason != null and bo.punishReason != ''">
|
|
|
+ and punish_reason like concat('%',#{bo.punishReason},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.punishObjName != null and bo.punishObjName != ''">
|
|
|
+ and punish_obj_name like concat('%',#{bo.punishObjName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.shipFirstregNo != null and bo.shipFirstregNo != ''">
|
|
|
+ and ship_firstreg_no like concat('%',#{bo.shipFirstregNo},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.shipOwner != null and bo.shipOwner != ''">
|
|
|
+ and ship_owner like concat('%',#{bo.shipOwner},'%')
|
|
|
+ </if>
|
|
|
+ <if test="bo.startDecisionDate != null and bo.endDecisionDate != null">
|
|
|
+ and declare_date between #{bo.startDecisionDate} and #{bo.endDecisionDate}
|
|
|
+ </if>
|
|
|
order by case_no,
|
|
|
RANDOM()
|
|
|
</select>
|