Commit db54a6d3 by qwmqiuwenmin

Merge branch 'developer' of http://115.159.76.241/haoban3.0/haoban-manage3.0.git into developer

parents 1b996ca0 3dba5e4d
...@@ -130,10 +130,7 @@ public class AuditApiServiceImpl implements AuditApiService{ ...@@ -130,10 +130,7 @@ public class AuditApiServiceImpl implements AuditApiService{
storeService.saveOrUpdateStore(store); storeService.saveOrUpdateStore(store);
}else{ }else{
//门店图片修改 //门店图片修改
List<StorePhotoDTO> oldStorePhoto = JSONObject.parseArray(oldValue, StorePhotoDTO.class); storeService.updateStorePhotos(storeId, newValue);
List<StorePhotoDTO> newStorePhoto = JSONObject.parseArray(newValue, StorePhotoDTO.class);
List<String> delPhotos = oldStorePhoto.stream().map(s->s.getImageFiledCode()).collect(Collectors.toList());
storeService.editStoreImage( storeId, newStorePhoto, delPhotos);
} }
} }
void getStoreDTO(StoreDTO store,String changeField,String oldValue,String newValue){ void getStoreDTO(StoreDTO store,String changeField,String oldValue,String newValue){
......
...@@ -227,7 +227,7 @@ public class StoreController extends WebBaseController{ ...@@ -227,7 +227,7 @@ public class StoreController extends WebBaseController{
return resultResponse(HaoBanErrCode.ERR_8); return resultResponse(HaoBanErrCode.ERR_8);
} }
//获取首页销售数据 //修改门店数据
@RequestMapping("/change-store-detail") @RequestMapping("/change-store-detail")
public HaobanResponse saleDate(String wxEnterpriseId,String storeId,String staffId,String changeField,String oldValue,String newValue) { public HaobanResponse saleDate(String wxEnterpriseId,String storeId,String staffId,String changeField,String oldValue,String newValue) {
if(StringUtils.isAnyBlank(wxEnterpriseId,storeId,changeField,oldValue,newValue)){ if(StringUtils.isAnyBlank(wxEnterpriseId,storeId,changeField,oldValue,newValue)){
...@@ -260,7 +260,7 @@ public class StoreController extends WebBaseController{ ...@@ -260,7 +260,7 @@ public class StoreController extends WebBaseController{
StoreDTO store = storeService.getStore(storeId); StoreDTO store = storeService.getStore(storeId);
StoreDetailVO vo = EntityUtil.changeEntity(StoreDetailVO.class, store); StoreDetailVO vo = EntityUtil.changeEntity(StoreDetailVO.class, store);
if(CollectionUtil.isNotEmpty(imgDTOList)){ if(CollectionUtil.isNotEmpty(imgDTOList)){
List<String> imgList = imgDTOList.stream().map(s->s.getImageUrl()).collect(Collectors.toList()); List<String> imgList = imgDTOList.stream().map(s->s.getQcloudImageUrl()).collect(Collectors.toList());
vo.setImgList(imgList); vo.setImgList(imgList);
} }
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
......
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