|
@@ -62,12 +62,12 @@ FROM u_mattress
|
|
|
<when notnull="@arg_deptid">
|
|
|
u_mattress.deptid = @arg_deptid
|
|
|
</when>
|
|
|
- <when $user_deptstr!="-1">
|
|
|
+ <!-- <when $user_deptstr!="-1">
|
|
|
u_mattress.createby in ($$user_outrepstr$$)
|
|
|
</when>
|
|
|
<when $user_deptstr!="-1">
|
|
|
u_mattress.deptid in ($$user_deptstr$$)
|
|
|
- </when>
|
|
|
+ </when> -->
|
|
|
<when notnull="@arg_search">
|
|
|
EXISTS (SELECT 1 FROM dbo.SC_SPLIT(@arg_search, ',') A WHERE A.Item <> '' AND (u_mattress.mattresscode LIKE '%'+LTRIM(RTRIM(A.Item))+'%' OR u_mattress.mattressrelcode like '%'+LTRIM(RTRIM(A.Item))+'%' OR u_mattress.mattressname like '%'+LTRIM(RTRIM(A.Item))+'%')) OR EXISTS (SELECT 1 FROM u_mtrldef WHERE usermtrlmode LIKE '%' + @arg_search + '%')
|
|
|
</when>
|