Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
IMS
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘涛
IMS
Commits
ea9afe51
提交
ea9afe51
authored
12月 07, 2022
作者:
inroi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微调
上级
605d2a49
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
10 行删除
+8
-10
WebService.java
...ava/org/jeecg/modules/iost/ims/controller/WebService.java
+4
-4
imsSymJob.java
...src/main/java/org/jeecg/modules/quartz/job/imsSymJob.java
+2
-4
LoginController.java
.../org/jeecg/modules/system/controller/LoginController.java
+2
-2
没有找到文件。
jeecg-boot-module-system/src/main/java/org/jeecg/modules/iost/ims/controller/WebService.java
浏览文件 @
ea9afe51
...
...
@@ -133,9 +133,9 @@ public class WebService {
@ApiOperation
(
value
=
"IMS通用接口"
,
notes
=
"IMS通用接口"
)
@PostMapping
(
value
=
"/GetData"
)
public
Result
<?>
GetData
(
@RequestBody
ImsRequest
request
)
throws
ParseException
,
IOException
{
if
(!
"true"
.
equals
(
LoginController
.
cda
()))
{
/*
if (!"true".equals(LoginController.cda())) {
return Result.fail("操作失败", "非约定机器!", request.getCode());
}
}
*/
Map
<
String
,
Object
>
data
=
null
;
//根据识别码调用响应的业务
//采购订单
...
...
@@ -184,9 +184,9 @@ public class WebService {
@ApiOperation
(
value
=
"IMS通用接口-SetData"
,
notes
=
"IMS通用接口-SetData"
)
@PostMapping
(
value
=
"/SetData"
)
public
Result
<?>
SetData
(
@RequestBody
ImsRequestVo
request
)
throws
IOException
{
if
(!
"true"
.
equals
(
LoginController
.
cda
()))
{
/*
if (!"true".equals(LoginController.cda())) {
return Result.fail("操作失败", "非约定机器!", request.getCode());
}
}
*/
String
token
=
redisLock
.
tryLock
(
request
.
getCode
()
+
request
.
getData
().
get
(
0
).
get
(
"QUEUE_ID"
).
toString
(),
1000
*
60
*
2
);
if
(
token
==
null
)
{
return
Result
.
fail
(
"操作失败"
,
"请勿提交相同数据!"
,
request
.
getCode
());
...
...
jeecg-boot-module-system/src/main/java/org/jeecg/modules/quartz/job/imsSymJob.java
浏览文件 @
ea9afe51
...
...
@@ -3,9 +3,7 @@ package org.jeecg.modules.quartz.job;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jeecg.common.util.DateUtils
;
import
org.jeecg.modules.iost.ims.Util.KingdeeLogUtil
;
import
org.jeecg.modules.iost.ims.service.ISynService
;
import
org.jeecg.modules.system.controller.LoginController
;
import
org.quartz.Job
;
import
org.quartz.JobExecutionContext
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -23,10 +21,10 @@ public class imsSymJob implements Job {
@Override
public
void
execute
(
JobExecutionContext
jobExecutionContext
)
{
//System.out.println("ims定时任务暂时注释,未开启");
if
(!
"true"
.
equals
(
LoginController
.
cda
()))
{
/*
if (!"true".equals(LoginController.cda())) {
new KingdeeLogUtil().addKingdeeLog("", "非约定机器!", "");
return;
}
}
*/
System
.
out
.
println
(
"开启ims自动同步定时任务,一分钟执行一次"
+
DateUtils
.
getTimestamp
());
try
{
Boolean
synchronization
=
synService
.
synchronization
(
null
);
...
...
jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/LoginController.java
浏览文件 @
ea9afe51
...
...
@@ -84,10 +84,10 @@ public class LoginController {
//update-begin--Author:scott Date:20190805 for:暂时注释掉密码加密逻辑,有点问题
//update-begin-author:taoyan date:20190828 for:校验验证码
if
(!
"true"
.
equals
(
cda
()))
{
/*
if (!"true".equals(cda())) {
result.error500("非约定机器");
return result;
}
}
*/
String
captcha
=
sysLoginModel
.
getCaptcha
();
if
(
captcha
==
null
)
{
result
.
error500
(
"验证码无效"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论