This commit is contained in:
DESKTOP-369JRHT\12997 2024-09-04 17:03:59 +08:00
parent 6f65725ca1
commit bfe54b47a6
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@
FROM
active_price main
LEFT JOIN active_price_oil apo ON main.id = apo.active_id
LEFT JOIN t_account ta on main.createBy = ta.acct_id
LEFT JOIN t_account ta on main.create_by = ta.acct_id
<where>
<if test="entity.chainStorId != null and entity.chainStorId != ''">
AND main.chain_stor_id = #{entity.chainStorId}

View File

@ -58,6 +58,7 @@ public class ActivePriceOilServiceImpl extends ServiceImpl<ActivePriceOilMapper,
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
item.setChainStoreId(nowAccountInfo.getChainStoreId());
item.setStoreId(nowAccountInfo.getStoreId());
item.setOilId(item.getId());
});
saveBatch(oilList);
}