2023年6月9日 修复update错误

This commit is contained in:
bai 2023-06-09 16:44:04 +08:00
parent 5310e02ebb
commit 003ada4878
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<mapper namespace="org.jeecg.modules.kc.grab.imports.mapper.XxhbtkxxMapper">
<update id="updateToKeTang">
UPDATE xxhbtkxx tk, ketangbiao kt
UPDATE xxhbtkxx tk, kc_ketangbiao kt
SET kt.sftk = tk.tklx, kt.tkyy = tk.tksy, kt.bkjh = tk.bkjh
WHERE
STR_TO_DATE( tk.skrq, '%Y%m%d' ) = kt.skrq

View File

@ -1,5 +1,6 @@
package org.jeecg.modules.kc.grab.imports.service.impl;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
@ -31,6 +32,7 @@ public class XxhbtkxxServiceImpl extends ServiceImpl<XxhbtkxxMapper, Xxhbtkxx> i
@Override
@Transactional(rollbackFor = {Exception.class})
@InterceptorIgnore(tenantLine = "true")
public boolean syncList(Collection<Xxhbtkxx> entityList, boolean isDelete) {
QueryWrapper dqw = new QueryWrapper();
if(isDelete){