|
@@ -15,17 +15,16 @@
|
|
|
<result column="suffix" property="suffix" />
|
|
|
<result column="question_id" property="questionId" />
|
|
|
<result column="flag" property="flag" />
|
|
|
- <result column="relationModule" property="relationModule" />
|
|
|
+ <result column="relation_module" property="relationModule" />
|
|
|
<result column="order_no" property="orderNo" />
|
|
|
<result column="remark" property="remark" />
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
<select id="getDetailByModule" parameterType="java.util.Map" resultMap="BaseResultMap">
|
|
|
- select * from
|
|
|
- icss_module_detail t1,
|
|
|
- icss_question_info t2
|
|
|
- where t1.is_deleted = 'N' and t2.is_deleted = 'N' and t1.question_id = t2.id
|
|
|
+ select DISTINCT t1.* from
|
|
|
+ icss_module_detail t1 left join icss_question_info t2 on (t1.question_id = t2.id or t1.question_id is null)
|
|
|
+ where t1.is_deleted = 'N' and t2.is_deleted = 'N'
|
|
|
and t1.module_id in
|
|
|
<foreach item="id" collection="ids" open="(" separator="," close=")">
|
|
|
#{id}
|