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
aad91f0c
Commit
aad91f0c
authored
Sep 23, 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
ace1bbc2
aa350135
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
9 deletions
+24
-9
DaoUtils.java
src/main/java/com/baosight/hggp/core/dao/DaoUtils.java
+6
-0
ServiceHGWD005.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD005.java
+2
-0
HGWD005.xml
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD005.xml
+1
-7
HGWDTools.java
src/main/java/com/baosight/hggp/hg/wd/tools/HGWDTools.java
+2
-1
SqlMapDaoLogProxy.java
...sight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
+6
-0
HGWD003.js
src/main/webapp/HG/WD/HGWD003.js
+7
-1
No files found.
src/main/java/com/baosight/hggp/core/dao/DaoUtils.java
View file @
aad91f0c
...
@@ -168,6 +168,9 @@ public class DaoUtils {
...
@@ -168,6 +168,9 @@ public class DaoUtils {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
userName
=
"System"
;
userName
=
"System"
;
}
}
if
(
StringUtils
.
isBlank
(
userName
))
{
userName
=
"System"
;
}
BeanUtils
.
setProperty
(
bean
,
"createdName"
,
userName
);
BeanUtils
.
setProperty
(
bean
,
"createdName"
,
userName
);
BeanUtils
.
setProperty
(
bean
,
"updatedName"
,
userName
);
BeanUtils
.
setProperty
(
bean
,
"updatedName"
,
userName
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -290,6 +293,9 @@ public class DaoUtils {
...
@@ -290,6 +293,9 @@ public class DaoUtils {
// 修改人名称
// 修改人名称
try
{
try
{
String
userName
=
UserSession
.
getLoginCName
();
String
userName
=
UserSession
.
getLoginCName
();
if
(
StringUtils
.
isBlank
(
userName
))
{
userName
=
"System"
;
}
BeanUtils
.
setProperty
(
bean
,
"updatedName"
,
userName
);
BeanUtils
.
setProperty
(
bean
,
"updatedName"
,
userName
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
warn
(
"写入修改人名称失败"
,
e
);
log
.
warn
(
"写入修改人名称失败"
,
e
);
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD005.java
View file @
aad91f0c
...
@@ -2,6 +2,7 @@ package com.baosight.hggp.hg.wd.service;
...
@@ -2,6 +2,7 @@ package com.baosight.hggp.hg.wd.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.enums.DeleteFlagEnum
;
import
com.baosight.hggp.core.extapp.decheng.api.DcOpenApi
;
import
com.baosight.hggp.core.extapp.decheng.api.DcOpenApi
;
import
com.baosight.hggp.core.extapp.decheng.model.DcContractList
;
import
com.baosight.hggp.core.extapp.decheng.model.DcContractList
;
import
com.baosight.hggp.core.extapp.decheng.model.DcProductList
;
import
com.baosight.hggp.core.extapp.decheng.model.DcProductList
;
...
@@ -141,6 +142,7 @@ public class ServiceHGWD005 extends ServiceEPBase {
...
@@ -141,6 +142,7 @@ public class ServiceHGWD005 extends ServiceEPBase {
dbWd005
.
setProductModel
(
dcProductList
.
getCpxh
());
dbWd005
.
setProductModel
(
dcProductList
.
getCpxh
());
dbWd005
.
setUnit
(
dcProductList
.
getUnit
());
dbWd005
.
setUnit
(
dcProductList
.
getUnit
());
dbWd005
.
setClassify
(
dcProductList
.
getFenlei
());
dbWd005
.
setClassify
(
dcProductList
.
getFenlei
());
dbWd005
.
setDeleteFlag
(
DeleteFlagEnum
.
UN_REMOVE
.
getCode
());
DaoUtils
.
insert
(
HGWD005
.
INSERT
,
dbWd005
);
DaoUtils
.
insert
(
HGWD005
.
INSERT
,
dbWd005
);
}
else
{
}
else
{
Map
updateMap
=
new
HashMap
();
Map
updateMap
=
new
HashMap
();
...
...
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD005.xml
View file @
aad91f0c
...
@@ -26,12 +26,6 @@
...
@@ -26,12 +26,6 @@
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
</isNotEmpty>
...
@@ -69,7 +63,7 @@
...
@@ -69,7 +63,7 @@
</dynamic>
</dynamic>
</sql>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.
ctdy.Hgwd
005"
>
<select
id=
"query"
resultClass=
"com.baosight.
hggp.hg.wd.domain.HGWD
005"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGWD005
FROM ${hggpSchema}.HGWD005
...
...
src/main/java/com/baosight/hggp/hg/wd/tools/HGWDTools.java
View file @
aad91f0c
...
@@ -231,9 +231,10 @@ public class HGWDTools {
...
@@ -231,9 +231,10 @@ public class HGWDTools {
* @return
* @return
*/
*/
public
static
HGWD005
get
(
String
extId
)
{
public
static
HGWD005
get
(
String
extId
)
{
AssertUtils
.
isNull
(
extId
,
"
项目Code
不能为空!"
);
AssertUtils
.
isNull
(
extId
,
"
实体ID
不能为空!"
);
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
HGWD005
.
FIELD_EXT_ID
,
extId
);
queryMap
.
put
(
HGWD005
.
FIELD_EXT_ID
,
extId
);
queryMap
.
put
(
"notAuth"
,
true
);
List
<
HGWD005
>
results
=
DaoBase
.
getInstance
().
query
(
HGWD005
.
QUERY
,
queryMap
);
List
<
HGWD005
>
results
=
DaoBase
.
getInstance
().
query
(
HGWD005
.
QUERY
,
queryMap
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
}
}
...
...
src/main/java/com/baosight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
View file @
aad91f0c
...
@@ -7,6 +7,7 @@ import com.baosight.hggp.core.tools.ThreadLocalTools;
...
@@ -7,6 +7,7 @@ import com.baosight.hggp.core.tools.ThreadLocalTools;
import
com.baosight.hggp.hg.xs.domain.UserGroup
;
import
com.baosight.hggp.hg.xs.domain.UserGroup
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext
;
import
com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext
;
import
com.baosight.iplat4j.core.service.soa.DomainQuery.PageStatus
;
import
com.baosight.iplat4j.core.service.soa.DomainQuery.PageStatus
;
...
@@ -208,6 +209,11 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
...
@@ -208,6 +209,11 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
* @param parameters
* @param parameters
*/
*/
private
void
setDataAuth
(
String
name
,
Object
parameters
)
{
private
void
setDataAuth
(
String
name
,
Object
parameters
)
{
// 本次操作不做权限
boolean
notAuth
=
MapUtils
.
getBooleanValue
((
Map
)
parameters
,
"notAuth"
);
if
(
notAuth
)
{
return
;
}
// 需要过滤部分sql name,否则会形成死循环;admin账户不需要校验
// 需要过滤部分sql name,否则会形成死循环;admin账户不需要校验
String
loginName
=
UserSessionUtils
.
getLoginName
();
String
loginName
=
UserSessionUtils
.
getLoginName
();
String
[]
serviceFilter
=
{
"HGXSUser"
,
"HGXSOrg"
,
"HGXSUserGroup"
,
"HGPZ009.query"
,
"HGPZ010.query"
};
String
[]
serviceFilter
=
{
"HGXSUser"
,
"HGXSOrg"
,
"HGXSUserGroup"
,
"HGPZ009.query"
,
"HGPZ010.query"
};
...
...
src/main/webapp/HG/WD/HGWD003.js
View file @
aad91f0c
...
@@ -255,11 +255,17 @@ let showAuthButton = function () {
...
@@ -255,11 +255,17 @@ let showAuthButton = function () {
inInfo
.
set
(
"inqu_status-0-fileId"
,
label
);
inInfo
.
set
(
"inqu_status-0-fileId"
,
label
);
EiCommunicator
.
send
(
'HGWD003'
,
'isProjectManager'
,
inInfo
,
{
EiCommunicator
.
send
(
'HGWD003'
,
'isProjectManager'
,
inInfo
,
{
onSuccess
:
function
(
res
)
{
onSuccess
:
function
(
res
)
{
if
(
res
.
getStatus
()
>=
0
&&
res
.
extAttr
.
isProjectManager
==
1
)
{
let
status
=
res
.
getStatus
();
if
(
status
>=
0
&&
res
.
extAttr
.
isManager
==
1
)
{
$
(
"#AUTH"
).
show
();
$
(
"#AUTH"
).
show
();
$
(
"#REMOVE_USER"
).
show
();
$
(
"#REMOVE_USER"
).
show
();
$
(
"#COPY_USER"
).
show
();
$
(
"#COPY_USER"
).
show
();
$
(
"#SAVE"
).
show
();
$
(
"#SAVE"
).
show
();
}
else
if
(
status
>=
0
&&
res
.
extAttr
.
isProjectManager
==
1
)
{
$
(
"#AUTH"
).
show
();
$
(
"#REMOVE_USER"
).
show
();
$
(
"#COPY_USER"
).
hide
();
$
(
"#SAVE"
).
hide
();
}
else
{
}
else
{
$
(
"#AUTH"
).
hide
();
$
(
"#AUTH"
).
hide
();
$
(
"#REMOVE_USER"
).
hide
();
$
(
"#REMOVE_USER"
).
hide
();
...
...
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