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
853b03cd
Commit
853b03cd
authored
Nov 14, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】政府采购
parent
83b5e092
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
30 deletions
+46
-30
DocController.java
...va/io/office/modules/manage/controller/DocController.java
+12
-8
NewtopicController.java
.../office/modules/manage/controller/NewtopicController.java
+1
-1
TycpdmFirmController.java
...ffice/modules/manage/controller/TycpdmFirmController.java
+1
-2
NewsParams.java
.../java/io/office/modules/manage/entity/dto/NewsParams.java
+4
-0
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+3
-5
SysConfigController.java
...io/office/modules/sys/controller/SysConfigController.java
+21
-11
SysConfigServiceImpl.java
...office/modules/sys/service/impl/SysConfigServiceImpl.java
+3
-1
FirmDao.xml
src/main/resources/mapper/manage/FirmDao.xml
+1
-2
No files found.
src/main/java/io/office/modules/manage/controller/DocController.java
View file @
853b03cd
package
io
.
office
.
modules
.
manage
.
controller
;
import
java.util.List
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.annotation.SysLog
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.manage.entity.DocEntity
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.service.DocService
;
import
io.office.modules.sys.controller.AbstractController
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.*
;
import
io.office.modules.manage.service.DocService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
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.List
;
import
java.util.Map
;
...
...
@@ -28,7 +31,7 @@ import io.office.common.utils.R;
* ${comments}
*
* @author wudi
* @email
* @email
* @date 2021-11-14 14:32:42
*/
@Slf4j
...
...
@@ -150,4 +153,5 @@ public class DocController extends AbstractController {
}
}
src/main/java/io/office/modules/manage/controller/NewtopicController.java
View file @
853b03cd
...
...
@@ -134,7 +134,7 @@ public class NewtopicController extends AbstractController {
newtopicEntity
.
setChecktime
(
date
);
newtopicEntity
.
setCheckflag
(
Integer
.
valueOf
(
params
.
getStatus
()));
QueryWrapper
<
NewtopicEntity
>
newtopicEntityQueryWrapper
=
new
QueryWrapper
<>();
newtopicEntityQueryWrapper
.
eq
(
"classid"
,
newtopicEntity
.
getClassi
d
());
newtopicEntityQueryWrapper
.
eq
(
"classid"
,
params
.
getI
d
());
newtopicService
.
update
(
newtopicEntity
,
newtopicEntityQueryWrapper
);
return
R
.
ok
(
"审核通过!"
);
}
...
...
src/main/java/io/office/modules/manage/controller/TycpdmFirmController.java
View file @
853b03cd
...
...
@@ -3,7 +3,6 @@ package io.office.modules.manage.controller;
import
cn.hutool.json.JSONUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.annotation.SysLog
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
io.office.modules.app.annotation.Login
;
...
...
@@ -72,7 +71,7 @@ public class TycpdmFirmController extends AbstractController {
@RequestMapping
(
"/api/test"
)
@Login
public
void
testRed
(
HttpServletResponse
response
)
throws
Exception
{
response
.
sendRedirect
(
"http://manage.gds.org.cn/Original/WWW/registerOrLoginFromAncc.aspx?uname=test_tru&pwd=88DA15B9F9F602F0D32D46808652B06DC6E939D1424CE39F69A2AC39743F7ED7591975685B543E1D®ist_or_login_from_ancc=d67626ce2c09cbb4c6867eb65c945b53&dept=-2"
);
response
.
sendRedirect
(
"http
s
://manage.gds.org.cn/Original/WWW/registerOrLoginFromAncc.aspx?uname=test_tru&pwd=88DA15B9F9F602F0D32D46808652B06DC6E939D1424CE39F69A2AC39743F7ED7591975685B543E1D®ist_or_login_from_ancc=d67626ce2c09cbb4c6867eb65c945b53&dept=-2"
);
}
/**
...
...
src/main/java/io/office/modules/manage/entity/dto/NewsParams.java
View file @
853b03cd
...
...
@@ -54,4 +54,8 @@ public class NewsParams extends PageParams {
private
String
clanguage
;
private
List
<
Integer
>
ids
;
@TableField
(
exist
=
false
)
private
Integer
id
;
}
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
853b03cd
...
...
@@ -36,7 +36,6 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.regex.Pattern
;
@Slf4j
@Service
(
"tycpdmFirmService"
)
...
...
@@ -602,7 +601,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
}
regist_or_login_from_ancc
=
dept
+
"{regist_or_login_from_ancc}"
;
regist_or_login_from_ancc
=
MD5Util
.
md5Encrypt32Lower
(
regist_or_login_from_ancc
);
String
url
=
"http://manage.gds.org.cn/Original/WWW/registerOrLoginFromAncc.aspx?uname="
+
username
+
"&pwd="
+
pass
+
"®ist_or_login_from_ancc="
+
regist_or_login_from_ancc
+
"&dept="
+
dept
;
String
url
=
"http
s
://manage.gds.org.cn/Original/WWW/registerOrLoginFromAncc.aspx?uname="
+
username
+
"&pwd="
+
pass
+
"®ist_or_login_from_ancc="
+
regist_or_login_from_ancc
+
"&dept="
+
dept
;
return
url
;
}
...
...
@@ -647,7 +646,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
}
regist_or_login_from_ancc
=
dept
+
"{regist_or_login_from_ancc}"
;
regist_or_login_from_ancc
=
MD5Util
.
md5Encrypt32Lower
(
regist_or_login_from_ancc
);
String
url
=
"http://manage.gds.org.cn/Original/WWW/registerOrLoginFromAncc.aspx?uname="
+
username
+
"&pwd="
+
pass
+
"®ist_or_login_from_ancc="
+
regist_or_login_from_ancc
+
"&dept="
+
dept
;
String
url
=
"http
s
://manage.gds.org.cn/Original/WWW/registerOrLoginFromAncc.aspx?uname="
+
username
+
"&pwd="
+
pass
+
"®ist_or_login_from_ancc="
+
regist_or_login_from_ancc
+
"&dept="
+
dept
;
return
url
;
}
...
...
@@ -748,4 +747,4 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
}
\ No newline at end of file
}
src/main/java/io/office/modules/sys/controller/SysConfigController.java
View file @
853b03cd
...
...
@@ -26,12 +26,13 @@ import java.util.Map;
*
* @author Mark sunlightcs@gmail.com
*/
@CrossOrigin
@RestController
@RequestMapping
(
"/sys/config"
)
public
class
SysConfigController
extends
AbstractController
{
@Autowired
private
SysConfigService
sysConfigService
;
/**
* 所有配置列表
*/
...
...
@@ -42,8 +43,8 @@ public class SysConfigController extends AbstractController {
return
R
.
ok
().
put
(
"page"
,
page
);
}
/**
* 配置信息
*/
...
...
@@ -51,10 +52,10 @@ public class SysConfigController extends AbstractController {
@RequiresPermissions
(
"sys:config:info"
)
public
R
info
(
@PathVariable
(
"id"
)
Long
id
){
SysConfigEntity
config
=
sysConfigService
.
getById
(
id
);
return
R
.
ok
().
put
(
"config"
,
config
);
}
/**
* 保存配置
*/
...
...
@@ -65,10 +66,10 @@ public class SysConfigController extends AbstractController {
ValidatorUtils
.
validateEntity
(
config
);
sysConfigService
.
saveConfig
(
config
);
return
R
.
ok
();
}
/**
* 修改配置
*/
...
...
@@ -77,12 +78,12 @@ public class SysConfigController extends AbstractController {
@RequiresPermissions
(
"sys:config:update"
)
public
R
update
(
@RequestBody
SysConfigEntity
config
){
ValidatorUtils
.
validateEntity
(
config
);
sysConfigService
.
update
(
config
);
return
R
.
ok
();
}
/**
* 删除配置
*/
...
...
@@ -91,8 +92,17 @@ public class SysConfigController extends AbstractController {
@RequiresPermissions
(
"sys:config:delete"
)
public
R
delete
(
@RequestBody
Long
[]
ids
){
sysConfigService
.
deleteBatch
(
ids
);
return
R
.
ok
();
}
@GetMapping
(
"/api/config"
)
public
R
config
(){
String
IS_BLACK_WHITE
=
sysConfigService
.
getConfigObject
(
"IS_BLACK_WHITE"
,
String
.
class
);
return
R
.
ok
().
put
(
"data"
,
IS_BLACK_WHITE
);
}
}
src/main/java/io/office/modules/sys/service/impl/SysConfigServiceImpl.java
View file @
853b03cd
...
...
@@ -23,10 +23,12 @@ import org.apache.commons.lang.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.CrossOrigin
;
import
java.util.Arrays
;
import
java.util.Map
;
@CrossOrigin
@Service
(
"sysConfigService"
)
public
class
SysConfigServiceImpl
extends
ServiceImpl
<
SysConfigDao
,
SysConfigEntity
>
implements
SysConfigService
{
@Autowired
...
...
@@ -87,7 +89,7 @@ public class SysConfigServiceImpl extends ServiceImpl<SysConfigDao, SysConfigEnt
return
config
==
null
?
null
:
config
.
getParamValue
();
}
@Override
public
<
T
>
T
getConfigObject
(
String
key
,
Class
<
T
>
clazz
)
{
String
value
=
getValue
(
key
);
...
...
src/main/resources/mapper/manage/FirmDao.xml
View file @
853b03cd
...
...
@@ -80,4 +80,4 @@
</select>
</mapper>
\ No newline at end of file
</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