日期和sql优化
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<select id="getDetailList" parameterType="com.jsh.erp.datasource.entities.MaterialExtendExample" resultMap="ResultMapList">
|
||||
select DISTINCT d.Id,d.bar_code,d.commodity_unit,d.commodity_decimal,d.purchase_decimal,d.wholesale_decimal,d.low_decimal
|
||||
from jsh_material_extend d
|
||||
where d.material_id = '${materialId}'
|
||||
where d.material_id = #{materialId}
|
||||
and ifnull(d.delete_Flag,'0') !='1'
|
||||
order by d.default_flag desc,d.id asc
|
||||
</select>
|
||||
@@ -19,7 +19,7 @@
|
||||
select update_time from jsh_material_extend
|
||||
where 1=1
|
||||
<if test="lastTime != null">
|
||||
and update_time > ${lastTime}
|
||||
and update_time > #{lastTime}
|
||||
</if>
|
||||
order by update_time asc
|
||||
<if test="syncNum != null">
|
||||
|
||||
Reference in New Issue
Block a user