Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
fad70131
Commit
fad70131
authored
Sep 18, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-09-18
1、项目甲方数据过滤修复 2、项目选择数据过滤修复
parent
3f6be941
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
3 deletions
+53
-3
ServiceHGCW002.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW002.java
+0
-0
ServiceHGCW002A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW002A.java
+2
-0
HGCW002.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW002.xml
+50
-2
HGPZ002.xml
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ002.xml
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW002.java
View file @
fad70131
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW002A.java
View file @
fad70131
...
@@ -70,6 +70,8 @@ public class ServiceHGCW002A extends ServiceBase {
...
@@ -70,6 +70,8 @@ public class ServiceHGCW002A extends ServiceBase {
String
contractCategory
=
inInfo
.
getString
(
"contractCategory"
);
String
contractCategory
=
inInfo
.
getString
(
"contractCategory"
);
String
partyA
=
inInfo
.
getString
(
"partyA"
);
String
partyA
=
inInfo
.
getString
(
"partyA"
);
if
(
contractCategory
.
equals
(
"1"
))
{
if
(
contractCategory
.
equals
(
"1"
))
{
params
.
get
(
0
).
put
(
"custCode"
,
params
.
get
(
0
).
get
(
"usercode"
));
params
.
get
(
0
).
put
(
"custName"
,
params
.
get
(
0
).
get
(
"username"
));
inInfo
=
super
.
query
(
inInfo
,
HGPZ002
.
QUERY
,
new
HGPZ002
(),
false
,
new
HGPZ002
().
eiMetadata
,
EiConstant
.
queryBlock
,
"partyAResult"
,
"partyAResult"
);
inInfo
=
super
.
query
(
inInfo
,
HGPZ002
.
QUERY
,
new
HGPZ002
(),
false
,
new
HGPZ002
().
eiMetadata
,
EiConstant
.
queryBlock
,
"partyAResult"
,
"partyAResult"
);
List
<
HGPZ002
>
hgpz002List
=
MapUtils
.
toDaoEPBases
(
inInfo
.
getBlock
(
"partyAResult"
).
getRows
(),
HGPZ002
.
class
);
List
<
HGPZ002
>
hgpz002List
=
MapUtils
.
toDaoEPBases
(
inInfo
.
getBlock
(
"partyAResult"
).
getRows
(),
HGPZ002
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
hgpz002List
))
{
if
(
CollectionUtils
.
isNotEmpty
(
hgpz002List
))
{
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW002.xml
View file @
fad70131
...
@@ -516,7 +516,22 @@
...
@@ -516,7 +516,22 @@
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
COMPANY_CODE like concat('%',#companyCode#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME like concat('%',#companyName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE like concat('%',#projCode#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME like concat('%',#projName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractNumber"
>
CONTRACT_NUMBER like concat('%',#contractNumber#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractName"
>
CONTRACT_NAME like concat('%',#contractName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
...
@@ -530,6 +545,12 @@
...
@@ -530,6 +545,12 @@
<isNotEmpty
prepend=
" AND "
property=
"contractTyps"
>
<isNotEmpty
prepend=
" AND "
property=
"contractTyps"
>
CONTRACT_TYPE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"contractTyps"
>
#contractTyps[]#
</iterate>
CONTRACT_TYPE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"contractTyps"
>
#contractTyps[]#
</iterate>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partyA"
>
PARTY_A like concat('%',#partyA#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partyB"
>
PARTY_B like concat('%',#partyB#, '%')
</isNotEmpty>
ORDER BY CONTRACT_TYPE asc, CONTRACT_NUMBER desc
ORDER BY CONTRACT_TYPE asc, CONTRACT_NUMBER desc
</select>
</select>
...
@@ -542,7 +563,22 @@
...
@@ -542,7 +563,22 @@
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
COMPANY_CODE like concat('%',#companyCode#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME like concat('%',#companyName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE like concat('%',#projCode#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME like concat('%',#projName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractNumber"
>
CONTRACT_NUMBER like concat('%',#contractNumber#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractName"
>
CONTRACT_NAME like concat('%',#contractName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
...
@@ -635,6 +671,18 @@
...
@@ -635,6 +671,18 @@
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"authDepCodes"
>
#authDepCodes[]#
</iterate>
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"authDepCodes"
>
#authDepCodes[]#
</iterate>
</isNotEmpty>
</isNotEmpty>
</isNotEqual>
</isNotEqual>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
a.PROJ_CODE like concat('%',#projCode#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
a.PROJ_NAME like concat('%',#projName#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractNumber"
>
a.CONTRACT_NUMBER like concat('%',#contractNumber#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractName"
>
a.CONTRACT_NAME like concat('%',#contractName#,'%')
</isNotEmpty>
ORDER BY a.CONTRACT_NUMBER
ORDER BY a.CONTRACT_NUMBER
</select>
</select>
...
...
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ002.xml
View file @
fad70131
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
CUST_TYPE = #custType#
CUST_TYPE = #custType#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"custCode"
>
<isNotEmpty
prepend=
" AND "
property=
"custCode"
>
CUST_CODE
= #custCode#
CUST_CODE
LIKE CONCAT('%', #custCode#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"custName"
>
<isNotEmpty
prepend=
" AND "
property=
"custName"
>
CUST_NAME LIKE CONCAT('%', #custName#, '%')
CUST_NAME LIKE CONCAT('%', #custName#, '%')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment