Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Gsjz
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
java
Jz-Gsjz
Commits
f4da5acd
提交
f4da5acd
authored
11月 15, 2019
作者:
wangkr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
9a900571
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
37 行增加
和
4 行删除
+37
-4
JzMessageController.java
...ft/business/jzmessage/controller/JzMessageController.java
+8
-1
JzMessageRepository.java
...g/rcisoft/business/jzmessage/dao/JzMessageRepository.java
+4
-0
JzMessageService.java
.../rcisoft/business/jzmessage/service/JzMessageService.java
+8
-0
JzMessageServiceImpl.java
...business/jzmessage/service/impl/JzMessageServiceImpl.java
+17
-3
没有找到文件。
src/main/java/org/rcisoft/business/jzmessage/controller/JzMessageController.java
浏览文件 @
f4da5acd
...
@@ -168,7 +168,14 @@ public class JzMessageController extends CyPaginationController<JzMessage> {
...
@@ -168,7 +168,14 @@ public class JzMessageController extends CyPaginationController<JzMessage> {
CyMessCons
.
MESSAGE_ALERT_ERROR
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
null
);
null
);
}
}
@ApiOperation
(
value
=
"所有状态改成选址"
,
notes
=
"所有状态改成选址"
)
@PostMapping
(
value
=
"/changeStatus"
)
public
CyResult
changeStatus
(
@RequestParam
(
"projectCode"
)
String
projectCode
)
{
return
CyResultGenUtil
.
builder
(
jzMessageServiceImpl
.
changeStatus
(
projectCode
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
projectCode
);
}
@ApiOperation
(
value
=
"完成任务"
,
notes
=
"完成任务"
)
@ApiOperation
(
value
=
"完成任务"
,
notes
=
"完成任务"
)
@GetMapping
(
value
=
"/completeTask"
)
@GetMapping
(
value
=
"/completeTask"
)
...
...
src/main/java/org/rcisoft/business/jzmessage/dao/JzMessageRepository.java
浏览文件 @
f4da5acd
...
@@ -623,5 +623,9 @@ public interface JzMessageRepository extends CyBaseMapper<JzMessage> {
...
@@ -623,5 +623,9 @@ public interface JzMessageRepository extends CyBaseMapper<JzMessage> {
") "
+
") "
+
") </script>"
)
") </script>"
)
List
<
JzMessage
>
processIsEnd
(
@Param
(
"templateType"
)
String
templateType
,
@Param
(
"projectCode"
)
String
projectCode
);
List
<
JzMessage
>
processIsEnd
(
@Param
(
"templateType"
)
String
templateType
,
@Param
(
"projectCode"
)
String
projectCode
);
@Update
(
"<script>update jz_message set jzState=#{status} where project_code=#{projectCode}</script>"
)
int
updateByprojecetCode
(
@Param
(
"projcetCode"
)
String
projectCode
,
@Param
(
"status"
)
String
status
);
}
}
src/main/java/org/rcisoft/business/jzmessage/service/JzMessageService.java
浏览文件 @
f4da5acd
...
@@ -152,4 +152,12 @@ public interface JzMessageService {
...
@@ -152,4 +152,12 @@ public interface JzMessageService {
* @return
* @return
*/
*/
Boolean
processIsEnd
(
String
templateType
,
String
projectCode
);
Boolean
processIsEnd
(
String
templateType
,
String
projectCode
);
/**
* @author: jiangpengpeng
* @description: 改变项目状态为待选址
* @date: 2019/11/15 15:48
* @param projectCode
* @return
*/
CyPersistModel
changeStatus
(
String
projectCode
);
}
}
src/main/java/org/rcisoft/business/jzmessage/service/impl/JzMessageServiceImpl.java
浏览文件 @
f4da5acd
...
@@ -13,6 +13,7 @@ import org.activiti.engine.task.Task;
...
@@ -13,6 +13,7 @@ import org.activiti.engine.task.Task;
import
org.activiti.model.CyPIAndTaskModel
;
import
org.activiti.model.CyPIAndTaskModel
;
import
org.activiti.service.CyWfService
;
import
org.activiti.service.CyWfService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.ibatis.annotations.Update
;
import
org.apache.poi.hssf.usermodel.*
;
import
org.apache.poi.hssf.usermodel.*
;
import
org.apache.poi.ss.usermodel.HorizontalAlignment
;
import
org.apache.poi.ss.usermodel.HorizontalAlignment
;
import
org.apache.poi.ss.usermodel.VerticalAlignment
;
import
org.apache.poi.ss.usermodel.VerticalAlignment
;
...
@@ -402,11 +403,11 @@ public class JzMessageServiceImpl extends CyBaseService implements JzMessageServ
...
@@ -402,11 +403,11 @@ public class JzMessageServiceImpl extends CyBaseService implements JzMessageServ
processMid
.
setTemplateid
(
jzMessage
.
getTemplateId
());
processMid
.
setTemplateid
(
jzMessage
.
getTemplateId
());
}
}
//设置version 版本为空设置为1,反之加1
//设置version 版本为空设置为1,反之加1
String
version
=
processMidRepository
.
processMidByprocessMid
(
processMid
);
List
<
String
>
version
=
processMidRepository
.
processMidByprocessMid
(
processMid
);
if
(
StringUtils
.
isEmpty
(
version
))
{
if
(
StringUtils
.
isEmpty
(
version
.
get
(
0
)
))
{
processMid
.
setVersion
(
"1"
);
processMid
.
setVersion
(
"1"
);
}
else
{
}
else
{
processMid
.
setVersion
(
String
.
valueOf
(
Integer
.
valueOf
(
version
)
+
1
));
processMid
.
setVersion
(
String
.
valueOf
(
Integer
.
valueOf
(
version
.
get
(
0
)
)
+
1
));
}
}
CyPersistModel
save
=
processMidServiceImpl
.
save
(
processMid
);
CyPersistModel
save
=
processMidServiceImpl
.
save
(
processMid
);
if
(
save
.
getInfluence
()<
1
){
if
(
save
.
getInfluence
()<
1
){
...
@@ -1207,4 +1208,16 @@ public class JzMessageServiceImpl extends CyBaseService implements JzMessageServ
...
@@ -1207,4 +1208,16 @@ public class JzMessageServiceImpl extends CyBaseService implements JzMessageServ
}
}
return
i
;
return
i
;
}
}
@Override
public
CyPersistModel
changeStatus
(
String
projectCode
)
{
if
(
StringUtils
.
isNotEmpty
(
projectCode
)){
int
i
=
jzMessageRepository
.
updateByprojecetCode
(
projectCode
,
BaseStationStatus
.
IT_WAIT_LOCATION
.
getStatus
());
return
new
CyPersistModel
(
i
);
}
return
new
CyPersistModel
(
0
);
}
}
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论