|
|
|
@@ -269,14 +269,12 @@ public class TtMerchantPoiServiceImpl implements TtMerchantPoiService { |
|
|
|
// if(StringUtils.isBlank(supplierId)){ |
|
|
|
// return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"同步失败"); |
|
|
|
// } |
|
|
|
if(!EnumSupplierSyncStatus.sync_success.getCode().equals(merchantPoi.getSyncStatus())){ |
|
|
|
TtMerchantPoi updPoi = new TtMerchantPoi(); |
|
|
|
updPoi.setId(id); |
|
|
|
updPoi.setSupplierId(supplierId); |
|
|
|
updPoi.setLastSyncStatus(EnumSupplierSyncStatus.sync_wait.getCode()); |
|
|
|
updPoi.setUpdateDate(new Date()); |
|
|
|
ttMerchantPoiMapper.updateById(merchantPoi); |
|
|
|
} |
|
|
|
TtMerchantPoi updPoi = new TtMerchantPoi(); |
|
|
|
updPoi.setId(id); |
|
|
|
updPoi.setSupplierId(supplierId); |
|
|
|
updPoi.setLastSyncStatus(EnumSupplierSyncStatus.sync_wait.getCode()); |
|
|
|
updPoi.setUpdateDate(new Date()); |
|
|
|
ttMerchantPoiMapper.updateById(updPoi); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
|