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
b6044c96
Commit
b6044c96
authored
Jul 06, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.结算单查询权限应该都为合同的项目的部门权限,不是当前登录人的权限
parent
c5a03577
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
26 deletions
+51
-26
ServiceHGCW002.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW002.java
+2
-3
ServiceHGCW008.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW008.java
+5
-2
HGCW002.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW002.xml
+40
-17
HGCW008.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW008.xml
+3
-3
HGCW008A.jsp
src/main/webapp/HG/CW/HGCW008A.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW002.java
View file @
b6044c96
...
...
@@ -21,6 +21,7 @@ import com.baosight.hggp.util.DateUtils;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
...
...
@@ -265,9 +266,7 @@ public class ServiceHGCW002 extends ServiceBase {
if
(
StringUtils
.
isNotEmpty
(
inInfo
.
getString
(
"reviewStatus"
)))
{
map
.
put
(
"reviewStatus"
,
"3"
);
}
List
<
HGCW002
>
HGCW002List
=
dao
.
query
(
"HGCW002.queryContractByType"
,
map
);
inInfo
.
addBlock
(
"contract_combo_box"
).
setRows
(
HGCW002List
);
inInfo
=
super
.
query
(
inInfo
,
"HGCW002.queryContractByType"
,
new
HGCW001
());
return
inInfo
;
}
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW008.java
View file @
b6044c96
...
...
@@ -11,6 +11,8 @@ import com.baosight.hggp.hg.cw.domain.HGCW007;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.util.CommonMethod
;
...
...
@@ -102,9 +104,10 @@ public class ServiceHGCW008 extends ServiceBase {
HGCW008
.
fromMap
(
resultRows
.
get
(
0
));
if
(
HGCW008
.
getId
()
==
null
||
HGCW008
.
getId
()
==
0
)
{
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
HGSC001
project
=
HGSCTools
.
Hgsc001
.
queryByCode
(
HGCW008
.
getProjCode
());
String
settlementNumber
=
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
CW_SETTLEMENT_NO
);
HGCW008
.
setCompanyCode
(
userVO
.
getUserc
ode
());
HGCW008
.
setCompanyName
(
userVO
.
getUsern
ame
());
HGCW008
.
setCompanyCode
(
project
.
getCompanyC
ode
());
HGCW008
.
setCompanyName
(
project
.
getCompanyN
ame
());
HGCW008
.
setSettlementNumber
(
settlementNumber
);
HGCW008
.
setReviewStatus
(
2
);
HGCW008
.
setContractDate
(
DateUtils
.
formatShort
(
HGCW008
.
getContractDate
()));
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW002.xml
View file @
b6044c96
...
...
@@ -544,28 +544,51 @@
<select
id=
"queryContractByType"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW002"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
SELECT DISTINCT
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
CONTRACT_NUMBER as "contractNumber",
<!-- 合同号 -->
CONTRACT_NAME as "contractName",
<!-- 合同名称 -->
TOTAL_CONTRACT_PRICE_EXCLUDING as "totalContractPriceExcluding",
<!-- 合同总价(不含税) -->
TOTAL_CONTRACT_PRICE_INCLUDING as "totalContractPriceIncluding",
<!-- 合同总价(含税) -->
CONTRACT_TYPE as contractType,
<!-- 合同类型;1销售合同2劳务合同3补充协议4合同外用工 -->
PARTY_A as "partyA",
<!-- 甲方名称 -->
PARTY_B as "partyB"
<!-- 乙方名称 -->
FROM ${hggpSchema}.HGCW002
WHERE 1=1 AND REVIEW_STATUS= 3 AND CONTRACT_TYPE IN (1,2)
a.PROJ_CODE as "projCode",
<!-- 项目编码 -->
a.PROJ_NAME as "projName",
<!-- 项目名称 -->
a.CONTRACT_NUMBER as "contractNumber",
<!-- 合同号 -->
a.CONTRACT_NAME as "contractName",
<!-- 合同名称 -->
a.TOTAL_CONTRACT_PRICE_EXCLUDING as "totalContractPriceExcluding",
<!-- 合同总价(不含税) -->
a.TOTAL_CONTRACT_PRICE_INCLUDING as "totalContractPriceIncluding",
<!-- 合同总价(含税) -->
a.CONTRACT_TYPE as contractType,
<!-- 合同类型;1销售合同2劳务合同3补充协议4合同外用工 -->
a.PARTY_A as "partyA",
<!-- 甲方名称 -->
a.PARTY_B as "partyB"
<!-- 乙方名称 -->
FROM ${hggpSchema}.HGCW002 a
LEFT JOIN ${hggpSchema}.HGSC001 b on a.PROJ_CODE = b.PROJ_CODE
WHERE 1=1
AND a.REVIEW_STATUS= 3
AND a.CONTRACT_TYPE IN (1,2)
AND b.approval_status = 2
AND b.proj_status = 0
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
a.
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
a.
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
ORDER BY CONTRACT_NUMBER
a.COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
<!-- 无权限时使用 -->
<isNotEmpty
prepend=
" AND "
property=
"authDepCode"
>
b.DEP_CODE = #authDepCode#
</isNotEmpty>
<!-- 仅本人和部门组合 -->
<isEqual
prepend=
" AND "
property=
"authCombination"
compareValue=
"1"
>
(b.CREATED_BY = #authOnlyPeople# OR b.DEP_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"authDepCodes"
>
#authDepCodes[]#
</iterate>
)
</isEqual>
<!-- 仅本人或部门 -->
<isNotEqual
prepend=
" AND "
property=
"authCombination"
compareValue=
"1"
>
<isNotEmpty
property=
"authOnlyPeople"
>
b.CREATED_BY = #authOnlyPeople#
</isNotEmpty>
<isNotEmpty
property=
"authDepCodes"
>
b.DEP_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"authDepCodes"
>
#authDepCodes[]#
</iterate>
</isNotEmpty>
</isNotEqual>
ORDER BY a.CONTRACT_NUMBER
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW008.xml
View file @
b6044c96
...
...
@@ -71,10 +71,10 @@
CONTRACT_DATE = #contractDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractDateFrom"
>
CONTRACT_DATE
>
= REPLACE(#
signing
DateFrom#, '-', '')
CONTRACT_DATE
>
= REPLACE(#
contract
DateFrom#, '-', '')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractDateTo"
>
CONTRACT_DATE
<
= REPLACE(#
signing
DateTo#, '-', '')
CONTRACT_DATE
<
= REPLACE(#
contract
DateTo#, '-', '')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"taxPoints"
>
TAX_POINTS = #taxPoints#
...
...
@@ -171,7 +171,7 @@
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID
a
sc
ID
de
sc
</isEmpty>
</dynamic>
...
...
src/main/webapp/HG/CW/HGCW008A.jsp
View file @
b6044c96
...
...
@@ -11,7 +11,7 @@
<div
class=
"row"
>
<EF:EFPopupInput
ename=
"popupInputProjCode"
cname=
"项目编号"
colWidth=
"4"
serviceName=
"HGCW002"
methodName=
"queryContractByType"
resultId=
"
contract_combo_box
"
resultId=
"
result
"
save=
"false"
popupType=
"ServiceGrid"
valueField=
"projCode"
textField=
"projCode"
columnEnames=
"projCode,projName,contractNumber,contractName,totalContractPriceIncluding"
...
...
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