|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
|
|
<mapper namespace="com.epmet.dao.UserAdviceDao">
|
|
|
|
|
|
|
|
<resultMap type="com.epmet.entity.UserAdviceEntity" id="userAdviceMap">
|
|
|
|
<result property="id" column="ID"/>
|
|
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
|
|
|
<result property="customerName" column="CUSTOMER_NAME"/>
|
|
|
|
<result property="agencyId" column="AGENCY_ID"/>
|
|
|
|
<result property="agencyName" column="AGENCY_NAME"/>
|
|
|
|
<result property="gridId" column="GRID_ID"/>
|
|
|
|
<result property="gridName" column="GRID_NAME"/>
|
|
|
|
<result property="userId" column="USER_ID"/>
|
|
|
|
<result property="userName" column="USER_NAME"/>
|
|
|
|
<result property="regPhone" column="REG_PHONE"/>
|
|
|
|
<result property="adviceContent" column="ADVICE_CONTENT"/>
|
|
|
|
<result property="phone" column="PHONE"/>
|
|
|
|
<result property="adviceType" column="ADVICE_TYPE"/>
|
|
|
|
<result property="replyContent" column="REPLY_CONTENT"/>
|
|
|
|
<result property="replyUserId" column="REPLY_USER_ID"/>
|
|
|
|
<result property="replyUserName" column="REPLY_USER_NAME"/>
|
|
|
|
<result property="replyTime" column="REPLY_TIME"/>
|
|
|
|
<result property="govContent" column="GOV_CONTENT"/>
|
|
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
|
|
<result property="revision" column="REVISION"/>
|
|
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<update id="replyAdvice" >
|
|
|
|
update user_advice
|
|
|
|
set
|
|
|
|
reply_content = #{replyContent},
|
|
|
|
reply_user_id = #{replyUserId},
|
|
|
|
reply_time = now(),
|
|
|
|
gov_content = #{govContent},
|
|
|
|
reply_user_name = (select real_name from oper_user where user_id = #{replyUserId} and del_flag = 0),
|
|
|
|
updated_by = #{replyUserId},
|
|
|
|
updated_time = now()
|
|
|
|
where id = #{adviceId}
|
|
|
|
</update>
|
|
|
|
|
|
|
|
</mapper>
|