Browse Source

反馈附件

master
yinzuomei 3 years ago
parent
commit
9f3f9b1271
  1. 4
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/IcServiceFeedbackResDTO.java
  2. 12
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/IcServiceFeedbackDao.java
  3. 10
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcServiceFeedbackDao.xml

4
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/IcServiceFeedbackResDTO.java

@ -12,9 +12,9 @@ import java.util.List;
public class IcServiceFeedbackResDTO implements Serializable { public class IcServiceFeedbackResDTO implements Serializable {
/** /**
* 服务项目ID * 反馈记录id
*/ */
private String serviceProjectId; private String feedBackId;
/** /**
* 服务目标 * 服务目标

12
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/IcServiceFeedbackDao.java

@ -17,7 +17,17 @@ import java.util.List;
@Mapper @Mapper
public interface IcServiceFeedbackDao extends BaseDao<IcServiceFeedbackEntity> { public interface IcServiceFeedbackDao extends BaseDao<IcServiceFeedbackEntity> {
/**
* 根据服务记录id,查询反馈记录
* @param serviceRecordId
* @return
*/
IcServiceFeedbackResDTO selectByRecId(@Param("serviceRecordId") String serviceRecordId); IcServiceFeedbackResDTO selectByRecId(@Param("serviceRecordId") String serviceRecordId);
List<IcServiceFeedbackResDTO.Attachment> getAttachmentList(String serviceProjectId); /**
* 根据服务反馈id,查询附件列表
* @param feedBackId
* @return
*/
List<IcServiceFeedbackResDTO.Attachment> getAttachmentList(String feedBackId);
} }

10
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcServiceFeedbackDao.xml

@ -31,8 +31,8 @@
<result property="longitude" column="LONGITUDE"/> <result property="longitude" column="LONGITUDE"/>
<result property="latitude" column="LATITUDE"/> <result property="latitude" column="LATITUDE"/>
<result property="address" column="address"/> <result property="address" column="address"/>
<result property="serviceProjectId" column="SERVICE_PROJECT_ID"/> <result property="feedBackId" column="feedBackId"/>
<collection property="attachmentList" column="SERVICE_PROJECT_ID" <collection property="attachmentList" column="feedBackId"
ofType="com.epmet.dto.result.IcServiceFeedbackResDTO$Attachment" ofType="com.epmet.dto.result.IcServiceFeedbackResDTO$Attachment"
select="com.epmet.dao.IcServiceFeedbackDao.getAttachmentList"> select="com.epmet.dao.IcServiceFeedbackDao.getAttachmentList">
<result property="attachmentName" column="ATTACHMENT_NAME"/> <result property="attachmentName" column="ATTACHMENT_NAME"/>
@ -50,12 +50,12 @@
f.LATITUDE, f.LATITUDE,
f.LONGITUDE, f.LONGITUDE,
f.address, f.address,
f.SERVICE_PROJECT_ID f.id as feedBackId
FROM FROM
ic_service_feedback f ic_service_feedback f
WHERE WHERE
f.DEL_FLAG = '0' f.DEL_FLAG = '0'
and f.SERVICE_RECORD_ID=#{serviceRecordId} and f.SERVICE_RECORD_ID = #{serviceRecordId}
</select> </select>
<select id="getAttachmentList" parameterType="java.lang.String" resultType="com.epmet.dto.result.IcServiceFeedbackResDTO$Attachment"> <select id="getAttachmentList" parameterType="java.lang.String" resultType="com.epmet.dto.result.IcServiceFeedbackResDTO$Attachment">
@ -68,7 +68,7 @@
ic_service_project_attachment t ic_service_project_attachment t
WHERE WHERE
t.DEL_FLAG = '0' t.DEL_FLAG = '0'
AND t.IC_SERVICE_ID = #{serviceProjectId} AND t.IC_SERVICE_ID = #{feedBackId}
ORDER BY ORDER BY
t.SORT ASC t.SORT ASC
</select> </select>

Loading…
Cancel
Save