bug修改

This commit is contained in:
lgh 2022-07-16 13:31:20 +08:00
parent 8047bab61c
commit 6eb2839b7a
2 changed files with 6 additions and 6 deletions

View File

@ -79,16 +79,16 @@ public class RunTaskUtils {
Map<String, Object> yeya = new HashMap(); Map<String, Object> yeya = new HashMap();
//type=1为 //type=1为
yeya.put("type", 1); yeya.put("type", 1);
if ("YYT003".equals(startPoint.getNote())){ if ("YYT003".equals(currTask.getStartPosition())){
yeya.put("number", 3); yeya.put("number", 3);
} }
if ("YYT004".equals(startPoint.getNote())){ if ("YYT004".equals(currTask.getStartPosition())){
yeya.put("number", 4); yeya.put("number", 4);
} }
if ("YYT002".equals(startPoint.getNote())){ if ("YYT002".equals(currTask.getStartPosition())){
yeya.put("number", 2); yeya.put("number", 2);
} }
if ("YYT001".equals(startPoint.getNote())){ if ("YYT001".equals(currTask.getStartPosition())){
yeya.put("number", 1); yeya.put("number", 1);
} }
String yeyaJudgeStatus = JSON.toJSONString(yeya); String yeyaJudgeStatus = JSON.toJSONString(yeya);

View File

@ -89,11 +89,11 @@ public class PlatformUpmsServiceFallback implements PlatformUpmsService {
*/ */
@Override @Override
public R<LoginUser> login(String mobile, String password) { public R<LoginUser> login(String mobile, String password) {
if (isDebug()) { /* if (isDebug()) {
log.warn("平台通用权限管理服务不可用,使用测试用户数据"); log.warn("平台通用权限管理服务不可用,使用测试用户数据");
return R.ok(LoginUser.builder().userId(1L).mobile("13588441519").userName("jiff") return R.ok(LoginUser.builder().userId(1L).mobile("13588441519").userName("jiff")
.orgId(1L).userType(LoginUser.USER_TYPE_PLATFORM).build()); .orgId(1L).userType(LoginUser.USER_TYPE_PLATFORM).build());
} }*/
return upmsService.login(mobile, password); return upmsService.login(mobile, password);
} }