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
3d21119a
Commit
3d21119a
authored
Jan 09, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】新增 codeeagent表清洗代码
parent
247011f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
254 additions
and
1 deletions
+254
-1
CodeagentController.java
...office/modules/manage/controller/CodeagentController.java
+90
-0
CodeagentDao.java
src/main/java/io/office/modules/manage/dao/CodeagentDao.java
+17
-0
CodeagentEntity.java
...java/io/office/modules/manage/entity/CodeagentEntity.java
+72
-0
CodeagentService.java
...va/io/office/modules/manage/service/CodeagentService.java
+20
-0
CodeagentServiceImpl.java
...ice/modules/manage/service/impl/CodeagentServiceImpl.java
+30
-0
TransferController.java
...io/office/modules/manage/transfer/TransferController.java
+0
-0
application.yml
src/main/resources/application.yml
+1
-1
CodeagentDao.xml
src/main/resources/mapper/manage/CodeagentDao.xml
+24
-0
No files found.
src/main/java/io/office/modules/manage/controller/CodeagentController.java
0 → 100644
View file @
3d21119a
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.CodeagentEntity
;
import
io.office.modules.manage.service.CodeagentService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2022-01-09 10:19:30
*/
@RestController
@RequestMapping
(
"/codeagent"
)
public
class
CodeagentController
{
@Autowired
private
CodeagentService
codeagentService
;
/**
* 列表
*/
@RequestMapping
(
"/list"
)
// @RequiresPermissions("manage:codeagent:list")
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
){
PageUtils
page
=
codeagentService
.
queryPage
(
params
);
return
R
.
ok
().
put
(
"page"
,
page
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{id}"
)
// @RequiresPermissions("manage:codeagent:info")
public
R
info
(
@PathVariable
(
"id"
)
Integer
id
){
CodeagentEntity
codeagent
=
codeagentService
.
getById
(
id
);
return
R
.
ok
().
put
(
"codeagent"
,
codeagent
);
}
/**
* 保存
*/
@RequestMapping
(
"/save"
)
// @RequiresPermissions("manage:codeagent:save")
public
R
save
(
@RequestBody
CodeagentEntity
codeagent
){
codeagentService
.
save
(
codeagent
);
return
R
.
ok
();
}
/**
* 修改
*/
@RequestMapping
(
"/update"
)
// @RequiresPermissions("manage:codeagent:update")
public
R
update
(
@RequestBody
CodeagentEntity
codeagent
){
codeagentService
.
updateById
(
codeagent
);
return
R
.
ok
();
}
/**
* 删除
*/
@RequestMapping
(
"/delete"
)
// @RequiresPermissions("manage:codeagent:delete")
public
R
delete
(
@RequestBody
Integer
[]
ids
){
codeagentService
.
removeByIds
(
Arrays
.
asList
(
ids
));
return
R
.
ok
();
}
}
src/main/java/io/office/modules/manage/dao/CodeagentDao.java
0 → 100644
View file @
3d21119a
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.CodeagentEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2022-01-09 10:19:30
*/
@Mapper
public
interface
CodeagentDao
extends
BaseMapper
<
CodeagentEntity
>
{
}
src/main/java/io/office/modules/manage/entity/CodeagentEntity.java
0 → 100644
View file @
3d21119a
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 2022-01-09 10:19:30
*/
@Data
@TableName
(
"CodeAgent"
)
public
class
CodeagentEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* $column.comments
*/
@TableId
private
Integer
id
;
/**
* $column.comments
*/
private
String
title
;
/**
* $column.comments
*/
private
String
content
;
/**
* $column.comments
*/
private
String
address
;
/**
* $column.comments
*/
private
String
phone
;
/**
* $column.comments
*/
private
String
postcode
;
/**
* $column.comments
*/
private
String
contactman
;
/**
* $column.comments
*/
private
String
fax
;
/**
* $column.comments
*/
private
String
description
;
/**
* $column.comments
*/
private
String
mail
;
/**
* $column.comments
*/
private
String
website
;
/**
* $column.comments
*/
private
String
addressDescription
;
}
src/main/java/io/office/modules/manage/service/CodeagentService.java
0 → 100644
View file @
3d21119a
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.CodeagentEntity
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2022-01-09 10:19:30
*/
public
interface
CodeagentService
extends
IService
<
CodeagentEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
}
src/main/java/io/office/modules/manage/service/impl/CodeagentServiceImpl.java
0 → 100644
View file @
3d21119a
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.CodeagentDao
;
import
io.office.modules.manage.entity.CodeagentEntity
;
import
io.office.modules.manage.service.CodeagentService
;
@Service
(
"codeagentService"
)
public
class
CodeagentServiceImpl
extends
ServiceImpl
<
CodeagentDao
,
CodeagentEntity
>
implements
CodeagentService
{
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
CodeagentEntity
>
page
=
this
.
page
(
new
Query
<
CodeagentEntity
>().
getPage
(
params
),
new
QueryWrapper
<
CodeagentEntity
>()
);
return
new
PageUtils
(
page
);
}
}
\ No newline at end of file
src/main/java/io/office/modules/manage/transfer/TransferController.java
View file @
3d21119a
This diff is collapsed.
Click to expand it.
src/main/resources/application.yml
View file @
3d21119a
...
...
@@ -14,7 +14,7 @@ spring:
name
:
GS1OfficeWebSit
# 环境 dev|test|prod
profiles
:
active
:
test
active
:
dev
# jackson时间格式化
jackson
:
time-zone
:
GMT+8
...
...
src/main/resources/mapper/manage/CodeagentDao.xml
0 → 100644
View file @
3d21119a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"io.office.modules.manage.dao.CodeagentDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.CodeagentEntity"
id=
"codeagentMap"
>
<result
property=
"id"
column=
"Id"
/>
<result
property=
"title"
column=
"Title"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"address"
column=
"Address"
/>
<result
property=
"phone"
column=
"Phone"
/>
<result
property=
"postcode"
column=
"Postcode"
/>
<result
property=
"contactman"
column=
"contactman"
/>
<result
property=
"fax"
column=
"fax"
/>
<result
property=
"description"
column=
"description"
/>
<result
property=
"mail"
column=
"mail"
/>
<result
property=
"website"
column=
"website"
/>
<result
property=
"addressDescription"
column=
"address_description"
/>
</resultMap>
</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