Commit 7f6736e1 by zhiwj

更新门店分数

parent 64a7628c
......@@ -293,4 +293,17 @@ public interface StoreApiService {
* @throws
*/
ServiceResponse<String> importStoreForOperation(ProcessBatchStoreDTO processBatchStoreDTO);
/**
* 更新门店分数
* @Title: updateScore
* @Description:
* @author zhiwj
* @param enterpriseId
* @param storeId
* @param storeScore
* @return void
* @throws
*/
ServiceResponse<Void> updateScore(Integer enterpriseId, Integer storeId, double storeScore);
}
......@@ -752,6 +752,16 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
public ServiceResponse<Void> updateScore(Integer enterpriseId, Integer storeId, double storeScore) {
StoreDTO storeDTO = new StoreDTO();
storeDTO.setEnterpriseId(enterpriseId);
storeDTO.setStoreId(storeId);
storeDTO.setScore(storeScore);
this.storeService.update(storeDTO);
return EnterpriseServiceResponse.success();
}
@Override
public ServiceResponse<StoreDTO> getStoreById(Integer enterpriseId, Integer storeId) {
String key = Constants.STORE_KEY + enterpriseId + ":" + storeId;
......
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