新增查询
This commit is contained in:
@@ -79,4 +79,12 @@
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
<select id="getProductFeaturesByType" resultType="com.cnbm.basic.dto.ProductFeaturesDTO">
|
||||
select * from product_features
|
||||
<where>
|
||||
valid = 1 AND type = #{type}
|
||||
</where>
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
<mapper namespace="com.cnbm.basic.mapper.WorkingProcedureMapper">
|
||||
|
||||
<select id="list" resultType="com.cnbm.basic.dto.WorkingProcedureDTO">
|
||||
select * from working_procedure
|
||||
order by id asc
|
||||
select wp.*,wpt.name as workingProcedureTypeName from working_procedure wp
|
||||
LEFT JOIN working_procedure_type wpt ON wp.working_procedure_type_id=wpt.id
|
||||
order by wp.id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.WorkingProcedureTypeMapper">
|
||||
|
||||
<select id="list" resultType="com.cnbm.basic.dto.WorkingProcedureTypeDTO">
|
||||
select * from working_procedure_type
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user