需求 更新數據 根據yearRule年規則 更新etime的值 yearRule為1 自然年(契約簽訂之日起,到當年年末止) yearRule為2 順延年(契約簽訂之日,到下一年的今天之前一天) yearRule為3 永久
入參 是 List<Map<String, Object>>
大前提: 配置文件中連接數據庫的url上必須加上 &allowMultiQueries=true
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&allowMultiQueries=true
mapper.xml
相關的日期操作函數:
https://www.cnblogs.com/1996swg/p/9254492.html
https://www.cnblogs.com/ggjucheng/p/3352280.html