|
@@ -133,10 +133,10 @@
|
|
|
SELECT * FROM charge_type_subject_mapper
|
|
|
<where>
|
|
|
<if test="chargeTypeId != null">
|
|
|
- charge_type_id_ = #{chargeTypeId}
|
|
|
+ and charge_type_id_ = #{chargeTypeId}
|
|
|
</if>
|
|
|
<if test="subjectId != null">
|
|
|
- subject_id_ = #{subjectId}
|
|
|
+ and subject_id_ = #{subjectId}
|
|
|
</if>
|
|
|
</where>
|
|
|
ORDER BY id_ desc
|
|
@@ -148,10 +148,10 @@
|
|
|
SELECT COUNT(*) FROM charge_type_subject_mapper
|
|
|
<where>
|
|
|
<if test="chargeTypeId != null">
|
|
|
- charge_type_id_ = #{chargeTypeId}
|
|
|
+ and charge_type_id_ = #{chargeTypeId}
|
|
|
</if>
|
|
|
<if test="subjectId != null">
|
|
|
- subject_id_ = #{subjectId}
|
|
|
+ and subject_id_ = #{subjectId}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|