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
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
13 deletions
+31
-13
DocController.java
...va/io/office/modules/manage/controller/DocController.java
+11
-7
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
+2
-3
SysConfigController.java
...io/office/modules/sys/controller/SysConfigController.java
+10
-0
SysConfigServiceImpl.java
...office/modules/sys/service/impl/SysConfigServiceImpl.java
+2
-0
FirmDao.xml
src/main/resources/mapper/manage/FirmDao.xml
+0
-0
No files found.
src/main/java/io/office/modules/manage/controller/DocController.java
View file @
853b03cd
package
io
.
office
.
modules
.
manage
.
controller
;
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.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.annotation.SysLog
;
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.app.annotation.Login
;
import
io.office.modules.manage.entity.DocEntity
;
import
io.office.modules.manage.entity.DocEntity
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.service.DocService
;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.controller.AbstractController
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
io.office.modules.manage.service.DocService
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
io.office.common.utils.PageUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.office.common.utils.R
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
java.util.Map
;
...
@@ -150,4 +153,5 @@ public class DocController extends AbstractController {
...
@@ -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 {
...
@@ -134,7 +134,7 @@ public class NewtopicController extends AbstractController {
newtopicEntity
.
setChecktime
(
date
);
newtopicEntity
.
setChecktime
(
date
);
newtopicEntity
.
setCheckflag
(
Integer
.
valueOf
(
params
.
getStatus
()));
newtopicEntity
.
setCheckflag
(
Integer
.
valueOf
(
params
.
getStatus
()));
QueryWrapper
<
NewtopicEntity
>
newtopicEntityQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
NewtopicEntity
>
newtopicEntityQueryWrapper
=
new
QueryWrapper
<>();
newtopicEntityQueryWrapper
.
eq
(
"classid"
,
newtopicEntity
.
getClassi
d
());
newtopicEntityQueryWrapper
.
eq
(
"classid"
,
params
.
getI
d
());
newtopicService
.
update
(
newtopicEntity
,
newtopicEntityQueryWrapper
);
newtopicService
.
update
(
newtopicEntity
,
newtopicEntityQueryWrapper
);
return
R
.
ok
(
"审核通过!"
);
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;
...
@@ -3,7 +3,6 @@ package io.office.modules.manage.controller;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
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.PageUtils
;
import
io.office.common.utils.R
;
import
io.office.common.utils.R
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.app.annotation.Login
;
...
@@ -72,7 +71,7 @@ public class TycpdmFirmController extends AbstractController {
...
@@ -72,7 +71,7 @@ public class TycpdmFirmController extends AbstractController {
@RequestMapping
(
"/api/test"
)
@RequestMapping
(
"/api/test"
)
@Login
@Login
public
void
testRed
(
HttpServletResponse
response
)
throws
Exception
{
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 {
...
@@ -54,4 +54,8 @@ public class NewsParams extends PageParams {
private
String
clanguage
;
private
String
clanguage
;
private
List
<
Integer
>
ids
;
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;
...
@@ -36,7 +36,6 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.UUID
;
import
java.util.regex.Pattern
;
@Slf4j
@Slf4j
@Service
(
"tycpdmFirmService"
)
@Service
(
"tycpdmFirmService"
)
...
@@ -602,7 +601,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
...
@@ -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
=
dept
+
"{regist_or_login_from_ancc}"
;
regist_or_login_from_ancc
=
MD5Util
.
md5Encrypt32Lower
(
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
;
return
url
;
}
}
...
@@ -647,7 +646,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
...
@@ -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
=
dept
+
"{regist_or_login_from_ancc}"
;
regist_or_login_from_ancc
=
MD5Util
.
md5Encrypt32Lower
(
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
;
return
url
;
}
}
...
...
src/main/java/io/office/modules/sys/controller/SysConfigController.java
View file @
853b03cd
...
@@ -26,6 +26,7 @@ import java.util.Map;
...
@@ -26,6 +26,7 @@ import java.util.Map;
*
*
* @author Mark sunlightcs@gmail.com
* @author Mark sunlightcs@gmail.com
*/
*/
@CrossOrigin
@RestController
@RestController
@RequestMapping
(
"/sys/config"
)
@RequestMapping
(
"/sys/config"
)
public
class
SysConfigController
extends
AbstractController
{
public
class
SysConfigController
extends
AbstractController
{
...
@@ -95,4 +96,13 @@ public class SysConfigController extends AbstractController {
...
@@ -95,4 +96,13 @@ public class SysConfigController extends AbstractController {
return
R
.
ok
();
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;
...
@@ -23,10 +23,12 @@ import org.apache.commons.lang.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.CrossOrigin
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Map
;
import
java.util.Map
;
@CrossOrigin
@Service
(
"sysConfigService"
)
@Service
(
"sysConfigService"
)
public
class
SysConfigServiceImpl
extends
ServiceImpl
<
SysConfigDao
,
SysConfigEntity
>
implements
SysConfigService
{
public
class
SysConfigServiceImpl
extends
ServiceImpl
<
SysConfigDao
,
SysConfigEntity
>
implements
SysConfigService
{
@Autowired
@Autowired
...
...
src/main/resources/mapper/manage/FirmDao.xml
View file @
853b03cd
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