Commit fce2a9cc authored by Quxl's avatar Quxl

xxx

parent f730b062
......@@ -4,6 +4,7 @@ import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -36,6 +37,9 @@ public class MemberApplyController {
@Autowired
private MemberTokenService tokenService;
@Value("${opt.member_id}")
private Integer opt_member_id;
@ResponseBody
@PostMapping("get_list")
......@@ -47,7 +51,7 @@ public class MemberApplyController {
LoginToken loginToken = tokenService.getToken();
Integer member_id = (Integer)loginToken.getId();
List<Map<String, Object>> list = null;
if(member_id == 3785) {
if(member_id == opt_member_id) {
list = memberService.queryListAll(keyword);
} else {
list = memberService.queryListByMemberID(member_id);
......
......@@ -14,4 +14,6 @@ spring.datasource.max-active=100
spring.datasource.min-idle=10
aliyun.sts.accessKeyId=LTAIOtHCCpDLXYp8
aliyun.sts.accessKeySecret=9XTHW7P9TTRvCsBHBSclOue2tdWOoa
\ No newline at end of file
aliyun.sts.accessKeySecret=9XTHW7P9TTRvCsBHBSclOue2tdWOoa
opt.member_id=3785
\ No newline at end of file
......@@ -14,4 +14,7 @@ spring.datasource.max-active=100
spring.datasource.min-idle=10
aliyun.sts.accessKeyId=LTAIOtHCCpDLXYp8
aliyun.sts.accessKeySecret=9XTHW7P9TTRvCsBHBSclOue2tdWOoa
\ No newline at end of file
aliyun.sts.accessKeySecret=9XTHW7P9TTRvCsBHBSclOue2tdWOoa
opt.member_id=4
\ No newline at end of file
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