|
@@ -428,7 +428,8 @@ update t_ware_store t set t.layer = #{param7,jdbcType=INTEGER}
|
428
|
428
|
|
429
|
429
|
|
430
|
430
|
<select id="selectStore" resultMap="BaseResultMap" >
|
431
|
|
- select e.name as fk_compony_id,DATEDIFF(now(), t.add_time) + IF(TIME(now()) > TIME(t.add_time), 1, 0) as inware_day,t.*
|
|
431
|
+ select TIMESTAMPDIFF(DAY, DATE_FORMAT(t.add_time,'%Y-%m-%d %H:%i:%s'), DATE_FORMAT(NOW() ,'%Y-%m-%d %H:%i:%s')) as inware_day,
|
|
432
|
+ e.name as fk_compony_id,t.*
|
432
|
433
|
from t_ware_store t, t_maint_ware a, t_maint_stack b, t_maint_material c,t_maint_customer d,t_maint_customer e
|
433
|
434
|
where t.ware_id = a.id
|
434
|
435
|
and t.stack_id = b.id
|