判空
This commit is contained in:
@@ -13,8 +13,8 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* 分销相关
|
||||
*
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@@ -58,9 +58,9 @@ public class UDistributionController {
|
||||
/**
|
||||
* 分销员中心-配置信息
|
||||
*/
|
||||
@PostMapping("/centerConfig")
|
||||
public CzgResult<Map<String, Object>> centerConfig() {
|
||||
return CzgResult.success(distributionUserService.centerConfig(StpKit.USER.getLoginIdAsLong()));
|
||||
@GetMapping("/centerConfig")
|
||||
public CzgResult<Map<String, Object>> centerConfig(@RequestParam Long shopId) {
|
||||
return CzgResult.success(distributionUserService.centerConfig(StpKit.USER.getLoginIdAsLong(), shopId));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user