feat:装修阶段调整
This commit is contained in:
@@ -61,6 +61,9 @@ public class GeoMapUtil {
|
||||
}
|
||||
|
||||
private static AddressInfo extractAddressInfo(JSONObject geoJson) {
|
||||
if (geoJson==null){
|
||||
return new AddressInfo();
|
||||
}
|
||||
JSONObject addressComponent = geoJson.getJSONObject("addressComponent");
|
||||
// 根据实际响应结构解析省市区街道信息,此处仅为示例
|
||||
String province = (String) addressComponent.get("province");
|
||||
@@ -78,6 +81,8 @@ public class GeoMapUtil {
|
||||
private String district;
|
||||
private String township;
|
||||
private String address;
|
||||
public AddressInfo(){
|
||||
}
|
||||
|
||||
public AddressInfo(String province, String city, String district, String township, String address) {
|
||||
this.province = province;
|
||||
|
||||
@@ -644,6 +644,13 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
if (shopStageInfoDO!=null && !ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_111.getShopSubStageStatus().equals(shopStageInfoDO.getShopSubStageStatus())){
|
||||
throw new ServiceException(ErrorCodeEnum.DESIGN_NO_COMPLETE);
|
||||
}
|
||||
AcceptanceInfoDO acceptance = acceptanceInfoDAO.selectByShopId(shopId);
|
||||
if(Objects.isNull(acceptance)) {
|
||||
AcceptanceInfoDO acceptanceInfoDO = new AcceptanceInfoDO();
|
||||
acceptanceInfoDO.setShopId(shopId);
|
||||
acceptanceInfoDO.setCreateTime(new Date());
|
||||
acceptanceInfoDAO.insertSelectiveAcceptanceInfo(acceptanceInfoDO);
|
||||
}
|
||||
shopStageInfoDAO.batchUpdateShopStageStatus(shopId, Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_112, ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_121));
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user