六厂财务系统离线功能完善

This commit is contained in:
hejiayang
2025-11-21 15:05:33 +08:00
parent 17ec682f03
commit b10310a8fa
3 changed files with 5 additions and 1 deletions
@@ -538,7 +538,9 @@
sys_user_sub us
JOIN st_client_member_balance mb ON us.id = mb.member_id
<if test="timestamp != null and timestamp !='' ">
AND (mb.create_time > FROM_UNIXTIME(#{timestamp} / 1000) or mb.last_consumption_time > FROM_UNIXTIME(#{timestamp} / 1000))
AND (mb.create_time > FROM_UNIXTIME(#{timestamp} / 1000)
or mb.update_time > FROM_UNIXTIME(#{timestamp} / 1000)
or mb.last_consumption_time > FROM_UNIXTIME(#{timestamp} / 1000))
</if>
</select>
</mapper>
@@ -220,6 +220,7 @@ public class CqBaseEmployeeServiceImpl extends ServiceImpl<CqBaseEmployeeMapper,
@Override
public List<StUserBalanceVo> getUserBalanceList(Long timestamp){
System.out.println("用户余额心跳 :"+timestamp);
return baseMapper.getUserBalanceList(timestamp);
}
}
@@ -156,6 +156,7 @@
<if test="invoiceBalance != null">
invoice_total = invoice_total + #{invoiceBalance,jdbcType=DECIMAL},
</if>
update_time = now(),
is_sync = 0
</set>
where id = #{id}