提交测试
This commit is contained in:
parent
e2616f675d
commit
d23a9536f3
@ -815,33 +815,34 @@ public class ResultRecordController extends AbstractController {
|
|||||||
if(dto.getCommentId() != null && dto.getCommentId().intValue() > 0 && resultDetail1 != null){
|
if(dto.getCommentId() != null && dto.getCommentId().intValue() > 0 && resultDetail1 != null){
|
||||||
//有评论id
|
//有评论id
|
||||||
if(resultDetail1.getIsDelete().intValue() == 1){
|
if(resultDetail1.getIsDelete().intValue() == 1){
|
||||||
commandValue += (commandIndex + "(删除)" + resultDetail1.getTarget() + "\r\n");
|
commandValue += (commandIndex + ":(删除)" + resultDetail1.getTarget() + "\r\n");
|
||||||
commandIndex++;
|
commandIndex++;
|
||||||
resultDetail1.setIsBack(1);
|
resultDetail1.setIsBack(1);
|
||||||
}else{
|
}else{
|
||||||
boolean isUp = false;
|
boolean isUp = false;
|
||||||
if(!resultDetail.getTarget().equals(resultDetail1.getTarget())){
|
if(!resultDetail.getTarget().equals(resultDetail1.getTarget())){
|
||||||
//打上标识
|
//打上标识
|
||||||
commandValue += (commandIndex + "(修改) 名称:" +
|
commandValue += ("(修改) 名称:" +
|
||||||
resultDetail1.getTarget()+ " 为:" + resultDetail.getTarget() + "\r\n");
|
resultDetail1.getTarget()+ " 为:" + resultDetail.getTarget() + "\r\n");
|
||||||
isUp = true;
|
isUp = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
if(!resultDetail.getKeyResult().equals(resultDetail1.getKeyResult())){
|
if(!resultDetail.getKeyResult().equals(resultDetail1.getKeyResult())){
|
||||||
//打上标识
|
//打上标识
|
||||||
commandValue += (commandIndex + "(修改) 考核标准:" +
|
commandValue += ("(修改) 考核标准:" +
|
||||||
resultDetail1.getKeyResult() + " 为:" + resultDetail.getTarget() + "\r\n");
|
resultDetail1.getKeyResult() + " 为:" + resultDetail.getTarget() + "\r\n");
|
||||||
isUp = true;
|
isUp = true;
|
||||||
}
|
}
|
||||||
if(!resultDetail.getCheckWeight().equals(resultDetail1.getCheckWeight())){
|
if(!resultDetail.getCheckWeight().equals(resultDetail1.getCheckWeight())){
|
||||||
//打上标识
|
//打上标识
|
||||||
commandValue += (commandIndex + "(修改) 权重:" +
|
commandValue += ("(修改) 权重:" +
|
||||||
resultDetail1.getCheckWeight().multiply(new BigDecimal(100)).intValue() + "% 为:"
|
resultDetail1.getCheckWeight().multiply(new BigDecimal(100)).intValue() + "% 为:"
|
||||||
+ resultDetail.getCheckWeight().multiply(new BigDecimal(100)).intValue() +
|
+ resultDetail.getCheckWeight().multiply(new BigDecimal(100)).intValue() +
|
||||||
"%\r\n");
|
"%\r\n");
|
||||||
isUp = true;
|
isUp = true;
|
||||||
}
|
}
|
||||||
if(isUp){
|
if(isUp){
|
||||||
|
commandValue = commandValue + ":" + commandValue;
|
||||||
commandIndex++;
|
commandIndex++;
|
||||||
resultDetail1.setIsBack(1);
|
resultDetail1.setIsBack(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -113,7 +113,7 @@
|
|||||||
update
|
update
|
||||||
lz_result_comment
|
lz_result_comment
|
||||||
set
|
set
|
||||||
|
opt_desc = '修改了目标',
|
||||||
comment = #{commandValue}
|
comment = #{commandValue}
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{commandId}
|
where id = #{commandId}
|
||||||
|
|||||||
@ -147,7 +147,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="selectByRecordId" resultType="com.lz.modules.sys.entity.app.ResultDetail">
|
<select id="selectByRecordId" resultType="com.lz.modules.sys.entity.app.ResultDetail">
|
||||||
select * from lz_result_detail where record_id=#{recordResultId} and is_delete = 0 order by type asc ,priority desc
|
select * from lz_result_detail where record_id=#{recordResultId} and is_delete = 0 and is_back=0 order by type asc ,priority desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectByRecordIdType" resultType="com.lz.modules.sys.entity.app.ResultDetail">
|
<select id="selectByRecordIdType" resultType="com.lz.modules.sys.entity.app.ResultDetail">
|
||||||
@ -203,7 +203,7 @@
|
|||||||
update lz_result_detail set is_delete = 1, gmt_modified = now() where record_id=#{recordId} and is_delete = 0
|
update lz_result_detail set is_delete = 1, gmt_modified = now() where record_id=#{recordId} and is_delete = 0
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectNotNoticeResultDetailByBackId" resultType="com.lz.modules.flow.model.ResultDetailDto">
|
<select id="selectNotNoticeResultDetailByBackId" resultType="com.lz.modules.sys.entity.app.ResultDetail">
|
||||||
select * from lz_result_detail where back_id = #{backId} and is_back = 2 order by priority asc
|
select * from lz_result_detail where back_id = #{backId} and is_back = 2 order by priority asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user