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
039552c0
Commit
039552c0
authored
Oct 17, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】政府采购
parent
22f2516a
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
1404 additions
and
14 deletions
+1404
-14
ApplicationCaseController.java
.../modules/manage/controller/ApplicationCaseController.java
+100
-0
SolutionController.java
.../office/modules/manage/controller/SolutionController.java
+100
-0
StandardMaterialController.java
...modules/manage/controller/StandardMaterialController.java
+126
-0
VideoController.java
.../io/office/modules/manage/controller/VideoController.java
+100
-0
ApplicationCaseDao.java
...java/io/office/modules/manage/dao/ApplicationCaseDao.java
+17
-0
SolutionDao.java
src/main/java/io/office/modules/manage/dao/SolutionDao.java
+17
-0
StandardMaterialDao.java
...ava/io/office/modules/manage/dao/StandardMaterialDao.java
+23
-0
VideoDao.java
src/main/java/io/office/modules/manage/dao/VideoDao.java
+17
-0
ApplicationCaseEntity.java
...o/office/modules/manage/entity/ApplicationCaseEntity.java
+79
-0
SolutionEntity.java
.../java/io/office/modules/manage/entity/SolutionEntity.java
+83
-0
StandardMaterialEntity.java
.../office/modules/manage/entity/StandardMaterialEntity.java
+69
-0
VideoEntity.java
...ain/java/io/office/modules/manage/entity/VideoEntity.java
+79
-0
ApplicationCaseForm.java
...va/io/office/modules/manage/form/ApplicationCaseForm.java
+23
-0
SolutionForm.java
...main/java/io/office/modules/manage/form/SolutionForm.java
+23
-0
StandardMaterialForm.java
...a/io/office/modules/manage/form/StandardMaterialForm.java
+24
-0
VideoForm.java
src/main/java/io/office/modules/manage/form/VideoForm.java
+23
-0
ApplicationCaseService.java
...office/modules/manage/service/ApplicationCaseService.java
+28
-0
LogLoginService.java
...ava/io/office/modules/manage/service/LogLoginService.java
+10
-3
SolutionService.java
...ava/io/office/modules/manage/service/SolutionService.java
+28
-0
StandardMaterialService.java
...ffice/modules/manage/service/StandardMaterialService.java
+34
-0
VideoService.java
...n/java/io/office/modules/manage/service/VideoService.java
+28
-0
ApplicationCaseServiceImpl.java
...dules/manage/service/impl/ApplicationCaseServiceImpl.java
+49
-0
LogLoginServiceImpl.java
...fice/modules/manage/service/impl/LogLoginServiceImpl.java
+13
-0
SolutionServiceImpl.java
...fice/modules/manage/service/impl/SolutionServiceImpl.java
+50
-0
StandardMaterialServiceImpl.java
...ules/manage/service/impl/StandardMaterialServiceImpl.java
+95
-0
VideoServiceImpl.java
.../office/modules/manage/service/impl/VideoServiceImpl.java
+51
-0
ESSearchUtils.java
...in/java/io/office/modules/manage/utils/ESSearchUtils.java
+5
-1
BinaryUploader.java
...ules/ueditor/com/baidu/ueditor/upload/BinaryUploader.java
+5
-10
ApplicationCaseDao.xml
src/main/resources/mapper/manage/ApplicationCaseDao.xml
+25
-0
SolutionDao.xml
src/main/resources/mapper/manage/SolutionDao.xml
+27
-0
StandardMaterialDao.xml
src/main/resources/mapper/manage/StandardMaterialDao.xml
+28
-0
VideoDao.xml
src/main/resources/mapper/manage/VideoDao.xml
+25
-0
No files found.
src/main/java/io/office/modules/manage/controller/ApplicationCaseController.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
io.office.common.annotation.SysLog
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
io.office.common.validator.ValidatorUtils
;
import
io.office.common.validator.group.AddGroup
;
import
io.office.common.validator.group.UpdateGroup
;
import
io.office.modules.manage.entity.ApplicationCaseEntity
;
import
io.office.modules.manage.form.ApplicationCaseForm
;
import
io.office.modules.manage.service.ApplicationCaseService
;
import
io.office.modules.sys.controller.AbstractController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Arrays
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
@RestController
@RequestMapping
(
"manage/applicationcase"
)
public
class
ApplicationCaseController
extends
AbstractController
{
@Autowired
private
ApplicationCaseService
applicationCaseService
;
/**
* 列表
*/
@RequestMapping
(
"/list"
)
//@RequiresPermissions("manage:applicationcase:list")
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
PageUtils
page
=
applicationCaseService
.
queryPage
(
params
);
return
R
.
ok
().
put
(
"data"
,
page
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{id}"
)
//@RequiresPermissions("manage:applicationcase:info")
public
R
info
(
@PathVariable
(
"id"
)
String
id
)
{
ApplicationCaseEntity
applicationCase
=
applicationCaseService
.
getById
(
id
);
return
R
.
ok
().
put
(
"data"
,
applicationCase
);
}
/**
* 保存
*/
@SysLog
(
"保存XXXX"
)
@RequestMapping
(
"/save"
)
//@RequiresPermissions("manage:applicationcase:save")
public
R
save
(
@RequestBody
ApplicationCaseForm
applicationCase
)
{
//校验参数
ValidatorUtils
.
validateEntity
(
applicationCase
,
AddGroup
.
class
);
//转化实体对象
ApplicationCaseEntity
applicationCaseEntity
=
new
ApplicationCaseEntity
();
BeanUtil
.
copyProperties
(
applicationCase
,
applicationCaseEntity
);
applicationCaseService
.
saveApplicationCase
(
applicationCaseEntity
,
getUser
());
return
R
.
ok
();
}
/**
* 修改
*/
@SysLog
(
"修改XXXX"
)
@RequestMapping
(
"/update"
)
//@RequiresPermissions("manage:applicationcase:update")
public
R
update
(
@RequestBody
ApplicationCaseForm
applicationCase
)
{
ValidatorUtils
.
validateEntity
(
applicationCase
,
UpdateGroup
.
class
);
//转化实体对象
ApplicationCaseEntity
applicationCaseEntity
=
new
ApplicationCaseEntity
();
BeanUtil
.
copyProperties
(
applicationCase
,
applicationCaseEntity
);
applicationCaseService
.
updateApplicationCaseById
(
applicationCaseEntity
,
getUser
());
return
R
.
ok
();
}
/**
* 删除
*/
@SysLog
(
"删除XXXX"
)
@RequestMapping
(
"/delete"
)
//@RequiresPermissions("manage:applicationcase:delete")
public
R
delete
(
@RequestBody
String
[]
ids
)
{
applicationCaseService
.
removeByIds
(
Arrays
.
asList
(
ids
));
return
R
.
ok
();
}
}
src/main/java/io/office/modules/manage/controller/SolutionController.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
io.office.common.annotation.SysLog
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
io.office.common.validator.ValidatorUtils
;
import
io.office.common.validator.group.AddGroup
;
import
io.office.common.validator.group.UpdateGroup
;
import
io.office.modules.manage.entity.SolutionEntity
;
import
io.office.modules.manage.form.SolutionForm
;
import
io.office.modules.manage.service.SolutionService
;
import
io.office.modules.sys.controller.AbstractController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Arrays
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:52
*/
@RestController
@RequestMapping
(
"manage/solution"
)
public
class
SolutionController
extends
AbstractController
{
@Autowired
private
SolutionService
solutionService
;
/**
* 列表
*/
@RequestMapping
(
"/list"
)
//@RequiresPermissions("manage:solution:list")
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
PageUtils
page
=
solutionService
.
queryPage
(
params
);
return
R
.
ok
().
put
(
"data"
,
page
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{id}"
)
//@RequiresPermissions("manage:solution:info")
public
R
info
(
@PathVariable
(
"id"
)
String
id
)
{
SolutionEntity
solution
=
solutionService
.
getById
(
id
);
return
R
.
ok
().
put
(
"data"
,
solution
);
}
/**
* 保存
*/
@SysLog
(
"保存XXXX"
)
@RequestMapping
(
"/save"
)
//@RequiresPermissions("manage:solution:save")
public
R
save
(
@RequestBody
SolutionForm
solution
)
{
//校验参数
ValidatorUtils
.
validateEntity
(
solution
,
AddGroup
.
class
);
//转化实体对象
SolutionEntity
solutionEntity
=
new
SolutionEntity
();
BeanUtil
.
copyProperties
(
solution
,
solutionEntity
);
solutionService
.
saveSolution
(
solutionEntity
,
getUser
());
return
R
.
ok
();
}
/**
* 修改
*/
@SysLog
(
"修改XXXX"
)
@RequestMapping
(
"/update"
)
//@RequiresPermissions("manage:solution:update")
public
R
update
(
@RequestBody
SolutionForm
solution
)
{
ValidatorUtils
.
validateEntity
(
solution
,
UpdateGroup
.
class
);
//转化实体对象
SolutionEntity
solutionEntity
=
new
SolutionEntity
();
BeanUtil
.
copyProperties
(
solution
,
solutionEntity
);
solutionService
.
updateSolutionById
(
solutionEntity
,
getUser
());
return
R
.
ok
();
}
/**
* 删除
*/
@SysLog
(
"删除XXXX"
)
@RequestMapping
(
"/delete"
)
//@RequiresPermissions("manage:solution:delete")
public
R
delete
(
@RequestBody
String
[]
ids
)
{
solutionService
.
removeByIds
(
Arrays
.
asList
(
ids
));
return
R
.
ok
();
}
}
src/main/java/io/office/modules/manage/controller/StandardMaterialController.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
controller
;
import
io.office.common.annotation.SysLog
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
io.office.modules.manage.entity.StandardMaterialEntity
;
import
io.office.modules.manage.form.StandardMaterialForm
;
import
io.office.modules.manage.service.StandardMaterialService
;
import
io.office.modules.sys.controller.AbstractController
;
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.RestController
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
/**
* 政府采购—标准彩标
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-01 19:16:03
*/
@RestController
@RequestMapping
(
"manage/standardmaterial"
)
public
class
StandardMaterialController
extends
AbstractController
{
@Autowired
private
StandardMaterialService
standardMaterialService
;
/**
* 列表
*/
@RequestMapping
(
"/api/list"
)
//@RequiresPermissions("manage:standardmaterial:list")
public
R
getPageList
(
@RequestBody
StandardMaterialForm
standardMaterialForm
)
{
List
<
StandardMaterialEntity
>
pageList
=
standardMaterialService
.
getPageList
(
standardMaterialForm
);
return
R
.
ok
().
put
(
"data"
,
pageList
);
}
/**
* h后台获取列表
*/
@RequestMapping
(
"/list"
)
//@RequiresPermissions("manage:standardmaterial:list")
public
R
list
(
@RequestBody
Map
<
String
,
Object
>
param
)
{
PageUtils
pageUtils
=
standardMaterialService
.
queryPage
(
param
);
return
R
.
ok
().
put
(
"data"
,
pageUtils
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{id}"
)
//@RequiresPermissions("manage:standardmaterial:info")
public
R
info
(
@PathVariable
(
"id"
)
String
id
)
{
StandardMaterialEntity
standardMaterial
=
standardMaterialService
.
getById
(
id
);
return
R
.
ok
().
put
(
"data"
,
standardMaterial
);
}
/**
* 保存
*/
@SysLog
(
"保存政府采购标准资料"
)
@RequestMapping
(
"/save"
)
//@RequiresPermissions("manage:standardmaterial:save")
public
R
save
(
@RequestBody
StandardMaterialEntity
standardMaterial
)
{
//校验参数
//ValidatorUtils.validateEntity(standardMaterial, AddGroup.class);
//转化实体对象
//StandardMaterialEntity standardMaterialEntity = new StandardMaterialEntity();
//BeanUtil.copyProperties(standardMaterial, standardMaterialEntity);
standardMaterialService
.
saveStandardMaterial
(
standardMaterial
,
getUser
());
return
R
.
ok
();
}
/**
* 修改
*/
@SysLog
(
"修改政府采购标准资料"
)
@RequestMapping
(
"/update"
)
//@RequiresPermissions("manage:standardmaterial:update")
public
R
update
(
@RequestBody
StandardMaterialEntity
standardMaterial
)
{
//ValidatorUtils.validateEntity(standardMaterial, UpdateGroup.class);
////转化实体对象
//StandardMaterialEntity standardMaterialEntity = new StandardMaterialEntity();
//BeanUtil.copyProperties(standardMaterial, standardMaterialEntity);
standardMaterial
.
setAudit
(
false
);
standardMaterialService
.
updateStandardMaterialById
(
standardMaterial
,
getUser
());
return
R
.
ok
();
}
@SysLog
(
"审批政府采购标准资料"
)
@RequestMapping
(
"/audit"
)
//@RequiresPermissions("manage:standardmaterial:update")
public
R
audit
(
@RequestBody
StandardMaterialEntity
standardMaterial
)
{
//ValidatorUtils.validateEntity(standardMaterial, UpdateGroup.class);
////转化实体对象
//StandardMaterialEntity standardMaterialEntity = new StandardMaterialEntity();
//BeanUtil.copyProperties(standardMaterial, standardMaterialEntity);
standardMaterial
.
setAudit
(
true
);
standardMaterialService
.
updateStandardMaterialById
(
standardMaterial
,
getUser
());
return
R
.
ok
();
}
/**
* 删除
*/
@SysLog
(
"删除政府采购标准资料"
)
@RequestMapping
(
"/delete"
)
//@RequiresPermissions("manage:standardmaterial:delete")
public
R
delete
(
@RequestBody
String
[]
ids
)
{
standardMaterialService
.
removeByIds
(
Arrays
.
asList
(
ids
));
return
R
.
ok
();
}
}
src/main/java/io/office/modules/manage/controller/VideoController.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
io.office.common.annotation.SysLog
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
io.office.common.validator.ValidatorUtils
;
import
io.office.common.validator.group.AddGroup
;
import
io.office.common.validator.group.UpdateGroup
;
import
io.office.modules.manage.entity.VideoEntity
;
import
io.office.modules.manage.form.VideoForm
;
import
io.office.modules.manage.service.VideoService
;
import
io.office.modules.sys.controller.AbstractController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Arrays
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
@RestController
@RequestMapping
(
"manage/video"
)
public
class
VideoController
extends
AbstractController
{
@Autowired
private
VideoService
videoService
;
/**
* 列表
*/
@RequestMapping
(
"/list"
)
//@RequiresPermissions("manage:video:list")
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
PageUtils
page
=
videoService
.
queryPage
(
params
);
return
R
.
ok
().
put
(
"data"
,
page
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{id}"
)
//@RequiresPermissions("manage:video:info")
public
R
info
(
@PathVariable
(
"id"
)
String
id
)
{
VideoEntity
video
=
videoService
.
getById
(
id
);
return
R
.
ok
().
put
(
"data"
,
video
);
}
/**
* 保存
*/
@SysLog
(
"保存XXXX"
)
@RequestMapping
(
"/save"
)
//@RequiresPermissions("manage:video:save")
public
R
save
(
@RequestBody
VideoForm
video
)
{
//校验参数
ValidatorUtils
.
validateEntity
(
video
,
AddGroup
.
class
);
//转化实体对象
VideoEntity
videoEntity
=
new
VideoEntity
();
BeanUtil
.
copyProperties
(
video
,
videoEntity
);
videoService
.
saveVideo
(
videoEntity
,
getUser
());
return
R
.
ok
();
}
/**
* 修改
*/
@SysLog
(
"修改XXXX"
)
@RequestMapping
(
"/update"
)
//@RequiresPermissions("manage:video:update")
public
R
update
(
@RequestBody
VideoForm
video
)
{
ValidatorUtils
.
validateEntity
(
video
,
UpdateGroup
.
class
);
//转化实体对象
VideoEntity
videoEntity
=
new
VideoEntity
();
BeanUtil
.
copyProperties
(
video
,
videoEntity
);
videoService
.
updateVideoById
(
videoEntity
,
getUser
());
return
R
.
ok
();
}
/**
* 删除
*/
@SysLog
(
"删除XXXX"
)
@RequestMapping
(
"/delete"
)
//@RequiresPermissions("manage:video:delete")
public
R
delete
(
@RequestBody
String
[]
ids
)
{
videoService
.
removeByIds
(
Arrays
.
asList
(
ids
));
return
R
.
ok
();
}
}
src/main/java/io/office/modules/manage/dao/ApplicationCaseDao.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.ApplicationCaseEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
@Mapper
public
interface
ApplicationCaseDao
extends
BaseMapper
<
ApplicationCaseEntity
>
{
}
src/main/java/io/office/modules/manage/dao/SolutionDao.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.SolutionEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:52
*/
@Mapper
public
interface
SolutionDao
extends
BaseMapper
<
SolutionEntity
>
{
}
src/main/java/io/office/modules/manage/dao/StandardMaterialDao.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.modules.manage.entity.StandardMaterialEntity
;
import
io.office.modules.manage.form.StandardMaterialForm
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 政府采购—标准彩标
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-01 19:16:03
*/
@Mapper
public
interface
StandardMaterialDao
extends
BaseMapper
<
StandardMaterialEntity
>
{
List
<
StandardMaterialEntity
>
getPageList
(
@Param
(
"standardMaterialForm"
)
StandardMaterialForm
standardMaterialForm
,
Page
page
);
}
src/main/java/io/office/modules/manage/dao/VideoDao.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.VideoEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
@Mapper
public
interface
VideoDao
extends
BaseMapper
<
VideoEntity
>
{
}
src/main/java/io/office/modules/manage/entity/ApplicationCaseEntity.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
@Data
@TableName
(
"pp_application_case"
)
public
class
ApplicationCaseEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
private
String
id
;
/**
* 标题
*/
private
String
title
;
/**
* 发布日期
*/
private
String
releaseDate
;
/**
* 审核日期
*/
private
String
checkDate
;
/**
* 作者
*/
private
String
author
;
/**
* 级别
*/
private
Integer
levels
;
/**
* 跳转地址
*/
private
String
directpath
;
/**
* 内容
*/
private
String
content
;
/**
* 点击量
*/
private
Integer
hits
;
/**
* 审核人
*/
private
String
checkUser
;
/**
* 修改人
*/
private
String
updateUser
;
/**
* 修改时间
*/
private
String
updateDate
;
/**
* 显示时间
*/
private
String
showTime
;
/**
* 状态 0 待审核 1 成功 2 失败
*/
private
Integer
status
;
}
src/main/java/io/office/modules/manage/entity/SolutionEntity.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:52
*/
@Data
@TableName
(
"pp_solution"
)
public
class
SolutionEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
private
String
id
;
/**
* 标题
*/
private
String
title
;
/**
* 发布日期
*/
private
String
releaseDate
;
/**
* 审核日期
*/
private
String
checkDate
;
/**
* 作者
*/
private
String
author
;
/**
* 级别
*/
private
Integer
levels
;
/**
* 跳转地址
*/
private
String
directpath
;
/**
* 内容
*/
private
String
content
;
/**
* 点击量
*/
private
Integer
hits
;
/**
* 审核人
*/
private
String
checkUser
;
/**
* 修改人
*/
private
String
updateUser
;
/**
* 修改时间
*/
private
String
updateDate
;
/**
* 显示时间
*/
private
String
showTime
;
/**
* 状态 0 待审核 1 成功 2 失败
*/
private
Integer
status
;
/**
* 图片
*/
private
String
pic
;
}
src/main/java/io/office/modules/manage/entity/StandardMaterialEntity.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 政府采购—标准彩标
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-01 19:16:03
*/
@Data
@TableName
(
"pp_standard_material"
)
public
class
StandardMaterialEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* $column.comments
*/
@TableId
(
type
=
IdType
.
INPUT
)
private
String
id
;
/**
* 材料名称
*/
private
String
materialName
;
/**
* $column.comments
*/
private
String
materialFileUrl
;
/**
* 0等待审核;1审核成功;2审核失败
*/
private
String
materialStatus
;
/**
* 作者
*/
private
String
author
;
/**
* 等级
*/
private
Integer
levels
;
/**
* 审核人
*/
private
String
checker
;
/**
* 审核日期
*/
private
String
checkDate
;
/**
* 创建日期
*/
private
String
createDate
;
private
String
updateUser
;
private
String
updateDate
;
@TableField
(
exist
=
false
)
private
boolean
isAudit
;
}
src/main/java/io/office/modules/manage/entity/VideoEntity.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
@Data
@TableName
(
"pp_video"
)
public
class
VideoEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* $column.comments
*/
@TableId
private
String
id
;
/**
* 标题
*/
private
String
title
;
/**
* 发布日期
*/
private
String
releaseDate
;
/**
* 审核日期
*/
private
String
checkDate
;
/**
* 作者
*/
private
String
author
;
/**
* 级别
*/
private
Integer
levels
;
/**
* 跳转地址
*/
private
String
directpath
;
/**
* 视频地址
*/
private
String
filePath
;
/**
* 点击量
*/
private
Integer
hits
;
/**
* 审核人
*/
private
String
checkUser
;
/**
* 修改人
*/
private
String
updateUser
;
/**
* 修改时间
*/
private
String
updateDate
;
/**
* 显示时间
*/
private
String
showTime
;
/**
* 状态 0 待审核 1 成功 2 失败
*/
private
Integer
status
;
}
src/main/java/io/office/modules/manage/form/ApplicationCaseForm.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
form
;
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 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
@Data
public
class
ApplicationCaseForm
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
}
src/main/java/io/office/modules/manage/form/SolutionForm.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
form
;
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 632132852@qq.com
* @date 2023-10-03 22:15:52
*/
@Data
public
class
SolutionForm
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
}
src/main/java/io/office/modules/manage/form/StandardMaterialForm.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
form
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 政府采购—标准彩标
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-01 19:16:03
*/
@Data
public
class
StandardMaterialForm
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
long
page
=
1
;
private
long
limit
=
10
;
}
src/main/java/io/office/modules/manage/form/VideoForm.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
form
;
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 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
@Data
public
class
VideoForm
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
}
src/main/java/io/office/modules/manage/service/ApplicationCaseService.java
0 → 100644
View file @
039552c0
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.ApplicationCaseEntity
;
import
org.springframework.transaction.annotation.Transactional
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
public
interface
ApplicationCaseService
extends
IService
<
ApplicationCaseEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
@Transactional
void
saveApplicationCase
(
ApplicationCaseEntity
applicationCaseEntity
,
SysUserEntity
loginUser
);
@Transactional
void
updateApplicationCaseById
(
ApplicationCaseEntity
applicationCaseEntity
,
SysUserEntity
loginUser
);
}
src/main/java/io/office/modules/manage/service/LogLoginService.java
View file @
039552c0
...
...
@@ -4,8 +4,6 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.office.common.utils.PageUtils
;
import
io.office.modules.manage.entity.LogLoginEntity
;
import
io.office.modules.manage.entity.MemberEntity
;
import
org.apache.ibatis.javassist.compiler.ast.Member
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -15,7 +13,7 @@ import java.util.Map;
* ${comments}
*
* @author wudi
* @email
* @email
* @date 2021-12-08 17:47:13
*/
public
interface
LogLoginService
extends
IService
<
LogLoginEntity
>
{
...
...
@@ -37,5 +35,14 @@ public interface LogLoginService extends IService<LogLoginEntity> {
JSONObject
loginNewTest
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
);
/**
* 根据条码卡登录
* @param params
* @param request
* @param response
* @return
*/
JSONObject
loginByCode
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
);
}
src/main/java/io/office/modules/manage/service/SolutionService.java
0 → 100644
View file @
039552c0
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.SolutionEntity
;
import
org.springframework.transaction.annotation.Transactional
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:52
*/
public
interface
SolutionService
extends
IService
<
SolutionEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
@Transactional
void
saveSolution
(
SolutionEntity
solutionEntity
,
SysUserEntity
loginUser
);
@Transactional
void
updateSolutionById
(
SolutionEntity
solutionEntity
,
SysUserEntity
loginUser
);
}
src/main/java/io/office/modules/manage/service/StandardMaterialService.java
0 → 100644
View file @
039552c0
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.StandardMaterialEntity
;
import
io.office.modules.manage.form.StandardMaterialForm
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.Map
;
/**
* 政府采购—标准彩标
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-01 19:16:03
*/
public
interface
StandardMaterialService
extends
IService
<
StandardMaterialEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
@Transactional
void
saveStandardMaterial
(
StandardMaterialEntity
standardMaterialEntity
,
SysUserEntity
loginUser
);
@Transactional
void
updateStandardMaterialById
(
StandardMaterialEntity
standardMaterialEntity
,
SysUserEntity
loginUser
);
List
<
StandardMaterialEntity
>
getPageList
(
StandardMaterialForm
standardMaterialForm
);
}
src/main/java/io/office/modules/manage/service/VideoService.java
0 → 100644
View file @
039552c0
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.VideoEntity
;
import
org.springframework.transaction.annotation.Transactional
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-10-03 22:15:53
*/
public
interface
VideoService
extends
IService
<
VideoEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
@Transactional
void
saveVideo
(
VideoEntity
videoEntity
,
SysUserEntity
loginUser
);
@Transactional
void
updateVideoById
(
VideoEntity
videoEntity
,
SysUserEntity
loginUser
);
}
src/main/java/io/office/modules/manage/service/impl/ApplicationCaseServiceImpl.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.sitech.idworkstarter.IdWorkService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.Query
;
import
io.office.modules.manage.dao.ApplicationCaseDao
;
import
io.office.modules.manage.entity.ApplicationCaseEntity
;
import
io.office.modules.manage.service.ApplicationCaseService
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
@Service
(
"applicationCaseService"
)
public
class
ApplicationCaseServiceImpl
extends
ServiceImpl
<
ApplicationCaseDao
,
ApplicationCaseEntity
>
implements
ApplicationCaseService
{
@Autowired
IdWorkService
idWorkService
;
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
ApplicationCaseEntity
>
page
=
this
.
page
(
new
Query
<
ApplicationCaseEntity
>().
getPage
(
params
),
new
QueryWrapper
<
ApplicationCaseEntity
>().
eq
(
"is_publish"
,
1
)
);
return
new
PageUtils
(
page
);
}
@Override
public
void
updateApplicationCaseById
(
ApplicationCaseEntity
applicationCaseEntity
,
SysUserEntity
loginUser
)
{
baseMapper
.
updateById
(
applicationCaseEntity
);
}
@Override
public
void
saveApplicationCase
(
ApplicationCaseEntity
applicationCaseEntity
,
SysUserEntity
loginUser
)
{
applicationCaseEntity
.
setId
(
idWorkService
.
getSEQByKey
(
"id_seq"
));
baseMapper
.
insert
(
applicationCaseEntity
);
}
}
src/main/java/io/office/modules/manage/service/impl/LogLoginServiceImpl.java
View file @
039552c0
...
...
@@ -290,6 +290,19 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
return
jsonObject
;
}
/**
* 根据条码卡登录
*
* @param params
* @param request
* @param response
* @return
*/
@Override
public
JSONObject
loginByCode
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
null
;
}
private
static
String
doGet
(
String
url
)
{
HttpClient
client
=
new
HttpClient
();
...
...
src/main/java/io/office/modules/manage/service/impl/SolutionServiceImpl.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.sitech.idworkstarter.IdWorkService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.Query
;
import
io.office.modules.manage.dao.SolutionDao
;
import
io.office.modules.manage.entity.SolutionEntity
;
import
io.office.modules.manage.service.SolutionService
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
@Service
(
"solutionService"
)
public
class
SolutionServiceImpl
extends
ServiceImpl
<
SolutionDao
,
SolutionEntity
>
implements
SolutionService
{
@Autowired
IdWorkService
idWorkService
;
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
SolutionEntity
>
page
=
this
.
page
(
new
Query
<
SolutionEntity
>().
getPage
(
params
),
new
QueryWrapper
<
SolutionEntity
>().
eq
(
"is_publish"
,
1
)
);
return
new
PageUtils
(
page
);
}
@Override
public
void
updateSolutionById
(
SolutionEntity
solutionEntity
,
SysUserEntity
loginUser
)
{
baseMapper
.
updateById
(
solutionEntity
);
}
@Override
public
void
saveSolution
(
SolutionEntity
solutionEntity
,
SysUserEntity
loginUser
)
{
solutionEntity
.
setId
(
idWorkService
.
getSEQByKey
(
"id_seq"
));
baseMapper
.
insert
(
solutionEntity
);
}
}
src/main/java/io/office/modules/manage/service/impl/StandardMaterialServiceImpl.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.sitech.idworkstarter.IdWorkService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.Query
;
import
io.office.modules.manage.dao.StandardMaterialDao
;
import
io.office.modules.manage.entity.StandardMaterialEntity
;
import
io.office.modules.manage.form.StandardMaterialForm
;
import
io.office.modules.manage.service.StandardMaterialService
;
import
io.office.modules.manage.utils.DateUtils
;
import
io.office.modules.manage.utils.IdKeysConstant
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
@Service
(
"standardMaterialService"
)
public
class
StandardMaterialServiceImpl
extends
ServiceImpl
<
StandardMaterialDao
,
StandardMaterialEntity
>
implements
StandardMaterialService
{
@Autowired
IdWorkService
idWorkService
;
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
QueryWrapper
<
StandardMaterialEntity
>
standardMaterialEntityQueryWrapper
=
new
QueryWrapper
<>();
if
(
null
!=
params
.
get
(
"levels"
)
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"levels"
).
toString
()))
{
standardMaterialEntityQueryWrapper
.
eq
(
"levels"
,
params
.
get
(
"levels"
).
toString
());
}
else
{
standardMaterialEntityQueryWrapper
.
gt
(
"levels"
,
0
);
}
if
(
null
!=
params
.
get
(
"materialName"
)
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"materialName"
).
toString
()))
{
standardMaterialEntityQueryWrapper
.
like
(
"material_name"
,
params
.
get
(
"materialName"
).
toString
());
}
if
(
null
!=
params
.
get
(
"materialStatus"
)
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"materialStatus"
).
toString
()))
{
standardMaterialEntityQueryWrapper
.
eq
(
"material_status"
,
params
.
get
(
"materialStatus"
).
toString
());
}
standardMaterialEntityQueryWrapper
.
orderByDesc
(
"levels"
,
"id"
);
IPage
<
StandardMaterialEntity
>
page
=
this
.
page
(
new
Query
<
StandardMaterialEntity
>().
getPage
(
params
),
standardMaterialEntityQueryWrapper
);
return
new
PageUtils
(
page
);
}
@Override
public
void
updateStandardMaterialById
(
StandardMaterialEntity
standardMaterialEntity
,
SysUserEntity
loginUser
)
{
UpdateWrapper
<
StandardMaterialEntity
>
standardMaterialEntityUpdateWrapper
=
new
UpdateWrapper
<>();
standardMaterialEntityUpdateWrapper
.
eq
(
"id"
,
standardMaterialEntity
.
getId
());
if
(
standardMaterialEntity
.
isAudit
())
{
standardMaterialEntity
.
setCheckDate
(
DateUtils
.
formatDateToString
(
new
Date
(),
DateUtils
.
FORMAT1
));
standardMaterialEntity
.
setChecker
(
loginUser
.
getUsername
());
}
else
{
standardMaterialEntity
.
setUpdateDate
(
DateUtils
.
formatDateToString
(
new
Date
(),
DateUtils
.
FORMAT1
));
standardMaterialEntity
.
setUpdateUser
(
loginUser
.
getUsername
());
}
baseMapper
.
update
(
standardMaterialEntity
,
standardMaterialEntityUpdateWrapper
);
}
@Override
public
List
<
StandardMaterialEntity
>
getPageList
(
StandardMaterialForm
standardMaterialForm
)
{
Page
<
StandardMaterialEntity
>
page
=
new
Page
(
standardMaterialForm
.
getPage
(),
standardMaterialForm
.
getLimit
());
return
baseMapper
.
getPageList
(
standardMaterialForm
,
page
);
}
@Override
public
void
saveStandardMaterial
(
StandardMaterialEntity
standardMaterialEntity
,
SysUserEntity
loginUser
)
{
//
standardMaterialEntity
.
setId
(
idWorkService
.
getSEQByKey
(
IdKeysConstant
.
ID_SEQ_KEY
));
standardMaterialEntity
.
setAuthor
(
loginUser
.
getUsername
());
if
(
StringUtils
.
isBlank
(
standardMaterialEntity
.
getMaterialStatus
()))
{
standardMaterialEntity
.
setMaterialStatus
(
"0"
);
}
if
(
standardMaterialEntity
.
getLevels
()
==
null
)
{
standardMaterialEntity
.
setLevels
(
0
);
}
standardMaterialEntity
.
setCreateDate
(
DateUtils
.
formatDateToString
(
new
Date
(),
DateUtils
.
FORMAT1
));
baseMapper
.
insert
(
standardMaterialEntity
);
}
}
src/main/java/io/office/modules/manage/service/impl/VideoServiceImpl.java
0 → 100644
View file @
039552c0
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.sitech.idworkstarter.IdWorkService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.Query
;
import
io.office.modules.manage.dao.VideoDao
;
import
io.office.modules.manage.entity.VideoEntity
;
import
io.office.modules.manage.service.VideoService
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
@Service
(
"videoService"
)
public
class
VideoServiceImpl
extends
ServiceImpl
<
VideoDao
,
VideoEntity
>
implements
VideoService
{
@Autowired
IdWorkService
idWorkService
;
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
VideoEntity
>
page
=
this
.
page
(
new
Query
<
VideoEntity
>().
getPage
(
params
),
new
QueryWrapper
<
VideoEntity
>().
eq
(
"is_publish"
,
1
)
);
return
new
PageUtils
(
page
);
}
@Override
public
void
updateVideoById
(
VideoEntity
videoEntity
,
SysUserEntity
loginUser
)
{
baseMapper
.
updateById
(
videoEntity
);
}
@Override
public
void
saveVideo
(
VideoEntity
videoEntity
,
SysUserEntity
loginUser
)
{
videoEntity
.
setId
(
idWorkService
.
getSEQByKey
(
"id_seq"
));
baseMapper
.
insert
(
videoEntity
);
}
}
src/main/java/io/office/modules/manage/utils/ESSearchUtils.java
View file @
039552c0
...
...
@@ -2,6 +2,7 @@ package io.office.modules.manage.utils;
import
cn.hutool.json.JSONUtil
;
import
io.office.modules.manage.vo.response.DomesticCodeResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.http.HttpEntity
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.ResponseEntity
;
...
...
@@ -14,6 +15,7 @@ import org.springframework.web.client.RestTemplate;
* @author wudi
* @date 16:40 2021/11/29
*/
@Slf4j
public
class
ESSearchUtils
{
private
static
final
String
ES_URL
=
"http://192.168.100.104:9200/ancc_search/_search"
;
...
...
@@ -60,6 +62,7 @@ public class ESSearchUtils {
RestTemplate
restTemplate
=
new
RestTemplate
();
//创建请求头
//创建请求头
log
.
info
(
"查询语句:"
+
smsTemplateXml
);
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
set
(
"Content-Type"
,
"application/json; charset=utf-8"
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
smsTemplateXml
,
headers
);
...
...
@@ -113,7 +116,7 @@ public class ESSearchUtils {
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
set
(
"Content-Type"
,
"application/json; charset=utf-8"
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
smsTemplateXml
,
headers
);
log
.
info
(
"查询语句:"
+
smsTemplateXml
);
ResponseEntity
<
String
>
responseEntity
=
restTemplate
.
postForEntity
(
ES_URL
,
entity
,
String
.
class
);
if
(
responseEntity
.
getStatusCode
().
value
()
==
200
)
{
...
...
@@ -163,6 +166,7 @@ public class ESSearchUtils {
RestTemplate
restTemplate
=
new
RestTemplate
();
//创建请求头
//创建请求头
log
.
info
(
"查询语句:"
+
smsTemplateXml
);
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
set
(
"Content-Type"
,
"application/json; charset=utf-8"
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
smsTemplateXml
,
headers
);
...
...
src/main/java/io/office/modules/ueditor/com/baidu/ueditor/upload/BinaryUploader.java
View file @
039552c0
...
...
@@ -5,23 +5,17 @@ import io.office.modules.ueditor.com.baidu.ueditor.define.AppInfo;
import
io.office.modules.ueditor.com.baidu.ueditor.define.BaseState
;
import
io.office.modules.ueditor.com.baidu.ueditor.define.FileType
;
import
io.office.modules.ueditor.com.baidu.ueditor.define.State
;
import
org.apache.commons.fileupload.servlet.ServletFileUpload
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartHttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.fileupload.FileItemIterator
;
import
org.apache.commons.fileupload.FileItemStream
;
import
org.apache.commons.fileupload.FileUploadException
;
import
org.apache.commons.fileupload.disk.DiskFileItemFactory
;
import
org.apache.commons.fileupload.servlet.ServletFileUpload
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartHttpServletRequest
;
public
class
BinaryUploader
{
public
static
final
State
save
(
HttpServletRequest
request
,
...
...
@@ -95,6 +89,7 @@ public class BinaryUploader {
// } catch (FileUploadException e) {
// return new BaseState(false, AppInfo.PARSE_REQUEST_ERROR);
}
catch
(
IOException
e
)
{
}
return
new
BaseState
(
false
,
AppInfo
.
IO_ERROR
);
}
...
...
src/main/resources/mapper/manage/ApplicationCaseDao.xml
0 → 100644
View file @
039552c0
<?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.ApplicationCaseDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.ApplicationCaseEntity"
id=
"applicationCaseMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"title"
column=
"title"
/>
<result
property=
"releaseDate"
column=
"release_date"
/>
<result
property=
"checkDate"
column=
"check_date"
/>
<result
property=
"author"
column=
"author"
/>
<result
property=
"levels"
column=
"levels"
/>
<result
property=
"directpath"
column=
"directpath"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"hits"
column=
"hits"
/>
<result
property=
"checkUser"
column=
"check_user"
/>
<result
property=
"updateUser"
column=
"update_user"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
<result
property=
"showTime"
column=
"show_time"
/>
<result
property=
"status"
column=
"status"
/>
</resultMap>
</mapper>
src/main/resources/mapper/manage/SolutionDao.xml
0 → 100644
View file @
039552c0
<?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.SolutionDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.SolutionEntity"
id=
"solutionMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"title"
column=
"title"
/>
<result
property=
"releaseDate"
column=
"release_date"
/>
<result
property=
"checkDate"
column=
"check_date"
/>
<result
property=
"author"
column=
"author"
/>
<result
property=
"levels"
column=
"levels"
/>
<result
property=
"directpath"
column=
"directpath"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"hits"
column=
"hits"
/>
<result
property=
"checkUser"
column=
"check_user"
/>
<result
property=
"updateUser"
column=
"update_user"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
<result
property=
"showTime"
column=
"show_time"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"pic"
column=
"pic"
/>
</resultMap>
</mapper>
src/main/resources/mapper/manage/StandardMaterialDao.xml
0 → 100644
View file @
039552c0
<?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.StandardMaterialDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.StandardMaterialEntity"
id=
"standardMaterialMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"materialName"
column=
"material_name"
/>
<result
property=
"materialFileUrl"
column=
"material_file_url"
/>
<result
property=
"materialStatus"
column=
"material_status"
/>
<result
property=
"author"
column=
"author"
/>
<result
property=
"levels"
column=
"levels"
/>
<result
property=
"checker"
column=
"checker"
/>
<result
property=
"checkDate"
column=
"check_date"
/>
<result
property=
"createDate"
column=
"create_date"
/>
<result
property=
"updateUser"
column=
"update_user"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
</resultMap>
<select
id=
"getPageList"
parameterType=
"io.office.modules.manage.form.StandardMaterialForm"
resultMap=
"standardMaterialMap"
>
select id,material_name,material_file_url,material_status,author,levels,checker,check_date,create_date from pp_standard_material
where levels
>
0 and material_status = '1'
</select>
</mapper>
src/main/resources/mapper/manage/VideoDao.xml
0 → 100644
View file @
039552c0
<?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.VideoDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.VideoEntity"
id=
"videoMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"title"
column=
"title"
/>
<result
property=
"releaseDate"
column=
"release_date"
/>
<result
property=
"checkDate"
column=
"check_date"
/>
<result
property=
"author"
column=
"author"
/>
<result
property=
"levels"
column=
"levels"
/>
<result
property=
"directpath"
column=
"directpath"
/>
<result
property=
"filePath"
column=
"file_path"
/>
<result
property=
"hits"
column=
"hits"
/>
<result
property=
"checkUser"
column=
"check_user"
/>
<result
property=
"updateUser"
column=
"update_user"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
<result
property=
"showTime"
column=
"show_time"
/>
<result
property=
"status"
column=
"status"
/>
</resultMap>
</mapper>
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