mark
This commit is contained in:
@@ -2,4 +2,17 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.ProductFeaturesMapper">
|
||||
|
||||
<select id="getProductFeaturesByProductId" resultType="com.cnbm.basic.dto.ProductFeaturesDTO">
|
||||
select p.*,w.code as workingProcedureCode,w.name as workingProcedureName,m.name as measureToolName,u.name as unitName,c.name as controlGraphName
|
||||
from product_features p
|
||||
LEFT JOIN working_procedure w ON p.working_procedure_id=w.id
|
||||
LEFT JOIN measure_tool m ON p.measure_tool_id=m.id
|
||||
LEFT JOIN unit u ON p.unit_id=u.id
|
||||
LEFT JOIN control_graph c ON p.control_graph_id=c.id
|
||||
<where>
|
||||
p.valid = 1 AND p.product_id = #{id}
|
||||
</where>
|
||||
order by p.id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user