提交悠
This commit is contained in:
parent
491f31797d
commit
d31cc2fec7
@ -254,6 +254,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
list.add(resultDetailService.getWenHuaJiaZhiGuaResult2());
|
list.add(resultDetailService.getWenHuaJiaZhiGuaResult2());
|
||||||
list.add(resultDetailService.getLastResult(resultRecord.getLastScore()));
|
list.add(resultDetailService.getLastResult(resultRecord.getLastScore()));
|
||||||
List<ResultComment> comments = resultCommentService.selectByRecordId(resultRecord.getId());
|
List<ResultComment> comments = resultCommentService.selectByRecordId(resultRecord.getId());
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(comments)) {
|
if (CollectionUtils.isNotEmpty(comments)) {
|
||||||
ResultDetailResp header = new ResultDetailResp();
|
ResultDetailResp header = new ResultDetailResp();
|
||||||
header.setCheckRange("领导");
|
header.setCheckRange("领导");
|
||||||
@ -987,7 +988,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
/**
|
/**
|
||||||
* 删除
|
* 删除
|
||||||
*/
|
*/
|
||||||
// http://localhost:8080/lz_management/user/lzresultrecord/new/resultRecordDetail?resultRecordId=322&loginUserId=313
|
// http://localhost:8080/lz_management/user/lzresultrecord/new/resultRecordDetail?resultRecordId=331&loginUserId=825
|
||||||
@RequestMapping("/new/resultRecordDetail")
|
@RequestMapping("/new/resultRecordDetail")
|
||||||
public R newResultRecordList(RecordDetailDto recordDetailDto) {
|
public R newResultRecordList(RecordDetailDto recordDetailDto) {
|
||||||
if(recordDetailDto.getLoginUserId() ==null && getUser() !=null ){
|
if(recordDetailDto.getLoginUserId() ==null && getUser() !=null ){
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
package com.lz.modules.sys.entity.app;
|
package com.lz.modules.sys.entity.app;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
@ -6,6 +7,8 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* </p>*业绩评论表
|
* </p>*业绩评论表
|
||||||
@ -50,6 +53,10 @@ public class ResultComment implements java.io.Serializable {
|
|||||||
//操作名称
|
//操作名称
|
||||||
@ApiModelProperty(value = "操作名称", name = "optDesc")
|
@ApiModelProperty(value = "操作名称", name = "optDesc")
|
||||||
private String optDesc;
|
private String optDesc;
|
||||||
|
|
||||||
|
|
||||||
|
@TableField(exist=false)
|
||||||
|
private String avatar;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
|
|||||||
@ -1122,6 +1122,11 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
end.setStatus(flag ? 1 : 0);
|
end.setStatus(flag ? 1 : 0);
|
||||||
flowRecordList.add(end);
|
flowRecordList.add(end);
|
||||||
List<ResultComment> resultCommentList = resultCommentService.selectByRecordId(recordDetailDto.getResultRecordId());
|
List<ResultComment> resultCommentList = resultCommentService.selectByRecordId(recordDetailDto.getResultRecordId());
|
||||||
|
for(ResultComment resultComment:resultCommentList){
|
||||||
|
StaffEntity staffEntity = staffService.selectStaffById(resultComment.getStaffId());
|
||||||
|
resultComment.setAvatar(staffEntity.getAvatar());
|
||||||
|
}
|
||||||
|
|
||||||
Map<String,Integer> auth = new HashMap<>();
|
Map<String,Integer> auth = new HashMap<>();
|
||||||
auth.put("showScore",1);
|
auth.put("showScore",1);
|
||||||
auth.put("showResult",1);
|
auth.put("showResult",1);
|
||||||
|
|||||||
@ -102,7 +102,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="selectByRecordId" resultType="com.lz.modules.sys.entity.app.ResultComment">
|
<select id="selectByRecordId" resultType="com.lz.modules.sys.entity.app.ResultComment">
|
||||||
select * from lz_result_comment where record_id=#{recordId} and is_delete = 0
|
select * from lz_result_comment where record_id=#{recordId} and is_delete = 0 order by id desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectLastComment" resultType="com.lz.modules.sys.entity.app.ResultComment">
|
<select id="selectLastComment" resultType="com.lz.modules.sys.entity.app.ResultComment">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user