Mapper传来实体查
Mapper
List<CoalPrice> selectJkLists(@Param("coalPrice") CoalPrice coalPrice);
Mapper.xml
<select id="selectJkLists" resultMap="baseResultMap">
select * from srm.coal_price
where 1=1
<if test="coalPrice.sourceId!=null and coalPrice.sourceId!=''">
and SOURCE_ID = #{
coalPrice.sourceId}
</if>
<if test&#