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
e9ac176e
Commit
e9ac176e
authored
Aug 28, 2022
by
季圣华
Browse files
优化账户/仓库/经手人等模块的排序
parent
01e85bd4
Changes
7
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/account/AccountService.java
View file @
e9ac176e
...
...
@@ -74,10 +74,11 @@ public class AccountService {
}
public
List
<
Account
>
getAccount
()
throws
Exception
{
AccountExample
example
=
new
AccountExample
();
example
.
createCriteria
().
andEnabledEqualTo
(
true
).
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
List
<
Account
>
list
=
null
;
try
{
AccountExample
example
=
new
AccountExample
();
example
.
createCriteria
().
andEnabledEqualTo
(
true
).
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"sort asc, id desc"
);
list
=
accountMapper
.
selectByExample
(
example
);
}
catch
(
Exception
e
){
JshException
.
readFail
(
logger
,
e
);
...
...
@@ -251,7 +252,7 @@ public class AccountService {
public
List
<
Account
>
findBySelect
()
throws
Exception
{
AccountExample
example
=
new
AccountExample
();
example
.
createCriteria
().
andEnabledEqualTo
(
true
).
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"id desc"
);
example
.
setOrderByClause
(
"
sort asc,
id desc"
);
List
<
Account
>
list
=
null
;
try
{
list
=
accountMapper
.
selectByExample
(
example
);
...
...
jshERP-boot/src/main/java/com/jsh/erp/service/depot/DepotService.java
View file @
e9ac176e
...
...
@@ -89,7 +89,7 @@ public class DepotService {
public
List
<
Depot
>
getAllList
()
throws
Exception
{
DepotExample
example
=
new
DepotExample
();
example
.
createCriteria
().
andEnabledEqualTo
(
true
).
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"sort"
);
example
.
setOrderByClause
(
"sort
asc, id desc
"
);
List
<
Depot
>
list
=
null
;
try
{
list
=
depotMapper
.
selectByExample
(
example
);
...
...
@@ -232,7 +232,7 @@ public class DepotService {
DepotExample
example
=
new
DepotExample
();
example
.
createCriteria
().
andTypeEqualTo
(
0
).
andEnabledEqualTo
(
true
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"sort"
);
example
.
setOrderByClause
(
"sort
asc, id desc
"
);
List
<
Depot
>
list
=
null
;
try
{
list
=
depotMapper
.
selectByExample
(
example
);
...
...
jshERP-boot/src/main/java/com/jsh/erp/service/inOutItem/InOutItemService.java
View file @
e9ac176e
...
...
@@ -195,7 +195,7 @@ public class InOutItemService {
example
.
createCriteria
().
andTypeEqualTo
(
"支出"
).
andEnabledEqualTo
(
true
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
}
example
.
setOrderByClause
(
"id desc"
);
example
.
setOrderByClause
(
"
sort asc,
id desc"
);
List
<
InOutItem
>
list
=
null
;
try
{
list
=
inOutItemMapper
.
selectByExample
(
example
);
...
...
jshERP-boot/src/main/java/com/jsh/erp/service/person/PersonService.java
View file @
e9ac176e
...
...
@@ -224,7 +224,7 @@ public class PersonService {
PersonExample
example
=
new
PersonExample
();
example
.
createCriteria
().
andTypeEqualTo
(
type
).
andEnabledEqualTo
(
true
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"id
a
sc"
);
example
.
setOrderByClause
(
"
sort asc,
id
de
sc"
);
List
<
Person
>
list
=
null
;
try
{
list
=
personMapper
.
selectByExample
(
example
);
...
...
jshERP-boot/src/main/java/com/jsh/erp/service/role/RoleService.java
View file @
e9ac176e
...
...
@@ -63,6 +63,7 @@ public class RoleService {
public
List
<
Role
>
allList
()
throws
Exception
{
RoleExample
example
=
new
RoleExample
();
example
.
createCriteria
().
andEnabledEqualTo
(
true
).
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"sort asc, id desc"
);
List
<
Role
>
list
=
null
;
try
{
list
=
roleMapper
.
selectByExample
(
example
);
...
...
jshERP-boot/src/main/java/com/jsh/erp/service/supplier/SupplierService.java
View file @
e9ac176e
...
...
@@ -307,7 +307,7 @@ public class SupplierService {
public
List
<
Supplier
>
findBySelectCus
()
throws
Exception
{
SupplierExample
example
=
new
SupplierExample
();
example
.
createCriteria
().
andTypeLike
(
"客户"
).
andEnabledEqualTo
(
true
).
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"id desc"
);
example
.
setOrderByClause
(
"
sort asc,
id desc"
);
List
<
Supplier
>
list
=
null
;
try
{
list
=
supplierMapper
.
selectByExample
(
example
);
...
...
@@ -321,7 +321,7 @@ public class SupplierService {
SupplierExample
example
=
new
SupplierExample
();
example
.
createCriteria
().
andTypeLike
(
"供应商"
).
andEnabledEqualTo
(
true
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"id desc"
);
example
.
setOrderByClause
(
"
sort asc,
id desc"
);
List
<
Supplier
>
list
=
null
;
try
{
list
=
supplierMapper
.
selectByExample
(
example
);
...
...
@@ -335,7 +335,7 @@ public class SupplierService {
SupplierExample
example
=
new
SupplierExample
();
example
.
createCriteria
().
andTypeLike
(
"会员"
).
andEnabledEqualTo
(
true
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"id desc"
);
example
.
setOrderByClause
(
"
sort asc,
id desc"
);
List
<
Supplier
>
list
=
null
;
try
{
list
=
supplierMapper
.
selectByExample
(
example
);
...
...
@@ -349,7 +349,7 @@ public class SupplierService {
SupplierExample
example
=
new
SupplierExample
();
example
.
createCriteria
().
andIdEqualTo
(
supplierId
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"id desc"
);
example
.
setOrderByClause
(
"
sort asc,
id desc"
);
List
<
Supplier
>
list
=
null
;
try
{
list
=
supplierMapper
.
selectByExample
(
example
);
...
...
@@ -382,7 +382,7 @@ public class SupplierService {
SupplierExample
example
=
new
SupplierExample
();
example
.
createCriteria
().
andTypeEqualTo
(
"客户"
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
example
.
setOrderByClause
(
"id desc"
);
example
.
setOrderByClause
(
"
sort asc,
id desc"
);
List
<
Supplier
>
list
=
null
;
try
{
list
=
supplierMapper
.
selectByExample
(
example
);
...
...
jshERP-boot/src/main/resources/mapper_xml/SupplierMapperEx.xml
View file @
e9ac176e
...
...
@@ -69,7 +69,7 @@
and telephone like #{bindTelephone}
</if>
and ifnull(delete_flag,'0') !='1'
order by id desc
order by
sort asc,
id desc
</select>
<update
id=
"batchDeleteSupplierByIds"
>
...
...
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