sql fix
This commit is contained in:
@@ -65,6 +65,7 @@ public class ShopStageInfoDAO {
|
||||
addShopStageList.add(shopStageInfo);
|
||||
}
|
||||
}
|
||||
//发送短信
|
||||
return shopStageInfoMapper.batchInsert(addShopStageList);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
e.training_store_id as trainingStoreId,
|
||||
e.estimated_assessment_time as estimatedAssessmentTime,
|
||||
e.actual_assessment_time as actualAssessmentTime,
|
||||
e.assign_flag as assignFlag
|
||||
ifnull(e.assign_flag,0) as assignFlag
|
||||
from xfsg_temp_user_detail u
|
||||
left join xfsg_employee_training e on e.xfsg_user_detail_id = u.id
|
||||
left join xfsg_shop_info s on s.id = u.shop_id
|
||||
@@ -74,9 +74,12 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="assignFlag != null">
|
||||
<if test="assignFlag != null and assignFlag == 1">
|
||||
and e.assign_flag = #{assignFlag}
|
||||
</if>
|
||||
<if test="assignFlag != null and assignFlag == 0">
|
||||
and e.assign_flag is null
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime != ''">
|
||||
and u.register_time >= #{beginTime}
|
||||
</if>
|
||||
@@ -101,8 +104,11 @@
|
||||
<if test="assessmentStatus != null and assessmentStatus == 1">
|
||||
and e.assessment_total_num = e.assessment_num
|
||||
</if>
|
||||
<if test="assignStoreFlag != null">
|
||||
and s.store_num not null
|
||||
<if test="assignStoreFlag != null and assignStoreFlag == 1">
|
||||
and s.store_num is not null
|
||||
</if>
|
||||
<if test="assignStoreFlag != null and assignStoreFlag == 0">
|
||||
and s.store_num is null
|
||||
</if>
|
||||
</select>
|
||||
<select id="trainingListByShopId" resultType="com.cool.store.vo.EmployeeTrainingVO">
|
||||
|
||||
Reference in New Issue
Block a user