Commit fc804921 by zhiwj

添加缺少的字段

parent 0f2e33f6
......@@ -73,6 +73,11 @@ public class BadEvaluateConfigDTO implements Serializable {
private Integer badTotalScore;
/**
* 任务是否自动分配
*/
private Integer taskAssign;
/**
* 好评判定是否开启
*/
private Integer goodStatus;
......@@ -258,4 +263,12 @@ public class BadEvaluateConfigDTO implements Serializable {
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getTaskAssign() {
return taskAssign;
}
public void setTaskAssign(Integer taskAssign) {
this.taskAssign = taskAssign;
}
}
......@@ -53,6 +53,7 @@ public class EvaluateReplyDTO implements Serializable {
*/
private String memberName;
private String memberImgUrl;
/**
*
*/
......@@ -151,4 +152,12 @@ public class EvaluateReplyDTO implements Serializable {
public List<String> getImgList() {
return imgList;
}
public String getMemberImgUrl() {
return memberImgUrl;
}
public void setMemberImgUrl(String memberImgUrl) {
this.memberImgUrl = memberImgUrl;
}
}
......@@ -51,6 +51,18 @@ public interface EvaluateManageApiService {
* @throws
*/
ServiceResponse<Void> updateShowStatus(Integer enterpriseId, List<Integer> evaluateId, Integer showStatus);
/**
* @Title: updateReplyShowStatus
* @Description:
* @author zhiwj
* @param enterpriseId
* @param evaluateReplyId
* @param showStatus
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> updateReplyShowStatus(Integer enterpriseId, Integer evaluateReplyId, Integer showStatus);
/**
* 修改是否为热评置顶
......
......@@ -55,4 +55,6 @@ public interface TabEvaluateReplyMapper {
int updateByPrimaryKey(TabEvaluateReply record);
List<TabEvaluateReply> listEvaluateReply(@Param("enterpriseId") Integer enterpriseId, @Param("evaluateId") Integer evaluateId);
void updateReplyShowStatus(@Param("enterpriseId") Integer enterpriseId, @Param("evaluateReplyId") Integer evaluateReplyId, @Param("showStatus") Integer showStatus);
}
\ No newline at end of file
......@@ -67,6 +67,11 @@ public class TabBadEvaluateConfig {
private Integer badTotalScore;
/**
* 任务是否自动分配
*/
private Integer taskAssign;
/**
* 好评判定是否开启
*/
private Integer goodStatus;
......@@ -197,6 +202,14 @@ public class TabBadEvaluateConfig {
this.badTotalScore = badTotalScore;
}
public Integer getTaskAssign() {
return taskAssign;
}
public void setTaskAssign(Integer taskAssign) {
this.taskAssign = taskAssign;
}
public Integer getGoodStatus() {
return goodStatus;
}
......
......@@ -47,6 +47,16 @@ public class TabEvaluateReply {
private String memberName;
/**
* 会员头像
*/
private String memberImgUrl;
/**
* 是否展示
*/
private Integer showStatus;
/**
*
*/
private Integer userId;
......@@ -135,6 +145,22 @@ public class TabEvaluateReply {
this.memberName = memberName;
}
public String getMemberImgUrl() {
return memberImgUrl;
}
public void setMemberImgUrl(String memberImgUrl) {
this.memberImgUrl = memberImgUrl;
}
public Integer getShowStatus() {
return showStatus;
}
public void setShowStatus(Integer showStatus) {
this.showStatus = showStatus;
}
public Integer getUserId() {
return userId;
}
......
......@@ -20,4 +20,6 @@ public interface EvaluateReplyService {
int saveMemberReplyEvaluate(MemberReplyDTO memberReplyDTO);
void delReply(Integer evaluateReplyId);
void updateReplyShowStatus(Integer enterpriseId, Integer evaluateReplyId, Integer showStatus);
}
......@@ -67,4 +67,9 @@ public class EvaluateReplyServiceImpl implements EvaluateReplyService {
tabEvaluateReply.setStatus(Constants.DEL_STATUS);
tabEvaluateReplyMapper.updateByPrimaryKeySelective(tabEvaluateReply);
}
@Override
public void updateReplyShowStatus(Integer enterpriseId, Integer evaluateReplyId, Integer showStatus) {
tabEvaluateReplyMapper.updateReplyShowStatus(enterpriseId, evaluateReplyId, showStatus);
}
}
......@@ -86,6 +86,12 @@ public class EvaluateManageApiServiceImpl implements EvaluateManageApiService {
}
@Override
public ServiceResponse<Void> updateReplyShowStatus(Integer enterpriseId, Integer evaluateReplyId, Integer showStatus) {
this.evaluateReplyService.updateReplyShowStatus(enterpriseId, evaluateReplyId, showStatus);
return EnterpriseServiceResponse.success();
}
@Override
public ServiceResponse<Void> updateTopHotStatus(Integer enterpriseId, Integer evaluateId, Integer topHotStatus) {
if (Constants.OPEN.equals(topHotStatus)) {
TabEvaluate evaluate = this.evaluateService.getEvaluate(enterpriseId, evaluateId);
......
......@@ -8,8 +8,10 @@
<result column="reply_date" jdbcType="TIMESTAMP" property="replyDate" />
<result column="replyer_type" jdbcType="INTEGER" property="replyerType" />
<result column="reply_content" jdbcType="VARCHAR" property="replyContent" />
<result column="member_id" jdbcType="INTEGER" property="memberId" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="member_name" jdbcType="VARCHAR" property="memberName" />
<result column="member_img_url" jdbcType="VARCHAR" property="memberImgUrl" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="user_id" jdbcType="INTEGER" property="userId" />
<result column="user_name" jdbcType="VARCHAR" property="userName" />
<result column="status" jdbcType="INTEGER" property="status" />
......@@ -18,7 +20,8 @@
</resultMap>
<sql id="Base_Column_List">
evaluate_reply_id, enterprise_id, evaluate_id, reply_date, replyer_type, reply_content,
member_id, member_name, user_id, user_name, status, create_time, update_time
member_id, member_name, member_img_url, show_status, user_id, user_name, status,
create_time, update_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
......@@ -33,14 +36,16 @@
<insert id="insert" parameterType="com.gic.evaluate.entity.TabEvaluateReply">
insert into tab_evaluate_reply (evaluate_reply_id, enterprise_id, evaluate_id,
reply_date, replyer_type, reply_content,
member_id, member_name, user_id,
user_name, status, create_time,
update_time)
member_id, member_name, member_img_url,
show_status, user_id, user_name,
status, create_time, update_time
)
values (#{evaluateReplyId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{evaluateId,jdbcType=INTEGER},
#{replyDate,jdbcType=TIMESTAMP}, #{replyerType,jdbcType=INTEGER}, #{replyContent,jdbcType=VARCHAR},
#{memberId,jdbcType=INTEGER}, #{memberName,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER},
#{userName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
#{memberId,jdbcType=BIGINT}, #{memberName,jdbcType=VARCHAR}, #{memberImgUrl,jdbcType=VARCHAR},
#{showStatus,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.evaluate.entity.TabEvaluateReply">
insert into tab_evaluate_reply
......@@ -69,6 +74,12 @@
<if test="memberName != null">
member_name,
</if>
<if test="memberImgUrl != null">
member_img_url,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="userId != null">
user_id,
</if>
......@@ -105,11 +116,17 @@
#{replyContent,jdbcType=VARCHAR},
</if>
<if test="memberId != null">
#{memberId,jdbcType=INTEGER},
#{memberId,jdbcType=BIGINT},
</if>
<if test="memberName != null">
#{memberName,jdbcType=VARCHAR},
</if>
<if test="memberImgUrl != null">
#{memberImgUrl,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=INTEGER},
</if>
......@@ -146,11 +163,17 @@
reply_content = #{replyContent,jdbcType=VARCHAR},
</if>
<if test="memberId != null">
member_id = #{memberId,jdbcType=INTEGER},
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="memberName != null">
member_name = #{memberName,jdbcType=VARCHAR},
</if>
<if test="memberImgUrl != null">
member_img_url = #{memberImgUrl,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=INTEGER},
</if>
......@@ -176,8 +199,10 @@
reply_date = #{replyDate,jdbcType=TIMESTAMP},
replyer_type = #{replyerType,jdbcType=INTEGER},
reply_content = #{replyContent,jdbcType=VARCHAR},
member_id = #{memberId,jdbcType=INTEGER},
member_id = #{memberId,jdbcType=BIGINT},
member_name = #{memberName,jdbcType=VARCHAR},
member_img_url = #{memberImgUrl,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
user_id = #{userId,jdbcType=INTEGER},
user_name = #{userName,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
......@@ -193,4 +218,7 @@
and evaluate_id = #{evaluateId}
and status = 1
</select>
<update id="updateReplyShowStatus">
update tab_evaluate_reply set show_status = #{showStatus} where enterprise_id = #{enterpriseId} and evaluate_reply_id = #{evaluateReplyId}
</update>
</mapper>
\ No newline at end of file
......@@ -43,6 +43,9 @@
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.gic.evaluate.entity.TabProblemReply">
<selectKey keyProperty="problemReplyId" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into tab_problem_reply
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="problemReplyId != null">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment