Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
cfld-liyeyun-admin
Project
Project
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
cfld-backend
cfld-liyeyun-admin
Commits
9db64cc0
Commit
9db64cc0
authored
Nov 16, 2023
by
lixinglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detail.html
parent
e2168ae9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
101 additions
and
11 deletions
+101
-11
DevelopmentInfoDetailVO.java
...ain/java/com/ruoyi/system/VO/DevelopmentInfoDetailVO.java
+17
-0
DevelopmentInfoController.java
...om/ruoyi/system/controller/DevelopmentInfoController.java
+12
-5
IDevelopmentInfoService.java
...ava/com/ruoyi/system/service/IDevelopmentInfoService.java
+5
-2
DevelopmentInfoServiceImpl.java
...ruoyi/system/service/impl/DevelopmentInfoServiceImpl.java
+66
-4
detail.html
...main/resources/templates/developmentInfo/info/detail.html
+0
-0
info.html
...c/main/resources/templates/developmentInfo/info/info.html
+1
-0
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/VO/DevelopmentInfoDetailVO.java
0 → 100644
View file @
9db64cc0
package
com
.
ruoyi
.
system
.
VO
;
import
com.ruoyi.system.domain.*
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
DevelopmentInfoDetailVO
{
DevelopmentInfo
developmentInfo
;
List
<
DevelopmentTrafficInfo
>
trafficInfos
;
List
<
DevelopmentPrimaryEnterpriseInfo
>
developmentPrimaryEnterpriseInfos
;
List
<
DevelopmentPeripheryInfo
>
developmentPeripheryInfos
;
List
<
DevelopmentInvestmentDirectionInfo
>
developmentInvestmentDirectionInfos
;
List
<
DevelopmentIndustryPolicyInfo
>
developmentIndustryPolicyInfos
;
List
<
DevelopmentIndustryFundInfo
>
developmentIndustryFundInfos
;
}
ruoyi-system/src/main/java/com/ruoyi/system/controller/DevelopmentInfoController.java
View file @
9db64cc0
...
...
@@ -3,16 +3,13 @@ package com.ruoyi.system.controller;
import
java.util.ArrayList
;
import
java.util.List
;
import
com.ruoyi.system.VO.DevelopmentInfoDetailVO
;
import
com.ruoyi.system.enums.DevelopmentStatusEnum
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.*
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.DevelopmentInfo
;
...
...
@@ -21,6 +18,7 @@ import com.ruoyi.common.core.controller.BaseController;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
org.springframework.web.method.support.ModelAndViewContainer
;
/**
* 开发区信息Controller
...
...
@@ -116,6 +114,15 @@ public class DevelopmentInfoController extends BaseController {
return
toAjax
(
developmentInfoService
.
updateDevelopmentInfo
(
developmentInfo
));
}
@GetMapping
(
"/detail/{developmentInfoId}"
)
public
String
detail
(
@PathVariable
(
"developmentInfoId"
)
Long
developmentInfoId
,
ModelMap
mmap
)
{
DevelopmentInfoDetailVO
developmentInfoDetailVO
=
developmentInfoService
.
detail
(
developmentInfoId
);
mmap
.
put
(
"developmentInfoDetailVO"
,
developmentInfoDetailVO
);
return
prefix
+
"/detail"
;
}
/**
* 删除开发区信息
*/
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/IDevelopmentInfoService.java
View file @
9db64cc0
package
com
.
ruoyi
.
system
.
service
;
import
java.util.List
;
import
com.ruoyi.system.VO.DevelopmentInfoDetailVO
;
import
com.ruoyi.system.domain.DevelopmentInfo
;
/**
...
...
@@ -9,8 +11,7 @@ import com.ruoyi.system.domain.DevelopmentInfo;
* @author ruoyi
* @date 2023-11-10
*/
public
interface
IDevelopmentInfoService
{
public
interface
IDevelopmentInfoService
{
/**
* 查询开发区
*
...
...
@@ -60,4 +61,6 @@ public interface IDevelopmentInfoService
public
int
deleteDevelopmentInfoById
(
Long
id
);
List
<
DevelopmentInfo
>
selectExcludeByStatus
(
DevelopmentInfo
developmentInfo
);
DevelopmentInfoDetailVO
detail
(
Long
developmentInfoId
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DevelopmentInfoServiceImpl.java
View file @
9db64cc0
...
...
@@ -4,6 +4,7 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.system.VO.DevelopmentInfoDetailVO
;
import
com.ruoyi.system.domain.*
;
import
com.ruoyi.system.enums.*
;
import
com.ruoyi.system.mapper.*
;
...
...
@@ -90,10 +91,10 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService {
developmentInfos
=
developmentInfos
.
stream
().
filter
(
e
->
!
e
.
getStatus
().
equals
(
DevelopmentStatusEnum
.
DRAFT
.
getCode
())).
collect
(
Collectors
.
toList
());
for
(
DevelopmentInfo
info
:
developmentInfos
)
{
//自己的置为通过,其他的置为废弃
if
(
info
.
getId
().
equals
(
id
))
{
if
(
info
.
getId
().
equals
(
id
))
{
info
.
setStatus
(
DevelopmentStatusEnum
.
AUTHED
.
getCode
());
developmentInfoMapper
.
updateDevelopmentInfo
(
info
);
}
else
{
}
else
{
info
.
setStatus
(
DevelopmentStatusEnum
.
USELESS
.
getCode
());
info
.
setReason
(
DevelopmentStatusEnum
.
USELESS_REASON
.
getDescription
());
developmentInfoMapper
.
updateDevelopmentInfo
(
info
);
...
...
@@ -107,8 +108,7 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService {
collection
.
setCollectId
(
id
);
sysCollectionMapper
.
updateSysCollection
(
collection
);
}
}
else
{
}
else
{
developmentInfoMapper
.
updateDevelopmentInfo
(
developmentInfo
);
}
}
else
{
...
...
@@ -143,4 +143,66 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService {
public
List
<
DevelopmentInfo
>
selectExcludeByStatus
(
DevelopmentInfo
developmentInfo
)
{
return
developmentInfoMapper
.
selectExcludeByStatus
(
developmentInfo
);
}
@Autowired
DevelopmentTrafficInfoServiceImpl
developmentTrafficInfoService
;
@Autowired
DevelopmentPrimaryEnterpriseInfoServiceImpl
developmentPrimaryEnterpriseInfoService
;
@Autowired
DevelopmentPeripheryInfoServiceImpl
peripheryInfoService
;
@Autowired
DevelopmentInvestmentDirectionInfoServiceImpl
investmentDirectionInfoService
;
@Autowired
DevelopmentIndustryPolicyInfoServiceImpl
policyInfoService
;
@Autowired
DevelopmentIndustryFundInfoServiceImpl
fundInfoService
;
@Override
public
DevelopmentInfoDetailVO
detail
(
Long
developmentInfoId
)
{
DevelopmentInfo
developmentInfo
=
this
.
selectDevelopmentInfoById
(
developmentInfoId
);
DevelopmentInfoDetailVO
developmentInfoDetailVO
=
new
DevelopmentInfoDetailVO
();
developmentInfoDetailVO
.
setDevelopmentInfo
(
developmentInfo
);
DevelopmentTrafficInfo
developmentTrafficInfo
=
new
DevelopmentTrafficInfo
();
developmentTrafficInfo
.
setDevelopmentId
(
developmentInfoId
);
List
<
DevelopmentTrafficInfo
>
trafficInfos
=
developmentTrafficInfoService
.
selectDevelopmentTrafficInfoList
(
developmentTrafficInfo
);
developmentInfoDetailVO
.
setTrafficInfos
(
trafficInfos
);
DevelopmentPrimaryEnterpriseInfo
enterpriseInfo
=
new
DevelopmentPrimaryEnterpriseInfo
();
enterpriseInfo
.
setDevelopmentId
(
developmentInfoId
);
List
<
DevelopmentPrimaryEnterpriseInfo
>
developmentPrimaryEnterpriseInfos
=
developmentPrimaryEnterpriseInfoService
.
selectDevelopmentPrimaryEnterpriseInfoList
(
enterpriseInfo
);
developmentInfoDetailVO
.
setDevelopmentPrimaryEnterpriseInfos
(
developmentPrimaryEnterpriseInfos
);
DevelopmentPeripheryInfo
developmentPeripheryInfo
=
new
DevelopmentPeripheryInfo
();
developmentPeripheryInfo
.
setDevelopmentId
(
developmentInfoId
);
List
<
DevelopmentPeripheryInfo
>
developmentPeripheryInfos
=
peripheryInfoService
.
selectDevelopmentPeripheryInfoList
(
developmentPeripheryInfo
);
developmentInfoDetailVO
.
setDevelopmentPeripheryInfos
(
developmentPeripheryInfos
);
DevelopmentInvestmentDirectionInfo
developmentInvestmentDirectionInfo
=
new
DevelopmentInvestmentDirectionInfo
();
developmentInvestmentDirectionInfo
.
setDevelopmentId
(
developmentInfoId
);
List
<
DevelopmentInvestmentDirectionInfo
>
developmentInvestmentDirectionInfos
=
investmentDirectionInfoService
.
selectDevelopmentInvestmentDirectionInfoList
(
developmentInvestmentDirectionInfo
);
developmentInfoDetailVO
.
setDevelopmentInvestmentDirectionInfos
(
developmentInvestmentDirectionInfos
);
DevelopmentIndustryPolicyInfo
developmentIndustryPolicyInfo
=
new
DevelopmentIndustryPolicyInfo
();
developmentIndustryPolicyInfo
.
setDevelopmentId
(
developmentInfoId
);
List
<
DevelopmentIndustryPolicyInfo
>
developmentIndustryPolicyInfos
=
policyInfoService
.
selectDevelopmentIndustryPolicyInfoList
(
developmentIndustryPolicyInfo
);
developmentInfoDetailVO
.
setDevelopmentIndustryPolicyInfos
(
developmentIndustryPolicyInfos
);
DevelopmentIndustryFundInfo
developmentIndustryFundInfo
=
new
DevelopmentIndustryFundInfo
();
developmentIndustryFundInfo
.
setDevelopmentId
(
developmentInfoId
);
List
<
DevelopmentIndustryFundInfo
>
developmentIndustryFundInfos
=
fundInfoService
.
selectDevelopmentIndustryFundInfoList
(
developmentIndustryFundInfo
);
developmentInfoDetailVO
.
setDevelopmentIndustryFundInfos
(
developmentIndustryFundInfos
);
return
developmentInfoDetailVO
;
}
}
ruoyi-system/src/main/resources/templates/developmentInfo/info/detail.html
0 → 100644
View file @
9db64cc0
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/resources/templates/developmentInfo/info/info.html
View file @
9db64cc0
...
...
@@ -571,6 +571,7 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="$.modal.openTab(
\'
详情
\'
,
\'
/developmentInfo/info/detail/'
+
row
.
id
+
'
\'
)"><i class="fa fa-edit"></i>详情</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="$.operate.edit(
\'
'
+
row
.
id
+
'
\'
)"><i class="fa fa-edit"></i>编辑开发区信息</a> '
);
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="$.modal.openTab(
\'
区位交通信息
\'
,
\'
/developmentInfo/traffic?developmentId='
+
row
.
id
+
'
\'
)"><i class="fa fa-edit"></i>编辑区位交通信息</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="$.modal.openTab(
\'
重点企业信息
\'
,
\'
/developmentInfo/primaryEnterprise?developmentId='
+
row
.
id
+
'
\'
)"><i class="fa fa-edit"></i>编辑重点企业信息</a> <br>'
);
...
...
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