Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
40b43fcd
Commit
40b43fcd
authored
Mar 12, 2024
by
邹磊浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
478190dc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
pz-system/src/main/java/com/pz/merchant/service/ICompanyService.java
+7
-0
pz-system/src/main/java/com/pz/merchant/service/impl/CompanyServiceImpl.java
+13
-5
pz-system/src/main/resources/mapper/merchant/CompanyMapper.xml
+1
-1
No files found.
pz-system/src/main/java/com/pz/merchant/service/ICompanyService.java
View file @
40b43fcd
...
@@ -110,4 +110,11 @@ public interface ICompanyService {
...
@@ -110,4 +110,11 @@ public interface ICompanyService {
DataViewVo
dataCompany
(
DataViewBo
dataViewBo
);
DataViewVo
dataCompany
(
DataViewBo
dataViewBo
);
int
selectCompanyById
(
Long
userId
);
int
selectCompanyById
(
Long
userId
);
/**
* 重新提交
* @param companyBo
* @return
*/
Boolean
reloadSubmit
(
CompanyBo
companyBo
);
}
}
pz-system/src/main/java/com/pz/merchant/service/impl/CompanyServiceImpl.java
View file @
40b43fcd
...
@@ -105,6 +105,7 @@ public class CompanyServiceImpl implements ICompanyService {
...
@@ -105,6 +105,7 @@ public class CompanyServiceImpl implements ICompanyService {
/**
/**
* pc查询商户列表
* pc查询商户列表
*
* @param bo
* @param bo
* @return
* @return
*/
*/
...
@@ -117,9 +118,9 @@ public class CompanyServiceImpl implements ICompanyService {
...
@@ -117,9 +118,9 @@ public class CompanyServiceImpl implements ICompanyService {
private
LambdaQueryWrapper
<
Company
>
buildQueryWrapper
(
CompanyBo
bo
)
{
private
LambdaQueryWrapper
<
Company
>
buildQueryWrapper
(
CompanyBo
bo
)
{
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
LambdaQueryWrapper
<
Company
>
lqw
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
Company
>
lqw
=
Wrappers
.
lambdaQuery
();
lqw
.
eq
(
null
!=
bo
.
getStatus
(),
Company:
:
getStatus
,
1
);
lqw
.
eq
(
null
!=
bo
.
getStatus
(),
Company:
:
getStatus
,
1
);
lqw
.
eq
(
null
!=
bo
.
getUid
(),
Company:
:
getUid
,
bo
.
getUid
());
lqw
.
eq
(
null
!=
bo
.
getUid
(),
Company:
:
getUid
,
bo
.
getUid
());
lqw
.
eq
(
null
!=
bo
.
getCityId
(),
Company:
:
getCityId
,
bo
.
getCityId
());
lqw
.
eq
(
null
!=
bo
.
getCityId
(),
Company:
:
getCityId
,
bo
.
getCityId
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getName
()),
Company:
:
getName
,
bo
.
getName
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getName
()),
Company:
:
getName
,
bo
.
getName
());
return
lqw
;
return
lqw
;
}
}
...
@@ -147,11 +148,11 @@ public class CompanyServiceImpl implements ICompanyService {
...
@@ -147,11 +148,11 @@ public class CompanyServiceImpl implements ICompanyService {
validEntityBeforeSave
(
update
);
validEntityBeforeSave
(
update
);
SysUser
sysUser
=
new
SysUser
();
SysUser
sysUser
=
new
SysUser
();
sysUser
.
setUserId
(
update
.
getUid
().
longValue
());
sysUser
.
setUserId
(
update
.
getUid
().
longValue
());
if
(
update
.
getStatus
()
==
0
||
update
.
getStatus
()
==
2
)
{
if
(
update
.
getStatus
()
==
0
||
update
.
getStatus
()
==
2
)
{
sysUser
.
setUserType
(
UserType
.
XCX_USER
.
getUserType
());
sysUser
.
setUserType
(
UserType
.
XCX_USER
.
getUserType
());
sysUserMapper
.
updateById
(
sysUser
);
sysUserMapper
.
updateById
(
sysUser
);
userRoleMapper
.
delete
(
new
LambdaQueryWrapper
<
SysUserRole
>().
eq
(
SysUserRole:
:
getUserId
,
sysUser
.
getUserId
()));
userRoleMapper
.
delete
(
new
LambdaQueryWrapper
<
SysUserRole
>().
eq
(
SysUserRole:
:
getUserId
,
sysUser
.
getUserId
()));
}
else
if
(
update
.
getStatus
()
==
1
)
{
}
else
if
(
update
.
getStatus
()
==
1
)
{
sysUser
.
setUserType
(
UserType
.
AMERCHANT_USER
.
getUserType
());
sysUser
.
setUserType
(
UserType
.
AMERCHANT_USER
.
getUserType
());
sysUserMapper
.
updateById
(
sysUser
);
sysUserMapper
.
updateById
(
sysUser
);
// 新增用户与角色管理
// 新增用户与角色管理
...
@@ -308,4 +309,11 @@ public class CompanyServiceImpl implements ICompanyService {
...
@@ -308,4 +309,11 @@ public class CompanyServiceImpl implements ICompanyService {
public
int
selectCompanyById
(
Long
userId
)
{
public
int
selectCompanyById
(
Long
userId
)
{
return
baseMapper
.
selectVoOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getUid
,
userId
)).
getId
();
return
baseMapper
.
selectVoOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getUid
,
userId
)).
getId
();
}
}
@Override
public
Boolean
reloadSubmit
(
CompanyBo
companyBo
)
{
Company
company
=
BeanUtil
.
toBean
(
companyBo
,
Company
.
class
);
company
.
setStatus
(
0
);
return
baseMapper
.
updateById
(
company
)
>
0
;
}
}
}
pz-system/src/main/resources/mapper/merchant/CompanyMapper.xml
View file @
40b43fcd
...
@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectFinanceStatistic"
resultType=
"java.math.BigDecimal"
>
<select
id=
"selectFinanceStatistic"
resultType=
"java.math.BigDecimal"
>
select ifnull(sum(ifnull(divide_price, 0)),0)
select ifnull(sum(ifnull(divide_price, 0)),0)
from employees_divide
from employees_divide
where company_id = #{id}
and to_days(current_date) = to_days(create_time);
where company_id = #{id}
</select>
</select>
<select
id=
"selectAllOrder"
resultType=
"com.pz.merchant.domain.vo.FinanceOrderInfoVo"
>
<select
id=
"selectAllOrder"
resultType=
"com.pz.merchant.domain.vo.FinanceOrderInfoVo"
>
...
...
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