|
@@ -12,6 +12,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.geo.Point;
|
|
import org.springframework.data.geo.Point;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
import org.springframework.http.HttpHeaders;
|
|
@@ -140,6 +141,8 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
* 懒得查, 留着导出Excel
|
|
* 懒得查, 留着导出Excel
|
|
|
*/
|
|
*/
|
|
|
List<StoreInfoVo> toExcel = new ArrayList<>();
|
|
List<StoreInfoVo> toExcel = new ArrayList<>();
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private StoreInfoUserMiddleMapper storeInfoUserMiddleMapper;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 门店详情
|
|
* 门店详情
|
|
@@ -608,6 +611,10 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
storeUser.setIdCard(storeInfoDto.getIdCard());
|
|
storeUser.setIdCard(storeInfoDto.getIdCard());
|
|
|
}
|
|
}
|
|
|
storeUserMapper.updateById(storeUser);
|
|
storeUserMapper.updateById(storeUser);
|
|
|
|
|
+ StoreInfoUserMiddle storeInfoUserMiddle = new StoreInfoUserMiddle();
|
|
|
|
|
+ storeInfoUserMiddle.setStoreId(storeInfo.getId());
|
|
|
|
|
+ storeInfoUserMiddle.setUserId(storeUser.getId());
|
|
|
|
|
+ storeInfoUserMiddleMapper.insert(storeInfoUserMiddle);
|
|
|
//存入店铺营业执照图片
|
|
//存入店铺营业执照图片
|
|
|
List<String> businessLicenseAddress = storeInfoDto.getBusinessLicenseAddress();
|
|
List<String> businessLicenseAddress = storeInfoDto.getBusinessLicenseAddress();
|
|
|
for (String licenseAddress : businessLicenseAddress) {
|
|
for (String licenseAddress : businessLicenseAddress) {
|