Commit ab4cfbc1 by zhiwj

门店品牌

parent 56c47a12
......@@ -137,7 +137,7 @@ public class StoreBrandServiceImpl implements StoreBrandService {
Double sort;
if (list.size() == 1) {
// 置底
sort = list.get(0).getSort();
sort = list.get(0).getSort() + 1d;
} else {
sort = (list.get(0).getSort() + list.get(1).getSort()) / 2d;
}
......
......@@ -94,7 +94,7 @@ public class StoreBrandController {
@RequestMapping("/set-store-brand-sort")
public RestResponse setStoreBrandSort(Integer storeBrandId, Integer seq) {
Integer enterpriseId = 1111;
ServiceResponse serviceResponse = storeBrandApiService.moveStoreBrand(enterpriseId, storeBrandId, seq);
ServiceResponse serviceResponse = storeBrandApiService.setStoreBrandSort(enterpriseId, storeBrandId, seq);
if (serviceResponse.isSuccess()) {
return RestResponse.success(serviceResponse.getResult());
} else {
......
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