Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
f0dfd906
Commit
f0dfd906
authored
Apr 15, 2019
by
qiankunpingtai
Browse files
Merge branch 'master' of
https://gitee.com/jishenghua/JSH_ERP
parents
990637f4
7ce3af46
Changes
22
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java
View file @
f0dfd906
...
...
@@ -59,6 +59,7 @@ public class UserBusinessService {
public
List
<
UserBusiness
>
getUserBusiness
()
{
UserBusinessExample
example
=
new
UserBusinessExample
();
example
.
createCriteria
().
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
return
userBusinessMapper
.
selectByExample
(
example
);
}
...
...
@@ -104,14 +105,16 @@ public class UserBusinessService {
public
List
<
UserBusiness
>
getBasicData
(
String
keyId
,
String
type
){
UserBusinessExample
example
=
new
UserBusinessExample
();
example
.
createCriteria
().
andKeyidEqualTo
(
keyId
).
andTypeEqualTo
(
type
);
example
.
createCriteria
().
andKeyidEqualTo
(
keyId
).
andTypeEqualTo
(
type
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
List
<
UserBusiness
>
list
=
userBusinessMapper
.
selectByExample
(
example
);
return
list
;
}
public
Long
checkIsValueExist
(
String
type
,
String
keyId
)
{
UserBusinessExample
example
=
new
UserBusinessExample
();
example
.
createCriteria
().
andTypeEqualTo
(
type
).
andKeyidEqualTo
(
keyId
);
example
.
createCriteria
().
andTypeEqualTo
(
type
).
andKeyidEqualTo
(
keyId
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
List
<
UserBusiness
>
list
=
userBusinessMapper
.
selectByExample
(
example
);
Long
id
=
null
;
if
(
list
.
size
()
>
0
)
{
...
...
@@ -124,9 +127,11 @@ public class UserBusinessService {
UserBusinessExample
example
=
new
UserBusinessExample
();
String
newVaule
=
"%"
+
UBValue
+
"%"
;
if
(
TypeVale
!=
null
&&
KeyIdValue
!=
null
)
{
example
.
createCriteria
().
andTypeEqualTo
(
TypeVale
).
andKeyidEqualTo
(
KeyIdValue
).
andValueLike
(
newVaule
);
example
.
createCriteria
().
andTypeEqualTo
(
TypeVale
).
andKeyidEqualTo
(
KeyIdValue
).
andValueLike
(
newVaule
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
}
else
{
example
.
createCriteria
().
andValueLike
(
newVaule
);
example
.
createCriteria
().
andValueLike
(
newVaule
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
}
List
<
UserBusiness
>
list
=
userBusinessMapper
.
selectByExample
(
example
);
if
(
list
.
size
()
>
0
)
{
...
...
@@ -150,7 +155,8 @@ public class UserBusinessService {
public
List
<
UserBusiness
>
findRoleByUserId
(
String
userId
){
UserBusinessExample
example
=
new
UserBusinessExample
();
example
.
createCriteria
().
andKeyidEqualTo
(
userId
).
andTypeEqualTo
(
"UserRole"
);
example
.
createCriteria
().
andKeyidEqualTo
(
userId
).
andTypeEqualTo
(
"UserRole"
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
List
<
UserBusiness
>
list
=
userBusinessMapper
.
selectByExample
(
example
);
return
list
;
}
...
...
@@ -158,10 +164,12 @@ public class UserBusinessService {
public
List
<
UserBusiness
>
findAppByRoles
(
String
roles
){
List
<
String
>
rolesList
=
StringUtil
.
strToStringList
(
roles
);
UserBusinessExample
example
=
new
UserBusinessExample
();
example
.
createCriteria
().
andKeyidIn
(
rolesList
).
andTypeEqualTo
(
"RoleAPP"
);
example
.
createCriteria
().
andKeyidIn
(
rolesList
).
andTypeEqualTo
(
"RoleAPP"
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
List
<
UserBusiness
>
list
=
userBusinessMapper
.
selectByExample
(
example
);
return
list
;
}
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
int
batchDeleteUserBusinessByIds
(
String
ids
)
{
logService
.
insertLog
(
BusinessConstants
.
LOG_INTERFACE_NAME_USER_BUSINESS
,
...
...
src/main/resources/mapper_xml/AccountHeadMapperEx.xml
View file @
f0dfd906
...
...
@@ -88,6 +88,18 @@
</foreach>
)
</update>
<select
id=
"getAccountHeadListByAccountIds"
resultMap=
"com.jsh.erp.datasource.mappers.AccountHeadMapper.BaseResultMap"
>
select
<include
refid=
"com.jsh.erp.datasource.mappers.AccountHeadMapper.Base_Column_List"
/>
from jsh_accounthead
where 1=1
and accountId in (
<foreach
collection=
"accountIds"
item=
"accountId"
separator=
","
>
#{accountId}
</foreach>
)
and ifnull(delete_Flag,'0') !='1'
</select>
<select
id=
"getAccountHeadListByOrganIds"
resultMap=
"com.jsh.erp.datasource.mappers.AccountHeadMapper.BaseResultMap"
>
select
<include
refid=
"com.jsh.erp.datasource.mappers.AccountHeadMapper.Base_Column_List"
/>
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
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