|
|
@ -10,11 +10,15 @@
|
|
|
|
left join auth_warehouse aw on aw.code = sys_workplace_document.invCode
|
|
|
|
left join auth_warehouse aw on aw.code = sys_workplace_document.invCode
|
|
|
|
left join basic_bussiness_type on sys_workplace_document.documentTypeCode = basic_bussiness_type.action
|
|
|
|
left join basic_bussiness_type on sys_workplace_document.documentTypeCode = basic_bussiness_type.action
|
|
|
|
left join thr_bustype_origin on thr_bustype_origin.action = sys_workplace_document.documentTypeCode
|
|
|
|
left join thr_bustype_origin on thr_bustype_origin.action = sys_workplace_document.documentTypeCode
|
|
|
|
|
|
|
|
left join sys_workplace_bus on sys_workplace_bus.busTypeCode = sys_workplace_document.documentTypeCode
|
|
|
|
|
|
|
|
left join sys_workplace on sys_workplace.workplaceId = sys_workplace_bus.workplaceCode
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="documentTypeCode != '' and documentTypeCode != null">
|
|
|
|
<if test="documentTypeCode != '' and documentTypeCode != null">
|
|
|
|
AND documentTypeCode = #{documentTypeCode}
|
|
|
|
AND documentTypeCode = #{documentTypeCode}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="workplaceCode != '' and workplaceCode != null">
|
|
|
|
|
|
|
|
AND sys_workplace.workplaceId = #{workplaceCode}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="isPopular >= 0 and isPopular != null">
|
|
|
|
<if test="isPopular >= 0 and isPopular != null">
|
|
|
|
AND isPopular = #{isPopular}
|
|
|
|
AND isPopular = #{isPopular}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -24,6 +28,7 @@
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
GROUP BY sys_workplace_document.documentTypeCode
|
|
|
|
ORDER BY sys_workplace_document.number
|
|
|
|
ORDER BY sys_workplace_document.number
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|