|
@@ -107,15 +107,13 @@
|
|
|
sbInfo.name as spareName,
|
|
|
sbInfo.model,
|
|
|
sbInfo.no as no,
|
|
|
- sbInfo.position_id,
|
|
|
- sbInfo.type spareTypeName,
|
|
|
position.name storeName,
|
|
|
- sbInfo.financing_no as financingNo,
|
|
|
+ sbInfo.financing_no as financingNo
|
|
|
from t_sb_store_check_job as checkjob
|
|
|
left join t_sb_store_check_plan plan on checkjob.plan_id = plan.id
|
|
|
- left join t_sb_type type on checkjob.spare_type = type.id
|
|
|
left join t_sb_position position on checkjob.store_id = position.id
|
|
|
left join t_sb_info sbInfo on checkjob.spare_id = sbInfo.id
|
|
|
+ left join t_sys_user u on checkjob.check_user_id = u.user_id
|
|
|
<where>
|
|
|
<include refid="List_Condition"/>
|
|
|
</where>
|
|
@@ -126,11 +124,11 @@
|
|
|
u.real_name as checkUserName,
|
|
|
plan.name as planName,
|
|
|
sbInfo.name as spareName,
|
|
|
- dept.name as storeName
|
|
|
+ position.name storeName
|
|
|
from t_sb_store_check_job as checkjob
|
|
|
left join t_sb_store_check_plan plan on checkjob.plan_id = plan.id
|
|
|
- left join t_sys_dept dept on checkjob.store_id = dept.dept_id
|
|
|
left join t_sb_info sbInfo on checkjob.spare_id = sbInfo.id
|
|
|
+ left join t_sb_position position on checkjob.store_id = position.id
|
|
|
left join t_sys_user u on checkjob.check_user_id = u.user_id
|
|
|
where checkjob.id = #{id}
|
|
|
</select>
|