This commit is contained in:
cun-nan 2024-06-12 16:21:04 +08:00
parent c309d2bf72
commit deb613b44e

View File

@ -1479,10 +1479,12 @@ public class OilOrderServiceImpl extends ServiceImpl<OilOrderMapper, OilOrder> i
oilOrder.setUserId(nowAccountInfo.getId()); oilOrder.setUserId(nowAccountInfo.getId());
oilOrder.setOilTagSn(oilOrder.getOilTagSn()); oilOrder.setOilTagSn(oilOrder.getOilTagSn());
TagCode tagCode = tagCodeService.selectByTagCodeSn(oilOrder.getOilTagSn()); TagCode tagCode = tagCodeService.selectByTagCodeSn(oilOrder.getOilTagSn());
String collection = tagCode.getCollection(); if (ObjectUtil.isNotEmpty(tagCode)) {
if (collection.contains("staffId")){ String collection = tagCode.getCollection();
String[] split = collection.split("staffId="); if (collection.contains("staffId")) {
oilOrder.setStaffId(Integer.parseInt(split[1])); String[] split = collection.split("staffId=");
oilOrder.setStaffId(Integer.parseInt(split[1]));
}
} }
// 判断当前店铺是否存在此用户的会员信息没有的话进行添加 // 判断当前店铺是否存在此用户的会员信息没有的话进行添加
LJStore store = storeService.selectStoreByStoreId(oilOrder.getStoreId()); LJStore store = storeService.selectStoreByStoreId(oilOrder.getStoreId());