Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
吴迪
gs1-office-web-sit
Commits
e099bd1e
Commit
e099bd1e
authored
Dec 27, 2021
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】 企业信息回显(系统成员)
parent
6fcefc32
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
248 additions
and
5 deletions
+248
-5
GdsBindController.java
...o/office/modules/manage/controller/GdsBindController.java
+90
-0
TycpdmFirmController.java
...ffice/modules/manage/controller/TycpdmFirmController.java
+12
-0
GdsBindDao.java
src/main/java/io/office/modules/manage/dao/GdsBindDao.java
+17
-0
TycpdmFirmDao.java
...main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
+2
-0
GdsBindEntity.java
...n/java/io/office/modules/manage/entity/GdsBindEntity.java
+52
-0
GdsBindService.java
...java/io/office/modules/manage/service/GdsBindService.java
+20
-0
TycpdmFirmService.java
...a/io/office/modules/manage/service/TycpdmFirmService.java
+3
-0
GdsBindServiceImpl.java
...ffice/modules/manage/service/impl/GdsBindServiceImpl.java
+30
-0
LogLoginServiceImpl.java
...fice/modules/manage/service/impl/LogLoginServiceImpl.java
+2
-0
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+20
-5
No files found.
src/main/java/io/office/modules/manage/controller/GdsBindController.java
0 → 100644
View file @
e099bd1e
package
io
.
office
.
modules
.
manage
.
controller
;
import
java.util.Arrays
;
import
java.util.Map
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.office.modules.manage.entity.GdsBindEntity
;
import
io.office.modules.manage.service.GdsBindService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-27 11:25:44
*/
@RestController
@RequestMapping
(
"/gdsbind"
)
public
class
GdsBindController
{
@Autowired
private
GdsBindService
gdsBindService
;
/**
* 列表
*/
@RequestMapping
(
"/list"
)
// @RequiresPermissions("manage:gdsbind:list")
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
){
PageUtils
page
=
gdsBindService
.
queryPage
(
params
);
return
R
.
ok
().
put
(
"page"
,
page
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{gdsCode}"
)
// @RequiresPermissions("manage:gdsbind:info")
public
R
info
(
@PathVariable
(
"gdsCode"
)
String
gdsCode
){
GdsBindEntity
gdsBind
=
gdsBindService
.
getById
(
gdsCode
);
return
R
.
ok
().
put
(
"gdsBind"
,
gdsBind
);
}
/**
* 保存
*/
@RequestMapping
(
"/save"
)
// @RequiresPermissions("manage:gdsbind:save")
public
R
save
(
@RequestBody
GdsBindEntity
gdsBind
){
gdsBindService
.
save
(
gdsBind
);
return
R
.
ok
();
}
/**
* 修改
*/
@RequestMapping
(
"/update"
)
// @RequiresPermissions("manage:gdsbind:update")
public
R
update
(
@RequestBody
GdsBindEntity
gdsBind
){
gdsBindService
.
updateById
(
gdsBind
);
return
R
.
ok
();
}
/**
* 删除
*/
@RequestMapping
(
"/delete"
)
// @RequiresPermissions("manage:gdsbind:delete")
public
R
delete
(
@RequestBody
String
[]
gdsCodes
){
gdsBindService
.
removeByIds
(
Arrays
.
asList
(
gdsCodes
));
return
R
.
ok
();
}
}
src/main/java/io/office/modules/manage/controller/TycpdmFirmController.java
View file @
e099bd1e
...
...
@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.manage.dao.MemberDao
;
import
io.office.modules.manage.dao.TycpdmFirmDao
;
import
io.office.modules.manage.entity.FirmEntity
;
import
io.office.modules.manage.entity.MemberEntity
;
import
io.office.modules.manage.service.TycpdmFirmChangeService
;
import
io.office.modules.manage.utils.DESUtils
;
...
...
@@ -346,4 +347,15 @@ public class TycpdmFirmController extends AbstractController {
TycpdmFirmEntity
userName
=
tycpdmFirmDao
.
findUserName
(
userNameR
);
return
R
.
ok
().
put
(
"data"
,
userName
);
}
/**
* 企业信息回显(系统成员)
*/
@RequestMapping
(
"/api/findFirmInfoXT"
)
@Login
public
R
findFirmInfoXT
(
@RequestBody
Map
name
){
String
carno
=
String
.
valueOf
(
name
.
get
(
"carno"
));
FirmEntity
data
=
tycpdmFirmService
.
findFirmInfoXT
(
carno
);
return
R
.
ok
().
put
(
"data"
,
data
);
}
}
src/main/java/io/office/modules/manage/dao/GdsBindDao.java
0 → 100644
View file @
e099bd1e
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.GdsBindEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-27 11:25:44
*/
@Mapper
public
interface
GdsBindDao
extends
BaseMapper
<
GdsBindEntity
>
{
}
src/main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
View file @
e099bd1e
...
...
@@ -43,4 +43,6 @@ public interface TycpdmFirmDao extends BaseMapper<TycpdmFirmEntity> {
void
updateByIdBranchCode
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"branchCode"
)
Integer
branchCode
);
String
returnFileUrl
(
Map
name
);
TycpdmFirmEntity
findFirmInfoXT
(
String
username
);
}
src/main/java/io/office/modules/manage/entity/GdsBindEntity.java
0 → 100644
View file @
e099bd1e
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-27 11:25:44
*/
@Data
@TableName
(
"GDS_BIND"
)
public
class
GdsBindEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* $column.comments
*/
private
String
billsn
;
/**
* $column.comments
*/
@TableId
private
String
gdsCode
;
/**
* $column.comments
*/
private
Integer
fId
;
/**
* $column.comments
*/
private
Date
gdsBindDate
;
/**
* $column.comments
*/
private
Date
gdsModDate
;
/**
* $column.comments
*/
private
String
gdsMemo
;
/**
* $column.comments
*/
private
String
gdsBindPerson
;
}
src/main/java/io/office/modules/manage/service/GdsBindService.java
0 → 100644
View file @
e099bd1e
package
io
.
office
.
modules
.
manage
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.office.common.utils.PageUtils
;
import
io.office.modules.manage.entity.GdsBindEntity
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-27 11:25:44
*/
public
interface
GdsBindService
extends
IService
<
GdsBindEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
}
src/main/java/io/office/modules/manage/service/TycpdmFirmService.java
View file @
e099bd1e
...
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.office.common.utils.PageUtils
;
import
io.office.modules.manage.entity.FirmEntity
;
import
io.office.modules.manage.entity.MemberEntity
;
import
io.office.modules.manage.entity.ProductEntity
;
import
io.office.modules.manage.entity.TycpdmFirmEntity
;
...
...
@@ -55,5 +56,7 @@ public interface TycpdmFirmService extends IService<TycpdmFirmEntity> {
String
redirectBusinessHall
(
Map
map
,
MemberEntity
memberUser
);
String
returnFileUrl
(
Map
name
);
FirmEntity
findFirmInfoXT
(
String
carno
);
}
src/main/java/io/office/modules/manage/service/impl/GdsBindServiceImpl.java
0 → 100644
View file @
e099bd1e
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.Query
;
import
io.office.modules.manage.dao.GdsBindDao
;
import
io.office.modules.manage.entity.GdsBindEntity
;
import
io.office.modules.manage.service.GdsBindService
;
@Service
(
"gdsBindService"
)
public
class
GdsBindServiceImpl
extends
ServiceImpl
<
GdsBindDao
,
GdsBindEntity
>
implements
GdsBindService
{
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
GdsBindEntity
>
page
=
this
.
page
(
new
Query
<
GdsBindEntity
>().
getPage
(
params
),
new
QueryWrapper
<
GdsBindEntity
>()
);
return
new
PageUtils
(
page
);
}
}
\ No newline at end of file
src/main/java/io/office/modules/manage/service/impl/LogLoginServiceImpl.java
View file @
e099bd1e
...
...
@@ -161,6 +161,8 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
jsonObject
.
put
(
"isXT"
,
isXT
);
jsonObject
.
put
(
"id"
,
id
);
jsonObject
.
put
(
"carno"
,
carno
);
jsonObject
.
put
(
"username"
,
userName
);
jsonObject
.
put
(
"phone"
,
phone
);
R
token
=
sysUserTokenService
.
createToken
(
"qianduan_"
,
id
);
//将token信息存入 数据库
Object
token1
=
token
.
get
(
"token"
);
jsonObject
.
put
(
"token"
,
token1
);
...
...
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
e099bd1e
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
cn.hutool.crypto.symmetric.DES
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.exception.RRException
;
import
io.office.modules.manage.dao.MemberDao
;
import
io.office.modules.manage.dao.TycpdmFirmChangeDao
;
import
io.office.modules.manage.dao.TycpdmVipUserDao
;
import
io.office.modules.manage.dao.*
;
import
io.office.modules.manage.entity.*
;
import
io.office.modules.manage.service.TycpdmFirmChangeService
;
import
io.office.modules.manage.utils.DESUtils
;
...
...
@@ -31,7 +28,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.Query
;
import
io.office.modules.manage.dao.TycpdmFirmDao
;
import
io.office.modules.manage.service.TycpdmFirmService
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.FileCopyUtils
;
...
...
@@ -59,6 +55,12 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
@Autowired
private
TycpdmFirmChangeService
tycpdmFirmChangeService
;
@Autowired
private
GdsBindDao
gdsBindDao
;
@Autowired
private
FirmDao
firmDao
;
@Value
(
"${uploadFileQY}"
)
String
uploadFileQY
;
...
...
@@ -472,6 +474,19 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
}
@Override
public
FirmEntity
findFirmInfoXT
(
String
carno
)
{
GdsBindEntity
gdsBindEntity
=
gdsBindDao
.
selectById
(
carno
);
if
(
gdsBindEntity
==
null
){
throw
new
RRException
(
"暂无数据"
);
}
else
{
Integer
fId
=
gdsBindEntity
.
getFId
();
FirmEntity
firmEntity
=
firmDao
.
selectById
(
fId
);
firmEntity
.
setFirmType
(
"firmType"
);
//刘娜给的文章这样写死值
return
firmEntity
;
}
}
@Override
public
void
updateSystem
(
Map
<
String
,
Object
>
params
)
{
Integer
id
=
Integer
.
valueOf
(
String
.
valueOf
(
params
.
get
(
"id"
)));
//id为 各个表得ID 变更表和主表
Integer
status
=
Integer
.
valueOf
(
String
.
valueOf
(
params
.
get
(
"status"
)));
//申请状态 1.首次 2.变更
...
...
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