dingxin пре 6 година
родитељ
комит
b6c34f6b51

+ 10
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java Прегледај датотеку

@@ -327,7 +327,7 @@ public class UserController extends BaseController {
327 327
 
328 328
     @ApiOperation(value = "app问题反馈", notes = "app问题反馈")
329 329
     @ApiImplicitParams({
330
-            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "content:问题描述,feedbackImg:反馈的图片,taUserTel:反馈人电话"),
330
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "content:问题描述,imageUrl:反馈的图片,taUserTel:反馈人电话"),
331 331
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
332 332
     })
333 333
     @RequestMapping(value = "/user/addfeedback",method = RequestMethod.POST)
@@ -339,6 +339,15 @@ public class UserController extends BaseController {
339 339
 
340 340
     }
341 341
 
342
+    @ApiOperation(value = "联系电话", notes = "联系电话")
343
+    @RequestMapping(value = "/user/operatetel",method = RequestMethod.GET)
344
+    public ResponseBean operatetel(){
345
+        ResponseBean response = new ResponseBean();
346
+        response = iTaUserService.operatetel();
347
+        return response;
348
+
349
+    }
350
+
342 351
 
343 352
 
344 353
 }

+ 38
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/ToOperateTelMapper.java Прегледај датотеку

@@ -0,0 +1,38 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.ToOperateTel;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+
7
+import java.util.List;
8
+
9
+@Mapper
10
+public interface ToOperateTelMapper {
11
+    int deleteByPrimaryKey(Integer id);
12
+
13
+    int insert(ToOperateTel record);
14
+
15
+    int insertSelective(ToOperateTel record);
16
+
17
+    ToOperateTel selectByPrimaryKey(Integer id);
18
+
19
+    int updateByPrimaryKeySelective(ToOperateTel record);
20
+
21
+    int updateByPrimaryKey(ToOperateTel record);
22
+
23
+    /**
24
+     * 查询当前电话
25
+     * @param name
26
+     * @param tel
27
+     * @param remark
28
+     * @return
29
+     */
30
+    List<ToOperateTel> getPhoneList(@Param("name") String name, @Param("tel") String tel, @Param("remark") String remark);
31
+
32
+
33
+    /**
34
+     * 查询所有电话
35
+     */
36
+    List<ToOperateTel> selectOperatetel();
37
+
38
+}

+ 99
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/ToOperateTel.java Прегледај датотеку

@@ -0,0 +1,99 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class ToOperateTel {
6
+    private Integer id;
7
+
8
+    private String name;
9
+
10
+    private String tel;
11
+
12
+    private String remark;
13
+
14
+    private Integer createUser;
15
+
16
+    private Date createDate;
17
+
18
+    private Integer updateUser;
19
+
20
+    private Date updateDate;
21
+
22
+    /**
23
+     * 创建人名称
24
+     * @return
25
+     */
26
+    private String userUame;
27
+
28
+    public String getUserUame() {
29
+        return userUame;
30
+    }
31
+
32
+    public void setUserUame(String userUame) {
33
+        this.userUame = userUame;
34
+    }
35
+
36
+    public Integer getId() {
37
+        return id;
38
+    }
39
+
40
+    public void setId(Integer id) {
41
+        this.id = id;
42
+    }
43
+
44
+    public String getName() {
45
+        return name;
46
+    }
47
+
48
+    public void setName(String name) {
49
+        this.name = name == null ? null : name.trim();
50
+    }
51
+
52
+    public String getTel() {
53
+        return tel;
54
+    }
55
+
56
+    public void setTel(String tel) {
57
+        this.tel = tel == null ? null : tel.trim();
58
+    }
59
+
60
+    public String getRemark() {
61
+        return remark;
62
+    }
63
+
64
+    public void setRemark(String remark) {
65
+        this.remark = remark == null ? null : remark.trim();
66
+    }
67
+
68
+    public Integer getCreateUser() {
69
+        return createUser;
70
+    }
71
+
72
+    public void setCreateUser(Integer createUser) {
73
+        this.createUser = createUser;
74
+    }
75
+
76
+    public Date getCreateDate() {
77
+        return createDate;
78
+    }
79
+
80
+    public void setCreateDate(Date createDate) {
81
+        this.createDate = createDate;
82
+    }
83
+
84
+    public Integer getUpdateUser() {
85
+        return updateUser;
86
+    }
87
+
88
+    public void setUpdateUser(Integer updateUser) {
89
+        this.updateUser = updateUser;
90
+    }
91
+
92
+    public Date getUpdateDate() {
93
+        return updateDate;
94
+    }
95
+
96
+    public void setUpdateDate(Date updateDate) {
97
+        this.updateDate = updateDate;
98
+    }
99
+}

+ 6
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java Прегледај датотеку

@@ -211,4 +211,10 @@ public interface ITaUserService {
211 211
      * @return
212 212
      */
213 213
     ResponseBean addFeedback(UserElement userElement, String parameter);
214
+
215
+    /**
216
+     * 联系电话
217
+     * @return
218
+     */
219
+    ResponseBean operatetel();
214 220
 }

+ 15
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java Прегледај датотеку

@@ -167,6 +167,9 @@ public class TaUserServiceImpl implements ITaUserService {
167 167
     @Autowired
168 168
     private  TaFeedbackImgMapper taFeedbackImgMapper;
169 169
 
170
+    @Autowired
171
+    private ToOperateTelMapper toOperateTelMapper;
172
+
170 173
     @Override
171 174
     @Transactional(rollbackFor = Exception.class)
172 175
     public ResponseBean login(String loginName, String code, HttpSession session) {
@@ -1226,12 +1229,14 @@ public class TaUserServiceImpl implements ITaUserService {
1226 1229
 
1227 1230
        TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
1228 1231
        /*期-栋-单元-楼层-户号*/
1229
-       taFeedback.setEstateSource(null==taUserVerify?null:taUserVerify.getPhaseName()+taUserVerify.getBuildingName()+taUserVerify.getUnitName()+taUserVerify.getLevelName()+taUserVerify.getRoomNoName());
1232
+
1233
+       ToCommunities toCommunities= toCommunitiesMapper.selectByPrimaryKey(taUserVerify.getCommunityId());
1234
+       taFeedback.setEstateSource(null==taUserVerify?null:toCommunities.getCommunityName()+taUserVerify.getPhaseName()+taUserVerify.getBuildingName()+taUserVerify.getUnitName()+taUserVerify.getLevelName()+taUserVerify.getRoomNoName());
1230 1235
        taFeedback.setHandleStatus("2");
1231 1236
        taFeedback.setCreateDate(new Date());
1232 1237
        taFeedback.setCreateUser(userElement.getUserVerifyId());
1233 1238
        taFeedbackMapper.insert(taFeedback);
1234
-        JSONArray jSONArray= JSONObject.parseObject(parameter).getJSONArray("feedbackImg");
1239
+        JSONArray jSONArray= JSONObject.parseObject(parameter).getJSONArray("imageUrl");
1235 1240
        if(null!=jSONArray) {
1236 1241
            String[] feedbackImgArr = jSONArray.toArray(new String[]{});
1237 1242
            for (String imgUrl : feedbackImgArr) {
@@ -1245,4 +1250,12 @@ public class TaUserServiceImpl implements ITaUserService {
1245 1250
         response.addSuccess("成功");
1246 1251
         return response;
1247 1252
     }
1253
+
1254
+    @Override
1255
+    public ResponseBean operatetel() {
1256
+        ResponseBean response = new ResponseBean();
1257
+         List<ToOperateTel> operateTel= toOperateTelMapper.selectOperatetel();
1258
+         response.addSuccess(operateTel);
1259
+         return response;
1260
+    }
1248 1261
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TaFeedbackMapper.xml Прегледај датотеку

@@ -190,6 +190,6 @@
190 190
         and handle_status like CONCAT('%', #{handleStatus,jdbcType=VARCHAR}, '%')
191 191
       </if>
192 192
     </where>
193
-    ORDER BY update_date desc
193
+    ORDER BY create_date desc
194 194
   </select>
195 195
 </mapper>

+ 151
- 0
CODE/smart-community/app-api/src/main/resources/mapper/ToOperateTelMapper.xml Прегледај датотеку

@@ -0,0 +1,151 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.ToOperateTelMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.ToOperateTel" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="name" property="name" jdbcType="VARCHAR" />
7
+    <result column="tel" property="tel" jdbcType="VARCHAR" />
8
+    <result column="remark" property="remark" jdbcType="CHAR" />
9
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
10
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
11
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
12
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
13
+    <result column="user_name" property="userUame" jdbcType="TIMESTAMP" />
14
+  </resultMap>
15
+  <sql id="Base_Column_List" >
16
+    id, name, tel, remark, create_user, create_date, update_user, update_date
17
+  </sql>
18
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
19
+    select 
20
+    <include refid="Base_Column_List" />
21
+    from to_operate_tel
22
+    where id = #{id,jdbcType=INTEGER}
23
+  </select>
24
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
25
+    delete from to_operate_tel
26
+    where id = #{id,jdbcType=INTEGER}
27
+  </delete>
28
+  <insert id="insert" parameterType="com.community.huiju.model.ToOperateTel" >
29
+    insert into to_operate_tel (id, name, tel, 
30
+      remark, create_user, create_date, 
31
+      update_user, update_date)
32
+    values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{tel,jdbcType=VARCHAR}, 
33
+      #{remark,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
34
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
35
+  </insert>
36
+  <insert id="insertSelective" parameterType="com.community.huiju.model.ToOperateTel" >
37
+    insert into to_operate_tel
38
+    <trim prefix="(" suffix=")" suffixOverrides="," >
39
+      <if test="id != null" >
40
+        id,
41
+      </if>
42
+      <if test="name != null" >
43
+        name,
44
+      </if>
45
+      <if test="tel != null" >
46
+        tel,
47
+      </if>
48
+      <if test="remark != null" >
49
+        remark,
50
+      </if>
51
+      <if test="createUser != null" >
52
+        create_user,
53
+      </if>
54
+      <if test="createDate != null" >
55
+        create_date,
56
+      </if>
57
+      <if test="updateUser != null" >
58
+        update_user,
59
+      </if>
60
+      <if test="updateDate != null" >
61
+        update_date,
62
+      </if>
63
+    </trim>
64
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
65
+      <if test="id != null" >
66
+        #{id,jdbcType=INTEGER},
67
+      </if>
68
+      <if test="name != null" >
69
+        #{name,jdbcType=VARCHAR},
70
+      </if>
71
+      <if test="tel != null" >
72
+        #{tel,jdbcType=VARCHAR},
73
+      </if>
74
+      <if test="remark != null" >
75
+        #{remark,jdbcType=CHAR},
76
+      </if>
77
+      <if test="createUser != null" >
78
+        #{createUser,jdbcType=INTEGER},
79
+      </if>
80
+      <if test="createDate != null" >
81
+        #{createDate,jdbcType=TIMESTAMP},
82
+      </if>
83
+      <if test="updateUser != null" >
84
+        #{updateUser,jdbcType=INTEGER},
85
+      </if>
86
+      <if test="updateDate != null" >
87
+        #{updateDate,jdbcType=TIMESTAMP},
88
+      </if>
89
+    </trim>
90
+  </insert>
91
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.ToOperateTel" >
92
+    update to_operate_tel
93
+    <set >
94
+      <if test="name != null" >
95
+        name = #{name,jdbcType=VARCHAR},
96
+      </if>
97
+      <if test="tel != null" >
98
+        tel = #{tel,jdbcType=VARCHAR},
99
+      </if>
100
+      <if test="remark != null" >
101
+        remark = #{remark,jdbcType=CHAR},
102
+      </if>
103
+      <if test="createUser != null" >
104
+        create_user = #{createUser,jdbcType=INTEGER},
105
+      </if>
106
+      <if test="createDate != null" >
107
+        create_date = #{createDate,jdbcType=TIMESTAMP},
108
+      </if>
109
+      <if test="updateUser != null" >
110
+        update_user = #{updateUser,jdbcType=INTEGER},
111
+      </if>
112
+      <if test="updateDate != null" >
113
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
114
+      </if>
115
+    </set>
116
+    where id = #{id,jdbcType=INTEGER}
117
+  </update>
118
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.ToOperateTel" >
119
+    update to_operate_tel
120
+    set name = #{name,jdbcType=VARCHAR},
121
+      tel = #{tel,jdbcType=VARCHAR},
122
+      remark = #{remark,jdbcType=CHAR},
123
+      create_user = #{createUser,jdbcType=INTEGER},
124
+      create_date = #{createDate,jdbcType=TIMESTAMP},
125
+      update_user = #{updateUser,jdbcType=INTEGER},
126
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
127
+    where id = #{id,jdbcType=INTEGER}
128
+  </update>
129
+  <select id="getPhoneList" resultMap="BaseResultMap">
130
+    select *,p.user_name as userUame from to_operate_tel
131
+    left join to_user p on to_operate_tel.update_user = p.id
132
+    <where>
133
+      <if test="tel != null and tel !=''">
134
+        and tel like CONCAT('%', #{tel,jdbcType=VARCHAR}, '%')
135
+      </if>
136
+
137
+      <if test="remark != null and remark !=''">
138
+        and to_operate_tel.remark like CONCAT('%', #{remark,jdbcType=VARCHAR}, '%')
139
+      </if>
140
+
141
+      <if test="name != null and name !=''">
142
+        and name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
143
+      </if>
144
+    </where>
145
+    ORDER BY to_operate_tel.update_date desc
146
+  </select>
147
+
148
+  <select id="selectOperatetel" resultMap="BaseResultMap">
149
+    select * from to_operate_tel
150
+  </select>
151
+</mapper>

+ 3
- 3
VUECODE/smart-operate-manage/src/views/banner/feedback/index.vue Прегледај датотеку

@@ -77,8 +77,8 @@
77 77
       label="处理状态">
78 78
       <template slot-scope="scope">
79 79
           <span v-if="scope.row.handleStatus ==1">已处理</span>
80
-          <span v-if="scope.row.handleStatus ==2">未处理</span>
81
-          <span v-if="scope.row.handleStatus ==3">正在处理</span>
80
+          <span v-if="scope.row.handleStatus ==2" style="color:#FF0000">未处理</span>
81
+          <span v-if="scope.row.handleStatus ==3" style="color:#FF6A6A">正在处理</span>
82 82
       </template>
83 83
     </el-table-column>
84 84
     <el-table-column
@@ -233,7 +233,7 @@
233 233
     },
234 234
 
235 235
     empty(){
236
-        this.listQuery.handleRemark = ''
236
+        this.listQuery.content = ''
237 237
         this.listQuery.handleStatus = ''
238 238
         this.listQuery.tel = ''
239 239
         this.listQuery.pageNum = 1