Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
d0f023fc
Commit
d0f023fc
authored
Jan 24, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.fixBug:排除admin账户
parent
618d6756
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
ServiceHPPZ006.java
.../java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ006.java
+1
-1
HPXSUser.xml
src/main/java/com/baosight/hpjx/hp/xs/sql/HPXSUser.xml
+1
-1
ServiceHPZL001.java
.../java/com/baosight/hpjx/hp/zl/service/ServiceHPZL001.java
+2
-0
No files found.
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ006.java
View file @
d0f023fc
...
@@ -106,7 +106,7 @@ public class ServiceHPPZ006 extends ServiceBase {
...
@@ -106,7 +106,7 @@ public class ServiceHPPZ006 extends ServiceBase {
queryParam
.
put
(
"inventCode"
,
fPz006
.
getInventCode
());
queryParam
.
put
(
"inventCode"
,
fPz006
.
getInventCode
());
queryParam
.
put
(
"spec"
,
fPz006
.
getSpec
());
queryParam
.
put
(
"spec"
,
fPz006
.
getSpec
());
List
<
HPPZ006
>
dbPz006
=
dao
.
query
(
HPPZ006
.
QUERY
,
queryParam
);
List
<
HPPZ006
>
dbPz006
=
dao
.
query
(
HPPZ006
.
QUERY
,
queryParam
);
AssertUtils
.
isNotEmpty
(
dbPz006
,
String
.
format
(
"存货编码[%]已存在规格[%s],请勿重复添加!"
,
fPz006
.
getInventCode
(),
AssertUtils
.
isNotEmpty
(
dbPz006
,
String
.
format
(
"存货编码[%
s
]已存在规格[%s],请勿重复添加!"
,
fPz006
.
getInventCode
(),
fPz006
.
getSpec
()));
fPz006
.
getSpec
()));
}
}
}
}
...
...
src/main/java/com/baosight/hpjx/hp/xs/sql/HPXSUser.xml
View file @
d0f023fc
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
COMPANY_CODE = #companyCode#
</isNotEmpty>
</isNotEmpty>
AND
loginName
!= 'admin'
AND
LOGIN_NAME
!= 'admin'
</sql>
</sql>
<!-- 查询用户信息 -->
<!-- 查询用户信息 -->
...
...
src/main/java/com/baosight/hpjx/hp/zl/service/ServiceHPZL001.java
View file @
d0f023fc
...
@@ -80,6 +80,8 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -80,6 +80,8 @@ public class ServiceHPZL001 extends ServiceBase {
HPConstant
.
SequenceId
.
HPZL001_NUMBER
));
HPConstant
.
SequenceId
.
HPZL001_NUMBER
));
DaoUtils
.
insert
(
"HPZL001.insert"
,
fZl001
);
DaoUtils
.
insert
(
"HPZL001.insert"
,
fZl001
);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
...
...
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