|
|
@@ -235,6 +235,37 @@ public class BookingComplainImplDao implements BookingComplainDao {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 投诉订单详情
|
|
|
+ * @param complaintId 投诉订单ID
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public ProgressDetailsVo progressNewDetails(String complaintId) {
|
|
|
+ String sql="SELECT\n" +
|
|
|
+ "\tb.order_num as bookingId,\n" +
|
|
|
+ "\tbc.id as complaintId,\n" +
|
|
|
+ "\tbc.title,\n" +
|
|
|
+ "\tbc.content,\n" +
|
|
|
+ "\tbc.create_date as dateTime\n" +
|
|
|
+ "FROM\n" +
|
|
|
+ "\t`booking_complaint` bc " +
|
|
|
+ "LEFT JOIN booking b on b.id=bc.booking_id and b.status_del=1 \n" +
|
|
|
+ " where bc.id=:complaintId";
|
|
|
+ MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
+ sps.addValue("complaintId", complaintId);
|
|
|
+ List<ProgressDetailsVo> list = null;
|
|
|
+ try{
|
|
|
+ list = namedParameterJdbcTemplate.query(sql, sps,
|
|
|
+ new BeanPropertyRowMapper<>(ProgressDetailsVo.class));
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ if(list != null && list.size()>0) return list.get(0);
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public List<DetailsVo> detailsVoList(String complaintId) {
|
|
|
String sql="SELECT\n" +
|
|
|
@@ -257,6 +288,29 @@ public class BookingComplainImplDao implements BookingComplainDao {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<DetailsVo> detailsNewVoList(String complaintId) {
|
|
|
+ String sql="SELECT\n" +
|
|
|
+ "\thcp.progress_type as progressType,\n" +
|
|
|
+ "\thcp.create_date as dateTime \n" +
|
|
|
+ "FROM\n" +
|
|
|
+ "\t`booking_complaint_progress` hcp \n" +
|
|
|
+ "WHERE\n" +
|
|
|
+ "\thcp.complaint_id= :complaintId and hcp.status=1 ORDER BY hcp.create_date DESC ";
|
|
|
+ MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
+ sps.addValue("complaintId", complaintId);
|
|
|
+ List<DetailsVo> list = null;
|
|
|
+ try{
|
|
|
+ list = namedParameterJdbcTemplate.query(sql, sps,
|
|
|
+ new BeanPropertyRowMapper<>(DetailsVo.class));
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ if(list != null && list.size()>0) return list;
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public DetailsVo detailsVo(String complaintId) {
|
|
|
String sql="SELECT\n" +
|
|
|
@@ -283,6 +337,31 @@ public class BookingComplainImplDao implements BookingComplainDao {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public DetailsVo detailsNewVo(String complaintId) {
|
|
|
+ String sql="SELECT\n" +
|
|
|
+ "\tbc.title AS title,\n" +
|
|
|
+ "\tbc.content AS content,\n" +
|
|
|
+ "\tfi2.url as urlList,\n" +
|
|
|
+ "\thcp.create_date as dateTime \n" +
|
|
|
+ "FROM\n" +
|
|
|
+ "\t`booking_complaint_progress` hcp \n" +
|
|
|
+ "LEFT JOIN booking_complaint bc on bc.id=hcp.complaint_id \n" +
|
|
|
+ "LEFT JOIN ( SELECT fi.link_id, GROUP_CONCAT( fi.url ) AS url FROM file_info fi GROUP BY fi.link_id ) fi2 ON fi2.link_id = bc.id\n" +
|
|
|
+ "WHERE hcp.complaint_id= :complaintId and hcp.status=1 ORDER BY hcp.create_date asc";
|
|
|
+ MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
+ sps.addValue("complaintId", complaintId);
|
|
|
+ List<DetailsVo> list = null;
|
|
|
+ try{
|
|
|
+ list = namedParameterJdbcTemplate.query(sql, sps,
|
|
|
+ new BeanPropertyRowMapper<>(DetailsVo.class));
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ if(list != null && list.size()>0) return list.get(0);
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public int updateComplain(String id,String status) {
|
|
|
|
|
|
String sql= " update `booking_complaint` set "+status+" where id=:id";
|