|
@@ -293,6 +293,50 @@
|
|
|
from new_page_friendship_link
|
|
|
where delFlag = 0 order by id
|
|
|
</select>
|
|
|
+ <select id="getMaintenanceIdByCode" resultType="java.lang.Integer">
|
|
|
+ select cmInstrumentMaintenanceId from cm_instrument_maintenance_links where linkCode = #{code}
|
|
|
+ </select>
|
|
|
+ <select id="getMaintenanceById" resultType="com.caimei365.commodity.model.po.ProductRepairPo">
|
|
|
+ SELECT
|
|
|
+ a.id AS "id",
|
|
|
+ a.orderNo AS "orderNo",
|
|
|
+ a.userId AS "userId",
|
|
|
+ a.instrumentName AS "instrumentName",
|
|
|
+ a.manufacturer AS "manufacturer",
|
|
|
+ a.instrumentBrand AS "instrumentBrand",
|
|
|
+ a.maintenanceNum AS "maintenanceNum",
|
|
|
+ a.instrumentImage1 AS "instrumentImage1",
|
|
|
+ a.instrumentImage2 AS "instrumentImage2",
|
|
|
+ a.instrumentImage3 AS "instrumentImage3",
|
|
|
+ a.instrumentImage4 AS "instrumentImage4",
|
|
|
+ a.instrumentImage5 AS "instrumentImage5",
|
|
|
+ a.problemDescription AS "problemDescription",
|
|
|
+ a.userAccount AS "userAccount",
|
|
|
+ a.userName AS "userName",
|
|
|
+ a.userContact AS "userContact",
|
|
|
+ a.userMobile AS "userMobile",
|
|
|
+ concat(a.provinceName, a.cityName, a.townName, a.userAddress) AS userAddress,
|
|
|
+ a.maintainerName AS "maintainerName",
|
|
|
+ a.maintainerMobile AS "maintainerMobile",
|
|
|
+ a.maintainerAddress AS "maintainerAddress",
|
|
|
+ a.status AS "status",
|
|
|
+ a.authenticity AS "authenticity",
|
|
|
+ a.serviceRating AS "serviceRating",
|
|
|
+ a.serviceEvaluate AS "serviceEvaluate",
|
|
|
+ a.solveStatus AS "solveStatus",
|
|
|
+ a.cancelReason AS "cancelReason",
|
|
|
+ a.submitDate AS "submitDate",
|
|
|
+ a.dockingDate AS "dockingDate",
|
|
|
+ a.evaluateDate AS "evaluateDate",
|
|
|
+ a.cancelDate AS "cancelDate",
|
|
|
+ a.provinceName AS "provinceName",
|
|
|
+ a.cityName AS "cityName",
|
|
|
+ a.townName AS "townName",
|
|
|
+ b.type AS "viewerType"
|
|
|
+ FROM cm_instrument_maintenance a
|
|
|
+ LEFT JOIN cm_instrument_maintenance_links b on a.id = b.cmInstrumentMaintenanceId
|
|
|
+ WHERE a.id = #{id}
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
</mapper>
|