Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fileServe
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
vanke
fileServe
Commits
85fb6d39
Commit
85fb6d39
authored
Jun 17, 2020
by
XiaHou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权星相关接口修复
parent
318c8f52
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
19 deletions
+31
-19
PmsProductController.java
.../java/com/macro/mall/controller/PmsProductController.java
+3
-2
UmsMember.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMember.java
+1
-1
UmsMemberMapper.xml
.../main/resources/com/macro/mall/mapper/UmsMemberMapper.xml
+14
-14
PmsProductService.java
...ava/com/macro/mall/service/product/PmsProductService.java
+1
-1
PmsProductServiceImpl.java
...acro/mall/service/product/impl/PmsProductServiceImpl.java
+2
-1
UmsAdminServiceImpl.java
...m/macro/mall/service/system/impl/UmsAdminServiceImpl.java
+6
-0
PmsProductDao.xml
...in/resources/com/macro/mall/dao/product/PmsProductDao.xml
+4
-0
No files found.
mall-admin/src/main/java/com/macro/mall/controller/PmsProductController.java
View file @
85fb6d39
...
@@ -69,8 +69,9 @@ public class PmsProductController {
...
@@ -69,8 +69,9 @@ public class PmsProductController {
public
CommonResult
<
CommonPage
<
PmsProductDto
>>
getPageList
(
@ApiParam
(
"页数"
)
@RequestParam
(
"page"
)
Integer
page
,
@ApiParam
(
"每页大小"
)
@RequestParam
(
"size"
)
Integer
size
,
public
CommonResult
<
CommonPage
<
PmsProductDto
>>
getPageList
(
@ApiParam
(
"页数"
)
@RequestParam
(
"page"
)
Integer
page
,
@ApiParam
(
"每页大小"
)
@RequestParam
(
"size"
)
Integer
size
,
@ApiParam
(
"模糊查询商品名称 "
)
@RequestParam
(
"name"
)
String
name
,
@ApiParam
(
"模糊查询商品名称 "
)
@RequestParam
(
"name"
)
String
name
,
@ApiParam
(
"模糊查询商品供应商名称 "
)
@RequestParam
(
"mchtName"
)
String
mchtName
,
@ApiParam
(
"模糊查询商品供应商名称 "
)
@RequestParam
(
"mchtName"
)
String
mchtName
,
@ApiParam
(
"审核状态 0待审核 1审核通过 2审核未通过 "
)
@RequestParam
(
"verifyStatus"
)
Integer
verifyStatus
){
@ApiParam
(
"审核状态 0待审核 1审核通过 2审核未通过 "
)
@RequestParam
(
"verifyStatus"
)
Integer
verifyStatus
,
return
CommonResult
.
success
(
CommonPage
.
restPage
(
this
.
productService
.
getPageList
(
page
,
size
,
name
,
verifyStatus
,
mchtName
)));
@ApiParam
(
"商品供应商id "
)
@RequestParam
(
"mchtId"
)
Long
mchtId
){
return
CommonResult
.
success
(
CommonPage
.
restPage
(
this
.
productService
.
getPageList
(
page
,
size
,
name
,
verifyStatus
,
mchtName
,
mchtId
)));
}
}
@ApiOperation
(
"权星后台_根据商品id修改一条商品数据"
)
@ApiOperation
(
"权星后台_根据商品id修改一条商品数据"
)
...
...
mall-mbg/src/main/java/com/macro/mall/model/UmsMember.java
View file @
85fb6d39
...
@@ -45,7 +45,7 @@ public class UmsMember implements Serializable {
...
@@ -45,7 +45,7 @@ public class UmsMember implements Serializable {
@ApiModelProperty
(
value
=
"职业"
)
@ApiModelProperty
(
value
=
"职业"
)
private
String
job
;
private
String
job
;
@ApiModelProperty
(
value
=
"个性签名"
)
@ApiModelProperty
(
value
=
"个性签名
(说明)
"
)
private
String
personalizedSignature
;
private
String
personalizedSignature
;
@ApiModelProperty
(
value
=
"用户来源"
)
@ApiModelProperty
(
value
=
"用户来源"
)
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml
View file @
85fb6d39
...
@@ -139,10 +139,13 @@
...
@@ -139,10 +139,13 @@
</if>
</if>
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMember"
>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMember"
>
insert into ums_member (id, member_level_id, username,
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
password, nickname, phone,
SELECT LAST_INSERT_ID()
status, icon, gender,
</selectKey>
birthday, city, job, personalized_signature,
insert into ums_member (member_level_id, username, password,
nickname, phone, status,
icon, gender, birthday,
city, job, personalized_signature,
source_type, integration, growth,
source_type, integration, growth,
create_date, create_by, update_date,
create_date, create_by, update_date,
update_by, delete_status, name,
update_by, delete_status, name,
...
@@ -153,10 +156,10 @@
...
@@ -153,10 +156,10 @@
invitation_code, invitation_code_id, union_id,
invitation_code, invitation_code_id, union_id,
label, distribution_level, accouunt_type,
label, distribution_level, accouunt_type,
login_time)
login_time)
values (#{
id,jdbcType=BIGINT}, #{memberLevelId,jdbcType=BIGINT}, #{username
,jdbcType=VARCHAR},
values (#{
memberLevelId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password
,jdbcType=VARCHAR},
#{
password,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHA
R},
#{
nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGE
R},
#{
status,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER
},
#{
icon,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER}, #{birthday,jdbcType=DATE
},
#{
birthday,jdbcType=DATE}, #{
city,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER},
#{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER},
#{createDate,jdbcType=TIMESTAMP}, #{createBy,jdbcType=BIGINT}, #{updateDate,jdbcType=TIMESTAMP},
#{createDate,jdbcType=TIMESTAMP}, #{createBy,jdbcType=BIGINT}, #{updateDate,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=BIGINT}, #{deleteStatus,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{updateBy,jdbcType=BIGINT}, #{deleteStatus,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
...
@@ -169,11 +172,11 @@
...
@@ -169,11 +172,11 @@
#{loginTime,jdbcType=TIMESTAMP})
#{loginTime,jdbcType=TIMESTAMP})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMember"
>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMember"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member
insert into ums_member
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"memberLevelId != null"
>
<if
test=
"memberLevelId != null"
>
member_level_id,
member_level_id,
</if>
</if>
...
@@ -290,9 +293,6 @@
...
@@ -290,9 +293,6 @@
</if>
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
</if>
<if
test=
"memberLevelId != null"
>
<if
test=
"memberLevelId != null"
>
#{memberLevelId,jdbcType=BIGINT},
#{memberLevelId,jdbcType=BIGINT},
</if>
</if>
...
...
mall-service/src/main/java/com/macro/mall/service/product/PmsProductService.java
View file @
85fb6d39
...
@@ -171,7 +171,7 @@ public interface PmsProductService {
...
@@ -171,7 +171,7 @@ public interface PmsProductService {
* @param name
* @param name
* @return
* @return
*/
*/
List
<
PmsProductDto
>
getPageList
(
Integer
pageNum
,
Integer
pageSize
,
String
name
,
Integer
auditStatus
,
String
mchtName
);
List
<
PmsProductDto
>
getPageList
(
Integer
pageNum
,
Integer
pageSize
,
String
name
,
Integer
auditStatus
,
String
mchtName
,
Long
mchtId
);
/**
/**
* 根据Id修改传入参数
* 根据Id修改传入参数
...
...
mall-service/src/main/java/com/macro/mall/service/product/impl/PmsProductServiceImpl.java
View file @
85fb6d39
...
@@ -762,12 +762,13 @@ public class PmsProductServiceImpl implements PmsProductService {
...
@@ -762,12 +762,13 @@ public class PmsProductServiceImpl implements PmsProductService {
* @return
* @return
*/
*/
@Override
@Override
public
List
<
PmsProductDto
>
getPageList
(
Integer
pageNum
,
Integer
pageSize
,
String
name
,
Integer
verifyStatus
,
String
mchtName
){
public
List
<
PmsProductDto
>
getPageList
(
Integer
pageNum
,
Integer
pageSize
,
String
name
,
Integer
verifyStatus
,
String
mchtName
,
Long
mchtId
){
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PmsProductDto
pmsProductDto
=
new
PmsProductDto
();
PmsProductDto
pmsProductDto
=
new
PmsProductDto
();
pmsProductDto
.
setName
(
name
);
pmsProductDto
.
setName
(
name
);
pmsProductDto
.
setVerifyStatus
(
verifyStatus
);
pmsProductDto
.
setVerifyStatus
(
verifyStatus
);
pmsProductDto
.
setMchtName
(
mchtName
);
pmsProductDto
.
setMchtName
(
mchtName
);
pmsProductDto
.
setMchtId
(
mchtId
);
return
this
.
pmsProductDao
.
selectProductListByOther
(
pmsProductDto
);
return
this
.
pmsProductDao
.
selectProductListByOther
(
pmsProductDto
);
}
}
...
...
mall-service/src/main/java/com/macro/mall/service/system/impl/UmsAdminServiceImpl.java
View file @
85fb6d39
...
@@ -6,6 +6,7 @@ import com.macro.mall.dao.UmsAdminDao;
...
@@ -6,6 +6,7 @@ import com.macro.mall.dao.UmsAdminDao;
import
com.macro.mall.dao.UmsAdminPermissionRelationDao
;
import
com.macro.mall.dao.UmsAdminPermissionRelationDao
;
import
com.macro.mall.dao.UmsAdminRoleRelationDao
;
import
com.macro.mall.dao.UmsAdminRoleRelationDao
;
import
com.macro.mall.domain.AdminUpdateParam
;
import
com.macro.mall.domain.AdminUpdateParam
;
import
com.macro.mall.domain.MemberDetails
;
import
com.macro.mall.domain.dto.AdminManageParam
;
import
com.macro.mall.domain.dto.AdminManageParam
;
import
com.macro.mall.domain.dto.UmsAdminParam
;
import
com.macro.mall.domain.dto.UmsAdminParam
;
import
com.macro.mall.domain.dto.UmsAdminQueryParam
;
import
com.macro.mall.domain.dto.UmsAdminQueryParam
;
...
@@ -18,10 +19,13 @@ import com.macro.mall.service.mcht.PmsMchtShopInfoService;
...
@@ -18,10 +19,13 @@ import com.macro.mall.service.mcht.PmsMchtShopInfoService;
import
com.macro.mall.service.member.UmsMemberService
;
import
com.macro.mall.service.member.UmsMemberService
;
import
com.macro.mall.service.system.UmsAdminService
;
import
com.macro.mall.service.system.UmsAdminService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Test
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
;
import
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.AuthenticationException
;
import
org.springframework.security.core.AuthenticationException
;
import
org.springframework.security.core.context.SecurityContext
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.core.userdetails.UserDetails
;
import
org.springframework.security.core.userdetails.UserDetails
;
import
org.springframework.security.core.userdetails.UsernameNotFoundException
;
import
org.springframework.security.core.userdetails.UsernameNotFoundException
;
...
@@ -637,4 +641,6 @@ public class UmsAdminServiceImpl implements UmsAdminService {
...
@@ -637,4 +641,6 @@ public class UmsAdminServiceImpl implements UmsAdminService {
List
<
UmsAdminRoleRelation
>
umsAdminRoleRelations
=
adminRoleRelationMapper
.
selectByExample
(
example
);
List
<
UmsAdminRoleRelation
>
umsAdminRoleRelations
=
adminRoleRelationMapper
.
selectByExample
(
example
);
return
umsAdminRoleRelations
.
get
(
0
).
getRoleId
();
return
umsAdminRoleRelations
.
get
(
0
).
getRoleId
();
}
}
}
}
mall-service/src/main/resources/com/macro/mall/dao/product/PmsProductDao.xml
View file @
85fb6d39
...
@@ -603,6 +603,9 @@
...
@@ -603,6 +603,9 @@
<if
test=
"mchtName != null and mchtName != ''"
>
<if
test=
"mchtName != null and mchtName != ''"
>
AND b.name like CONCAT('%',#{mchtName},'%')
AND b.name like CONCAT('%',#{mchtName},'%')
</if>
</if>
<if
test=
"mchtId != null "
>
AND a.mcht_id = #{mchtId}
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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