评分记录、被考核对象详情搜索条件修改

main 77
hshansha 1 month ago
parent b54b27c60d
commit 8cfc2885c4

@ -24,9 +24,13 @@ public class KhVoteEmp extends BaseEntity
private Long khitemTypeid; private Long khitemTypeid;
/** 投票id */ /** 投票id */
@Excel(name = "投票id") // @Excel(name = "投票id")
private Long voteId; private Long voteId;
/** 考核任务 */
@Excel(name = "考核任务")
private String pcName;
/** 投票主题 */ /** 投票主题 */
@Excel(name = "投票主题") @Excel(name = "投票主题")
private String voteTitle; private String voteTitle;
@ -96,6 +100,14 @@ public class KhVoteEmp extends BaseEntity
return version; return version;
} }
public String getPcName() {
return pcName;
}
public void setPcName(String pcName) {
this.pcName = pcName;
}
public void setVersion(Integer version) { public void setVersion(Integer version) {
this.version = version; this.version = version;
} }

@ -62,8 +62,8 @@ public class KhVoteRecard extends BaseEntity
private String voteDetails; private String voteDetails;
/** 投票时间 */ /** 投票时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "投票时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "投票时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date voteTime; private Date voteTime;
/** IP */ /** IP */

@ -189,6 +189,7 @@ public class KhVoteEmpServiceImpl implements IKhVoteEmpService {
recard.setVoteId(param.getVoteId()); recard.setVoteId(param.getVoteId());
recard.setUserId(param.getUserId()); recard.setUserId(param.getUserId());
recard.setUserName(param.getUserName()); recard.setUserName(param.getUserName());
recard.setVoteTime(nowDate);
//选项评分 //选项评分
if (typeid.equals(1L)) { if (typeid.equals(1L)) {

@ -9,6 +9,7 @@
<result property="khitemTypeid" column="khitem_typeId"/> <result property="khitemTypeid" column="khitem_typeId"/>
<result property="voteId" column="vote_id"/> <result property="voteId" column="vote_id"/>
<result property="voteTitle" column="vote_title"/> <result property="voteTitle" column="vote_title"/>
<result property="pcName" column="pingce_name" />
<result property="bkhdxId" column="bkhdx_id"/> <result property="bkhdxId" column="bkhdx_id"/>
<result property="bkhdxName" column="bkhdx_name"/> <result property="bkhdxName" column="bkhdx_name"/>
<result property="content" column="content"/> <result property="content" column="content"/>
@ -56,19 +57,20 @@
</sql> </sql>
<select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult"> <select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult">
<include refid="selectKhVoteEmpVo"/> select ve.* ,ve.pingce_name from kh_vote_emp join kh_vote v on ve.voteId=v.id
<where> <where>
<if test="khitemTypeid != null ">and khitem_typeId = #{khitemTypeid}</if> <if test="khitemTypeid != null ">and khitem_typeId = #{khitemTypeid}</if>
<if test="voteId != null ">and vote_id = #{voteId}</if> <if test="voteId != null ">and vote_id = #{voteId}</if>
<if test="voteTitle != null and voteTitle != ''">and vote_title = #{voteTitle}</if> <if test="voteTitle != null and voteTitle != ''">and vote_title = #{voteTitle}</if>
<if test="pcName != null and pcName != '' "> and ve.pingce_name like concat('%', #{pcName}, '%')</if>
<if test="bkhdxId != null ">and bkhdx_id = #{bkhdxId}</if> <if test="bkhdxId != null ">and bkhdx_id = #{bkhdxId}</if>
<if test="bkhdxName != null and bkhdxName != ''">and bkhdx_name like concat('%', #{bkhdxName}, '%')</if> <if test="bkhdxName != null and bkhdxName != ''">and bkhdx_name like concat('%', #{bkhdxName}, '%')</if>
<if test="content != null and content != ''">and content = #{content}</if> <if test="content != null and content != ''">and content = #{content}</if>
<if test="voteNum != null ">and vote_num = #{voteNum}</if> <if test="voteNum != null ">and vote_num = #{voteNum}</if>
<if test="optionA != null ">and option_a = #{optionA}</if> <!--<if test="optionA != null ">and option_a = #{optionA}</if>
<if test="optionB != null ">and option_b = #{optionB}</if> <if test="optionB != null ">and option_b = #{optionB}</if>
<if test="optionC != null ">and option_c = #{optionC}</if> <if test="optionC != null ">and option_c = #{optionC}</if>
<if test="optionD != null ">and option_d = #{optionD}</if> <if test="optionD != null ">and option_d = #{optionD}</if>-->
<if test="voteScore != null ">and vote_score = #{voteScore}</if> <if test="voteScore != null ">and vote_score = #{voteScore}</if>
<if test="avgScore != null ">and avg_score = #{avgScore}</if> <if test="avgScore != null ">and avg_score = #{avgScore}</if>
<if test="percentage != null ">and percentage = #{percentage}</if> <if test="percentage != null ">and percentage = #{percentage}</if>

@ -42,8 +42,8 @@
<if test="userName != null and userName != ''"> and r.user_name like concat('%', #{userName}, '%')</if> <if test="userName != null and userName != ''"> and r.user_name like concat('%', #{userName}, '%')</if>
<if test="uid != null "> and r.uid = #{uid}</if> <if test="uid != null "> and r.uid = #{uid}</if>
<if test="tprName != null and tprName != ''"> and r.tpr_name like concat('%', #{tprName}, '%')</if> <if test="tprName != null and tprName != ''"> and r.tpr_name like concat('%', #{tprName}, '%')</if>
<!-- <if test="voteDetails != null and voteDetails != ''"> and r.vote_details = #{voteDetails}</if>--> <if test="voteDetails != null and voteDetails != ''"> and r.vote_details like concat('%', #{voteDetails}, '%')</if>
<if test="voteTime != null "> and r.vote_time = #{voteTime}</if> <if test="voteTime != null "> and DATE_FORMAT(r.vote_time, '%Y-%m-%d') = DATE_FORMAT(#{voteTime}, '%Y-%m-%d') </if>
<if test="ipAddress != null and ipAddress != ''"> and r.ip_address = #{ipAddress}</if> <if test="ipAddress != null and ipAddress != ''"> and r.ip_address = #{ipAddress}</if>
</where> </where>
</select> </select>

Loading…
Cancel
Save