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
5ab9d4b7
Commit
5ab9d4b7
authored
Jan 02, 2024
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理审核状态
parent
6c9c541a
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
52 additions
and
4 deletions
+52
-4
DevelopmentInfoController.java
...om/ruoyi/system/controller/DevelopmentInfoController.java
+5
-0
ParkInfoController.java
.../java/com/ruoyi/system/controller/ParkInfoController.java
+6
-0
DevelopmentInfo.java
...rc/main/java/com/ruoyi/system/domain/DevelopmentInfo.java
+13
-0
ParkInfo.java
...ystem/src/main/java/com/ruoyi/system/domain/ParkInfo.java
+13
-0
DevelopmentInfoMapper.xml
...esources/mapper/developmentInfo/DevelopmentInfoMapper.xml
+6
-0
ParkInfoMapper.xml
...tem/src/main/resources/mapper/parkinfo/ParkInfoMapper.xml
+6
-0
info.html
.../src/main/resources/templates/correcterror/info/info.html
+0
-1
info.html
...c/main/resources/templates/developmentInfo/info/info.html
+2
-2
info.html
...stem/src/main/resources/templates/parkInfo/info/info.html
+1
-1
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/controller/DevelopmentInfoController.java
View file @
5ab9d4b7
package
com
.
ruoyi
.
system
.
controller
;
package
com
.
ruoyi
.
system
.
controller
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
...
@@ -63,6 +64,10 @@ public class DevelopmentInfoController extends BaseController {
...
@@ -63,6 +64,10 @@ public class DevelopmentInfoController extends BaseController {
developmentInfo
.
setStatus
(
DevelopmentStatusEnum
.
DRAFT
.
getCode
());
developmentInfo
.
setStatus
(
DevelopmentStatusEnum
.
DRAFT
.
getCode
());
list
=
developmentInfoService
.
selectExcludeByStatus
(
developmentInfo
);
list
=
developmentInfoService
.
selectExcludeByStatus
(
developmentInfo
);
}
else
{
}
else
{
if
(
DevelopmentStatusEnum
.
REJECT
.
getCode
().
equals
(
developmentInfo
.
getStatus
())){
developmentInfo
.
setStatus
(
null
);
developmentInfo
.
setStatusList
(
Arrays
.
asList
(
DevelopmentStatusEnum
.
USELESS
.
getCode
(),
DevelopmentStatusEnum
.
REJECT
.
getCode
()));
}
list
=
developmentInfoService
.
selectDevelopmentInfoList
(
developmentInfo
);
list
=
developmentInfoService
.
selectDevelopmentInfoList
(
developmentInfo
);
}
}
return
getDataTable
(
list
);
return
getDataTable
(
list
);
...
...
ruoyi-system/src/main/java/com/ruoyi/system/controller/ParkInfoController.java
View file @
5ab9d4b7
...
@@ -9,6 +9,7 @@ import com.ruoyi.common.utils.StringUtils;
...
@@ -9,6 +9,7 @@ import com.ruoyi.common.utils.StringUtils;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.system.VO.ParkInfoAllVO
;
import
com.ruoyi.system.VO.ParkInfoAllVO
;
import
com.ruoyi.system.domain.ParkInfo
;
import
com.ruoyi.system.domain.ParkInfo
;
import
com.ruoyi.system.enums.DevelopmentStatusEnum
;
import
com.ruoyi.system.enums.ParkInfoStatusEnum
;
import
com.ruoyi.system.enums.ParkInfoStatusEnum
;
import
com.ruoyi.system.service.IParkInfoService
;
import
com.ruoyi.system.service.IParkInfoService
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
...
@@ -18,6 +19,7 @@ import org.springframework.ui.ModelMap;
...
@@ -18,6 +19,7 @@ import org.springframework.ui.ModelMap;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -61,6 +63,10 @@ public class ParkInfoController extends BaseController {
...
@@ -61,6 +63,10 @@ public class ParkInfoController extends BaseController {
parkInfo
.
setStatus
(
ParkInfoStatusEnum
.
DRAFT
.
getCode
());
parkInfo
.
setStatus
(
ParkInfoStatusEnum
.
DRAFT
.
getCode
());
list
=
parkInfoService
.
selectExcludeByStatus
(
parkInfo
);
list
=
parkInfoService
.
selectExcludeByStatus
(
parkInfo
);
}
else
{
}
else
{
if
(
ParkInfoStatusEnum
.
REJECT
.
getCode
().
equals
(
parkInfo
.
getStatus
())){
parkInfo
.
setStatus
(
null
);
parkInfo
.
setStatusList
(
Arrays
.
asList
(
ParkInfoStatusEnum
.
USELESS
.
getCode
(),
ParkInfoStatusEnum
.
REJECT
.
getCode
()));
}
list
=
parkInfoService
.
selectParkInfoList
(
parkInfo
);
list
=
parkInfoService
.
selectParkInfoList
(
parkInfo
);
}
}
return
getDataTable
(
list
);
return
getDataTable
(
list
);
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/DevelopmentInfo.java
View file @
5ab9d4b7
...
@@ -2,6 +2,8 @@ package com.ruoyi.system.domain;
...
@@ -2,6 +2,8 @@ package com.ruoyi.system.domain;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
@@ -445,6 +447,16 @@ public class DevelopmentInfo extends BaseEntity
...
@@ -445,6 +447,16 @@ public class DevelopmentInfo extends BaseEntity
@Excel
(
name
=
"排序"
)
@Excel
(
name
=
"排序"
)
private
Integer
sort
;
private
Integer
sort
;
private
List
<
Integer
>
statusList
;
public
List
<
Integer
>
getStatusList
()
{
return
statusList
;
}
public
void
setStatusList
(
List
<
Integer
>
statusList
)
{
this
.
statusList
=
statusList
;
}
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
@@ -1520,6 +1532,7 @@ public class DevelopmentInfo extends BaseEntity
...
@@ -1520,6 +1532,7 @@ public class DevelopmentInfo extends BaseEntity
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"sort"
,
getSort
())
.
append
(
"sort"
,
getSort
())
.
append
(
"statusList"
,
getStatusList
())
.
toString
();
.
toString
();
}
}
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/ParkInfo.java
View file @
5ab9d4b7
...
@@ -2,6 +2,8 @@ package com.ruoyi.system.domain;
...
@@ -2,6 +2,8 @@ package com.ruoyi.system.domain;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
@@ -384,6 +386,16 @@ public class ParkInfo extends BaseEntity
...
@@ -384,6 +386,16 @@ public class ParkInfo extends BaseEntity
@Excel
(
name
=
"排序字段(全局排序)"
)
@Excel
(
name
=
"排序字段(全局排序)"
)
private
Integer
sort
;
private
Integer
sort
;
private
List
<
Integer
>
statusList
;
public
List
<
Integer
>
getStatusList
()
{
return
statusList
;
}
public
void
setStatusList
(
List
<
Integer
>
statusList
)
{
this
.
statusList
=
statusList
;
}
/** 纬度(坐标系gcj02) */
/** 纬度(坐标系gcj02) */
@Excel
(
name
=
"排序字段(开发区内产业园排序)"
)
@Excel
(
name
=
"排序字段(开发区内产业园排序)"
)
private
Integer
sortDevelopment
;
private
Integer
sortDevelopment
;
...
@@ -1312,6 +1324,7 @@ public class ParkInfo extends BaseEntity
...
@@ -1312,6 +1324,7 @@ public class ParkInfo extends BaseEntity
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"sort"
,
getSort
())
.
append
(
"sort"
,
getSort
())
.
append
(
"sortDevelopment"
,
getSortDevelopment
())
.
append
(
"sortDevelopment"
,
getSortDevelopment
())
.
append
(
"statusList"
,
getStatusList
())
.
toString
();
.
toString
();
}
}
}
}
ruoyi-system/src/main/resources/mapper/developmentInfo/DevelopmentInfoMapper.xml
View file @
5ab9d4b7
...
@@ -261,6 +261,12 @@
...
@@ -261,6 +261,12 @@
<include
refid=
"selectDevelopmentInfoVo"
/>
<include
refid=
"selectDevelopmentInfoVo"
/>
<include
refid=
"where"
></include>
<include
refid=
"where"
></include>
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"statusList != null and statusList.size() > 0 "
>
AND `status` IN
<foreach
item=
"status"
collection=
"statusList"
open=
"("
separator=
","
close=
")"
>
#{status}
</foreach>
</if>
order by submit_time desc
order by submit_time desc
</select>
</select>
...
...
ruoyi-system/src/main/resources/mapper/parkinfo/ParkInfoMapper.xml
View file @
5ab9d4b7
...
@@ -227,6 +227,12 @@
...
@@ -227,6 +227,12 @@
<include
refid=
"selectParkInfoVo"
/>
<include
refid=
"selectParkInfoVo"
/>
<include
refid=
"where"
></include>
<include
refid=
"where"
></include>
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"statusList != null and statusList.size() > 0 "
>
AND `status` IN
<foreach
item=
"status"
collection=
"statusList"
open=
"("
separator=
","
close=
")"
>
#{status}
</foreach>
</if>
-- and status != 1
-- and status != 1
order by submit_time desc
order by submit_time desc
</select>
</select>
...
...
ruoyi-system/src/main/resources/templates/correcterror/info/info.html
View file @
5ab9d4b7
...
@@ -204,7 +204,6 @@
...
@@ -204,7 +204,6 @@
function onClickCell(field, value, row, $element){
function onClickCell(field, value, row, $element){
if( (field == "typeName" || field == "typeId") && row.typeId ){
if( (field == "typeName" || field == "typeId") && row.typeId ){
$.modal.openTab('
详情信息
','
/
parkInfo
/
info
/
detail
/
' + row.typeId );
$.modal.openTab('
详情信息
','
/
parkInfo
/
info
/
detail
/
' + row.typeId );
// alert("单击格name:" + field + " value:" + value+","+JSON.stringify(row) );
}
}
}
}
</script>
</script>
...
...
ruoyi-system/src/main/resources/templates/developmentInfo/info/info.html
View file @
5ab9d4b7
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<li>
<li>
<label>
审核状态:
</label>
<label>
审核状态:
</label>
<select
name=
"status"
th:with=
"type=${@dict.getType('lyy_
developmentinfo
_status')}"
>
<select
name=
"status"
th:with=
"type=${@dict.getType('lyy_
examine
_status')}"
>
<option
value=
""
>
所有
</option>
<option
value=
""
>
所有
</option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
th:value=
"${dict.dictValue}"
></option>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
<script
th:inline=
"javascript"
>
<script
th:inline=
"javascript"
>
var
editFlag
=
[[
$
{@
permission
.
hasPermi
(
'developmentInfo:info:edit'
)}]];
var
editFlag
=
[[
$
{@
permission
.
hasPermi
(
'developmentInfo:info:edit'
)}]];
var
removeFlag
=
[[
$
{@
permission
.
hasPermi
(
'developmentInfo:info:remove'
)}]];
var
removeFlag
=
[[
$
{@
permission
.
hasPermi
(
'developmentInfo:info:remove'
)}]];
var
datasExamineStatus
=
[[
$
{@
dict
.
getType
(
'lyy_
development
info_status'
)}]];
var
datasExamineStatus
=
[[
$
{@
dict
.
getType
(
'lyy_
park
info_status'
)}]];
var
prefix
=
ctx
+
"developmentInfo/info"
;
var
prefix
=
ctx
+
"developmentInfo/info"
;
$
(
function
()
{
$
(
function
()
{
...
...
ruoyi-system/src/main/resources/templates/parkInfo/info/info.html
View file @
5ab9d4b7
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</li>
</li>
<li>
<li>
<label>
审核状态:
</label>
<label>
审核状态:
</label>
<select
name=
"status"
th:with=
"type=${@dict.getType('lyy_
parkinfo
_status')}"
>
<select
name=
"status"
th:with=
"type=${@dict.getType('lyy_
examine
_status')}"
>
<option
value=
""
>
所有
</option>
<option
value=
""
>
所有
</option>
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
<option
th:each=
"dict : ${type}"
th:text=
"${dict.dictLabel}"
th:value=
"${dict.dictValue}"
></option>
th:value=
"${dict.dictValue}"
></option>
...
...
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