Commit 996087dc authored by 位宇华's avatar 位宇华

数据同步提交

parent ca2069fe
Pipeline #11 failed with stages
......@@ -45,8 +45,8 @@ public class DataSyncServiceimpl implements DataSyncService {
JSONObject jsonObject = new JSONObject();
String lastMonth = DateUtils.getYearAndMonthLast();
ParmDataModel parmDataModel = new ParmDataModel();
parmDataModel.setPeriod(lastMonth);
//parmDataModel.setPeriod("2024-03");
//parmDataModel.setPeriod(lastMonth);
parmDataModel.setPeriod("2024-05");
String period = parmDataModel.getPeriod();
parmDataModel.setYear(period.substring(0, 4));
parmDataModel.setMonth(StringUtils.startsWith(period.substring(5, 7), "0") ? StringUtils.substringAfterLast(period.substring(5, 7), "0") : period.substring(5, 7));
......
......@@ -3,7 +3,7 @@
<mapper namespace="com.tianyi.sync.mapper.slave.FallSlaveMapper">
<insert id="addAll">
INSERT INTO elimbak
INSERT INTO elim
( `year`, `month`, entitycode, entityname, accountcode, ICPcode, orivalue,c1,c2,c3,c4)
VALUES
<foreach collection="fallDataModelList" item="item" index="index" separator=",">
......@@ -13,7 +13,7 @@
</insert>
<delete id="delete">
delete
from elimbak
from elim
where `year` = #{year}
and `month`=#{month}
</delete>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment