Commit 32c16dd1 authored by 王晓倩's avatar 王晓倩

反馈列表接口问题、反馈信息表删除remarks字段,修复反馈功能页面问题

parent 7f35e5b5
...@@ -57,10 +57,6 @@ public class TOrderFeedback extends BaseEntity ...@@ -57,10 +57,6 @@ public class TOrderFeedback extends BaseEntity
@Excel(name = "图片地址3") @Excel(name = "图片地址3")
private String pictureUrl3; private String pictureUrl3;
/** 备注 */
@Excel(name = "备注")
private String remarks;
public void setFeedbackId(int feedbackId) public void setFeedbackId(int feedbackId)
{ {
this.feedbackId = feedbackId; this.feedbackId = feedbackId;
...@@ -151,15 +147,6 @@ public class TOrderFeedback extends BaseEntity ...@@ -151,15 +147,6 @@ public class TOrderFeedback extends BaseEntity
{ {
return pictureUrl3; return pictureUrl3;
} }
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
@Override @Override
public String toString() { public String toString() {
...@@ -174,7 +161,6 @@ public class TOrderFeedback extends BaseEntity ...@@ -174,7 +161,6 @@ public class TOrderFeedback extends BaseEntity
.append("pictureUrl1", getPictureUrl1()) .append("pictureUrl1", getPictureUrl1())
.append("pictureUrl2", getPictureUrl2()) .append("pictureUrl2", getPictureUrl2())
.append("pictureUrl3", getPictureUrl3()) .append("pictureUrl3", getPictureUrl3())
.append("remarks", getRemarks())
.toString(); .toString();
} }
} }
...@@ -55,9 +55,6 @@ public class OrderFeedbackVo extends BaseEntity ...@@ -55,9 +55,6 @@ public class OrderFeedbackVo extends BaseEntity
/** 图片地址3 */ /** 图片地址3 */
private String pictureUrl3; private String pictureUrl3;
/** 备注 */
private String remarks;
public void setFeedbackId(int feedbackId) public void setFeedbackId(int feedbackId)
{ {
this.feedbackId = feedbackId; this.feedbackId = feedbackId;
...@@ -174,16 +171,6 @@ public class OrderFeedbackVo extends BaseEntity ...@@ -174,16 +171,6 @@ public class OrderFeedbackVo extends BaseEntity
return pictureUrl3; return pictureUrl3;
} }
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
...@@ -197,7 +184,6 @@ public class OrderFeedbackVo extends BaseEntity ...@@ -197,7 +184,6 @@ public class OrderFeedbackVo extends BaseEntity
.append("pictureUrl1", getPictureUrl1()) .append("pictureUrl1", getPictureUrl1())
.append("pictureUrl2", getPictureUrl2()) .append("pictureUrl2", getPictureUrl2())
.append("pictureUrl3", getPictureUrl3()) .append("pictureUrl3", getPictureUrl3())
.append("remarks", getRemarks())
.toString(); .toString();
} }
} }
...@@ -144,24 +144,28 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService ...@@ -144,24 +144,28 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
OrderFeedbackVo feedbackVo = new OrderFeedbackVo(); OrderFeedbackVo feedbackVo = new OrderFeedbackVo();
TDeviceInfo device = null; TDeviceInfo device = null;
for(TOrderFeedback feedback : feedbackList){ if(feedbackList.size() != 0) {
if(feedback != null) {
BeanUtils.copyProperties(feedback, feedbackVo);
}
device = tDeviceInfoMapper.selectTDeviceInfoByCode(feedback.getDeviceCode()); for (TOrderFeedback feedback : feedbackList) {
if(device != null){ if (feedback != null) {
feedbackVo.setDeviceName(device.getDeviceName()); BeanUtils.copyProperties(feedback, feedbackVo);
feedbackVo.setDeviceType(device.getDeviceType()); }
device = tDeviceInfoMapper.selectTDeviceInfoByCode(feedback.getDeviceCode());
if (device != null) {
feedbackVo.setDeviceName(device.getDeviceName());
feedbackVo.setDeviceType(device.getDeviceType());
}
if (feedbackVo != null) {
feedbackVoList.add(feedbackVo);
}
} }
if(feedbackVo != null){ if (feedbackVoList.size() != 0) {
feedbackVoList.add(feedbackVo); workOrderVo.setFeedbackList(feedbackVoList);
} }
} }
if(feedbackVoList.size() != 0) {
workOrderVo.setFeedbackList(feedbackVoList);
}
return workOrderVo; return workOrderVo;
} }
......
...@@ -15,11 +15,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -15,11 +15,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="pictureUrl1" column="picture_url_1" /> <result property="pictureUrl1" column="picture_url_1" />
<result property="pictureUrl2" column="picture_url_2" /> <result property="pictureUrl2" column="picture_url_2" />
<result property="pictureUrl3" column="picture_url_3" /> <result property="pictureUrl3" column="picture_url_3" />
<result property="remarks" column="remarks" />
</resultMap> </resultMap>
<sql id="selectTOrderFeedbackVo"> <sql id="selectTOrderFeedbackVo">
select feedback_id, order_id, device_code, contents, feedback_time, is_hidden_danger, deal_status, picture_url_1, picture_url_2, picture_url_3, remarks from t_order_feedback select feedback_id, order_id, device_code, contents, feedback_time, is_hidden_danger, deal_status, picture_url_1, picture_url_2, picture_url_3 from t_order_feedback
</sql> </sql>
<select id="selectTOrderFeedbackList" parameterType="TOrderFeedback" resultMap="TOrderFeedbackResult"> <select id="selectTOrderFeedbackList" parameterType="TOrderFeedback" resultMap="TOrderFeedbackResult">
...@@ -34,7 +33,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -34,7 +33,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="pictureUrl1 != null and pictureUrl1 != ''"> and picture_url_1 = #{pictureUrl1}</if> <if test="pictureUrl1 != null and pictureUrl1 != ''"> and picture_url_1 = #{pictureUrl1}</if>
<if test="pictureUrl2 != null and pictureUrl2 != ''"> and picture_url_2 = #{pictureUrl2}</if> <if test="pictureUrl2 != null and pictureUrl2 != ''"> and picture_url_2 = #{pictureUrl2}</if>
<if test="pictureUrl3 != null and pictureUrl3 != ''"> and picture_url_3 = #{pictureUrl3}</if> <if test="pictureUrl3 != null and pictureUrl3 != ''"> and picture_url_3 = #{pictureUrl3}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where> </where>
</select> </select>
...@@ -61,7 +59,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -61,7 +59,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="pictureUrl1 != null">picture_url_1,</if> <if test="pictureUrl1 != null">picture_url_1,</if>
<if test="pictureUrl2 != null">picture_url_2,</if> <if test="pictureUrl2 != null">picture_url_2,</if>
<if test="pictureUrl3 != null">picture_url_3,</if> <if test="pictureUrl3 != null">picture_url_3,</if>
<if test="remarks != null">remarks,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">#{orderId},</if> <if test="orderId != null">#{orderId},</if>
...@@ -73,7 +70,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -73,7 +70,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="pictureUrl1 != null">#{pictureUrl1},</if> <if test="pictureUrl1 != null">#{pictureUrl1},</if>
<if test="pictureUrl2 != null">#{pictureUrl2},</if> <if test="pictureUrl2 != null">#{pictureUrl2},</if>
<if test="pictureUrl3 != null">#{pictureUrl3},</if> <if test="pictureUrl3 != null">#{pictureUrl3},</if>
<if test="remarks != null">#{remarks},</if>
</trim> </trim>
</insert> </insert>
...@@ -89,7 +85,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -89,7 +85,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="pictureUrl1 != null">picture_url_1 = #{pictureUrl1},</if> <if test="pictureUrl1 != null">picture_url_1 = #{pictureUrl1},</if>
<if test="pictureUrl2 != null">picture_url_2 = #{pictureUrl2},</if> <if test="pictureUrl2 != null">picture_url_2 = #{pictureUrl2},</if>
<if test="pictureUrl3 != null">picture_url_3 = #{pictureUrl3},</if> <if test="pictureUrl3 != null">picture_url_3 = #{pictureUrl3},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim> </trim>
where feedback_id = #{feedbackId} where feedback_id = #{feedbackId}
</update> </update>
......
...@@ -154,18 +154,13 @@ ...@@ -154,18 +154,13 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="是否存在隐患" prop="isHiddenDanger"> <el-form-item label="是否存在隐患" prop="isHiddenDanger">
<el-radio-group v-model="form.isHiddenDanger"> <el-switch
<el-radio :label="1"></el-radio>
<el-radio :label="2"></el-radio>
</el-radio-group>
<!--<el-switch
v-model="isHiddenDanger" v-model="isHiddenDanger"
active-text="是" active-text="是"
inactive-text="否"> inactive-text="否">
</el-switch>--> </el-switch>
</el-form-item> </el-form-item>
<el-form-item label="处理结果" prop="dealStatus"> <el-form-item label="处理结果" prop="dealStatus" v-if="isHiddenDanger == true">
<!-- <el-form-item label="处理结果" prop="dealStatus" v-if="isHiddenDanger == true">-->
<el-radio-group v-model="form.dealStatus"> <el-radio-group v-model="form.dealStatus">
<el-radio :label="2">已处理完成</el-radio> <el-radio :label="2">已处理完成</el-radio>
<el-radio :label="3">未处理完成</el-radio> <el-radio :label="3">未处理完成</el-radio>
...@@ -347,13 +342,6 @@ ...@@ -347,13 +342,6 @@
const orderId = row.orderId || this.ids const orderId = row.orderId || this.ids
getBasicsInfo(orderId).then(response => { getBasicsInfo(orderId).then(response => {
this.form = response.data; this.form = response.data;
this.form.pictureUrl1 = null;
this.form.pictureUrl2 = null;
this.form.pictureUrl3 = null;
this.form.contents = null;
this.form.remarks = null;
this.fileList = [];
this.fileIndex = 0;
this.open = true; this.open = true;
this.title = "工单反馈"; this.title = "工单反馈";
}); });
...@@ -369,11 +357,11 @@ ...@@ -369,11 +357,11 @@
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
// if(this.isHiddenDanger == false){ if(this.isHiddenDanger == false){
// this.form.isHiddenDanger = "2"; this.form.isHiddenDanger = "2";
// } else { } else {
// this.form.isHiddenDanger = "1"; this.form.isHiddenDanger = "1";
// } }
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if(this.form.orderStatus == '1' || this.form.orderStatus == '2'){ if(this.form.orderStatus == '1' || this.form.orderStatus == '2'){
......
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