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
8e10ce8f
Commit
8e10ce8f
authored
Jul 18, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
eae72b7f
02b3dc66
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
9 deletions
+23
-9
ServiceHGCW002.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW002.java
+6
-6
ServiceHGCW012A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW012A.java
+6
-0
HGCW002.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW002.xml
+6
-1
HGCW012A.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
+3
-0
HGCW004.js
src/main/webapp/HG/CW/HGCW004.js
+1
-1
HGCW008B.jsp
src/main/webapp/HG/CW/HGCW008B.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW002.java
View file @
8e10ce8f
...
@@ -246,14 +246,14 @@ public class ServiceHGCW002 extends ServiceBase {
...
@@ -246,14 +246,14 @@ public class ServiceHGCW002 extends ServiceBase {
public
EiInfo
projectComboBox
(
EiInfo
inInfo
){
public
EiInfo
projectComboBox
(
EiInfo
inInfo
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
List
<
String
>
contractTypArray
=
new
ArrayList
<>();
List
<
String
>
contractTypArray
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotEmpty
(
inInfo
.
getString
(
"reviewStatus"
)))
{
if
(
Objects
.
nonNull
(
inInfo
.
getAttr
().
get
(
"reviewStatus"
)))
{
map
.
put
(
"reviewStatus"
,
inInfo
.
get
String
(
"reviewStatus"
));
map
.
put
(
"reviewStatus"
,
inInfo
.
get
Attr
().
get
(
"reviewStatus"
));
}
}
if
(
StringUtils
.
isNotEmpty
(
inInfo
.
getString
(
"contractType"
)))
{
if
(
Objects
.
nonNull
(
inInfo
.
getAttr
().
get
(
"contractType"
)))
{
map
.
put
(
"contractType"
,
inInfo
.
get
String
(
"contractType"
));
map
.
put
(
"contractType"
,
inInfo
.
get
Attr
().
get
(
"contractType"
));
}
}
if
(
StringUtils
.
isNotEmpty
(
inInfo
.
getString
(
"contractTyp
s"
)))
{
if
(
Objects
.
nonNull
(
inInfo
.
getAttr
().
get
(
"contractType
s"
)))
{
String
[]
contractTyps
=
inInfo
.
get
String
(
"contractTyps"
).
split
(
","
);
String
[]
contractTyps
=
inInfo
.
get
Attr
().
get
(
"contractTypes"
).
toString
(
).
split
(
","
);
for
(
String
c
:
contractTyps
)
{
for
(
String
c
:
contractTyps
)
{
contractTypArray
.
add
(
c
);
contractTypArray
.
add
(
c
);
}
}
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW012A.java
View file @
8e10ce8f
...
@@ -4,6 +4,7 @@ import com.baosight.bpm.util.StringUtil;
...
@@ -4,6 +4,7 @@ import com.baosight.bpm.util.StringUtil;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.cw.domain.*
;
import
com.baosight.hggp.hg.cw.domain.*
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
...
@@ -59,6 +60,7 @@ public class ServiceHGCW012A extends ServiceBase {
...
@@ -59,6 +60,7 @@ public class ServiceHGCW012A extends ServiceBase {
if
(!
signingDateTo
.
isEmpty
()){
if
(!
signingDateTo
.
isEmpty
()){
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
,
DateUtils
.
formatShort
(
signingDateTo
));
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
,
DateUtils
.
formatShort
(
signingDateTo
));
}
}
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCG003
.
FIELD_STATUS
,
HGConstant
.
CgReceiveStatus
.
S_5
);
inInfo
=
super
.
query
(
inInfo
,
HGCG003
.
QUERY
,
new
HGCG003
());
inInfo
=
super
.
query
(
inInfo
,
HGCG003
.
QUERY
,
new
HGCG003
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
@@ -79,6 +81,8 @@ public class ServiceHGCW012A extends ServiceBase {
...
@@ -79,6 +81,8 @@ public class ServiceHGCW012A extends ServiceBase {
}
}
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW002
.
FIELD_CONTRACT_TYPE
,
2
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW002
.
FIELD_CONTRACT_TYPE
,
2
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW006
.
FIELD_REMAINING_AMOUNT
,
0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW006
.
FIELD_REMAINING_AMOUNT
,
0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW002
.
FIELD_REVIEW_STATUS
,
3
);
inInfo
=
super
.
query
(
inInfo
,
HGCW012A
.
QUERY
,
new
HGCW012A
(),
false
,
new
HGCW012A
().
eiMetadata
,
EiConstant
.
queryBlock
,
"resultA"
,
"resultA"
);
inInfo
=
super
.
query
(
inInfo
,
HGCW012A
.
QUERY
,
new
HGCW012A
(),
false
,
new
HGCW012A
().
eiMetadata
,
EiConstant
.
queryBlock
,
"resultA"
,
"resultA"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
@@ -98,6 +102,8 @@ public class ServiceHGCW012A extends ServiceBase {
...
@@ -98,6 +102,8 @@ public class ServiceHGCW012A extends ServiceBase {
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
,
DateUtils
.
formatShort
(
signingDateTo
));
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
,
DateUtils
.
formatShort
(
signingDateTo
));
}
}
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW006
.
FIELD_REMAINING_AMOUNT
,
0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW006
.
FIELD_REMAINING_AMOUNT
,
0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW006
.
FIELD_REVIEW_STATUS
,
3
);
inInfo
=
super
.
query
(
inInfo
,
HGCW006
.
QUERY
,
new
HGCW006
(),
false
,
new
HGCW006
().
eiMetadata
,
EiConstant
.
queryBlock
,
"resultB"
,
"resultB"
);
inInfo
=
super
.
query
(
inInfo
,
HGCW006
.
QUERY
,
new
HGCW006
(),
false
,
new
HGCW006
().
eiMetadata
,
EiConstant
.
queryBlock
,
"resultB"
,
"resultB"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW002.xml
View file @
8e10ce8f
...
@@ -564,9 +564,14 @@
...
@@ -564,9 +564,14 @@
LEFT JOIN ${hggpSchema}.HGSC001 b on a.PROJ_CODE = b.PROJ_CODE
LEFT JOIN ${hggpSchema}.HGSC001 b on a.PROJ_CODE = b.PROJ_CODE
WHERE 1=1
WHERE 1=1
AND a.REVIEW_STATUS= 3
AND a.REVIEW_STATUS= 3
AND a.CONTRACT_TYPE IN (1,2,4)
AND b.approval_status = 2
AND b.approval_status = 2
AND b.proj_status = 0
AND b.proj_status = 0
<isNotEmpty
prepend=
" AND "
property=
"contractType"
>
a.CONTRACT_TYPE = #contractType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractTyps"
>
a.CONTRACT_TYPE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"contractTyps"
>
#contractTyps[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
View file @
8e10ce8f
...
@@ -197,6 +197,9 @@
...
@@ -197,6 +197,9 @@
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
B.PARTY_B like concat('%',#supName#,'%')
B.PARTY_B like concat('%',#supName#,'%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"reviewStatus"
>
B.REVIEW_STATUS = #reviewStatus#
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
...
...
src/main/webapp/HG/CW/HGCW004.js
View file @
8e10ce8f
...
@@ -37,7 +37,7 @@ $(function() {
...
@@ -37,7 +37,7 @@ $(function() {
query
:
function
(
container
,
params
)
{
query
:
function
(
container
,
params
)
{
var
queryInfo
=
new
EiInfo
();
var
queryInfo
=
new
EiInfo
();
// info.set("reviewStatus","3")
// info.set("reviewStatus","3")
queryInfo
.
set
(
"contractType
"
,
"1
"
)
queryInfo
.
set
(
"contractType
s"
,
"1,2
"
)
return
queryInfo
;
return
queryInfo
;
},
},
init
:
function
(
e
,
options
)
{
init
:
function
(
e
,
options
)
{
...
...
src/main/webapp/HG/CW/HGCW008B.jsp
View file @
8e10ce8f
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFPopupInput
ename=
"popupInputProjCode"
cname=
"项目编号"
colWidth=
"4"
<EF:EFPopupInput
ename=
"popupInputProjCode"
cname=
"项目编号"
colWidth=
"4"
serviceName=
"HGCW002"
methodName=
"queryContractByType"
serviceName=
"HGCW002"
methodName=
"queryContractByType"
resultId=
"
contract_combo_box
"
resultId=
"
result
"
save=
"false"
popupType=
"ServiceGrid"
save=
"false"
popupType=
"ServiceGrid"
valueField=
"projCode"
textField=
"projCode"
valueField=
"projCode"
textField=
"projCode"
columnEnames=
"projCode,projName,contractNumber,contractName,totalContractPriceExcluding"
columnEnames=
"projCode,projName,contractNumber,contractName,totalContractPriceExcluding"
...
...
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