feat:装修阶段调整

This commit is contained in:
苏竹红
2024-10-10 15:38:13 +08:00
parent b7efc55ba7
commit 3d7b4cfa1f
2 changed files with 12 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;
}