食堂评价回显问题
This commit is contained in:
parent
980fbe39ea
commit
1a6859b680
|
|
@ -40,6 +40,9 @@ public class AllocCanteenSuggestion extends BaseEntity {
|
||||||
@ApiModelProperty(value = "餐厅id")
|
@ApiModelProperty(value = "餐厅id")
|
||||||
private Long canteenId;
|
private Long canteenId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "餐厅名称")
|
||||||
|
private String canteenName;
|
||||||
|
|
||||||
/** 投诉图片 */
|
/** 投诉图片 */
|
||||||
@Excel(name = "投诉图片")
|
@Excel(name = "投诉图片")
|
||||||
@ApiModelProperty(value = "投诉图片")
|
@ApiModelProperty(value = "投诉图片")
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="userId" column="user_id" />
|
<result property="userId" column="user_id" />
|
||||||
<result property="content" column="content" />
|
<result property="content" column="content" />
|
||||||
<result property="canteenId" column="canteen_id" />
|
<result property="canteenId" column="canteen_id" />
|
||||||
|
<result property="canteenName" column="canteen_name" />
|
||||||
<result property="complaintPicture" column="complaint_picture" />
|
<result property="complaintPicture" column="complaint_picture" />
|
||||||
<result property="sourceType" column="source_type" />
|
<result property="sourceType" column="source_type" />
|
||||||
<result property="mobile" column="mobile" />
|
<result property="mobile" column="mobile" />
|
||||||
|
|
@ -21,30 +22,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectAllocCanteenSuggestionVo">
|
<sql id="selectAllocCanteenSuggestionVo">
|
||||||
select complaint_id, user_id, content, canteen_id, complaint_picture, source_type, mobile,
|
select acs.complaint_id, acs.user_id, acs.content, acs.canteen_id, acs.complaint_picture, acs.source_type,
|
||||||
reply_content, revision, reply_state, create_by, create_time, update_by, update_time
|
acs.mobile, acs.reply_content, acs.revision, acs.reply_state, acs.create_by, acs.create_time,
|
||||||
from alloc_canteen_suggestion
|
acs.update_by, acs.update_time, ac.canteen_name
|
||||||
|
from alloc_canteen_suggestion acs
|
||||||
|
left join alloc_canteen ac on acs.canteen_id = ac.canteen_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectAllocCanteenSuggestionList" parameterType="com.bonus.canteen.core.alloc.domain.AllocCanteenSuggestion" resultMap="AllocCanteenSuggestionResult">
|
<select id="selectAllocCanteenSuggestionList" parameterType="com.bonus.canteen.core.alloc.domain.AllocCanteenSuggestion" resultMap="AllocCanteenSuggestionResult">
|
||||||
<include refid="selectAllocCanteenSuggestionVo"/>
|
<include refid="selectAllocCanteenSuggestionVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="complaintId != null "> and complaint_id = #{complaintId}</if>
|
<if test="complaintId != null "> and acs.complaint_id = #{complaintId}</if>
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and acs.user_id = #{userId}</if>
|
||||||
<if test="content != null and content != ''"> and content = #{content}</if>
|
<if test="content != null and content != ''"> and acs.content = #{content}</if>
|
||||||
<if test="canteenId != null "> and canteen_id = #{canteenId}</if>
|
<if test="canteenId != null "> and acs.canteen_id = #{canteenId}</if>
|
||||||
<if test="complaintPicture != null and complaintPicture != ''"> and complaint_picture = #{complaintPicture}</if>
|
<if test="complaintPicture != null and complaintPicture != ''"> and acs.complaint_picture = #{complaintPicture}</if>
|
||||||
<if test="sourceType != null "> and source_type = #{sourceType}</if>
|
<if test="sourceType != null "> and acs.source_type = #{sourceType}</if>
|
||||||
<if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
|
<if test="mobile != null and mobile != ''"> and acs.mobile = #{mobile}</if>
|
||||||
<if test="replyContent != null and replyContent != ''"> and reply_content = #{replyContent}</if>
|
<if test="replyContent != null and replyContent != ''"> and acs.reply_content = #{replyContent}</if>
|
||||||
<if test="revision != null "> and revision = #{revision}</if>
|
<if test="revision != null "> and acs.revision = #{revision}</if>
|
||||||
<if test="replyState != null "> and reply_state = #{replyState}</if>
|
<if test="replyState != null "> and acs.reply_state = #{replyState}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectAllocCanteenSuggestionById" parameterType="Long" resultMap="AllocCanteenSuggestionResult">
|
<select id="selectAllocCanteenSuggestionById" parameterType="Long" resultMap="AllocCanteenSuggestionResult">
|
||||||
<include refid="selectAllocCanteenSuggestionVo"/>
|
<include refid="selectAllocCanteenSuggestionVo"/>
|
||||||
where complaint_id = #{complaintId}
|
where acs.complaint_id = #{complaintId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertAllocCanteenSuggestion" parameterType="com.bonus.canteen.core.alloc.domain.AllocCanteenSuggestion" useGeneratedKeys="true" keyProperty="complaintId">
|
<insert id="insertAllocCanteenSuggestion" parameterType="com.bonus.canteen.core.alloc.domain.AllocCanteenSuggestion" useGeneratedKeys="true" keyProperty="complaintId">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue