Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
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
java-sunac-report
sunac_report
Commits
f634afe2
Commit
f634afe2
authored
Jul 18, 2019
by
佰邦同创-郝泉明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20190718
parent
d89772c2
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
256 additions
and
24 deletions
+256
-24
workspace.xml
.idea/workspace.xml
+0
-0
pom.xml
pom.xml
+3
-0
CtBbtcBusTypeDao.java
src/main/java/com/ejweb/modules/report/dao/CtBbtcBusTypeDao.java
+12
-1
CtBbtcRegionDao.java
src/main/java/com/ejweb/modules/report/dao/CtBbtcRegionDao.java
+12
-1
CtBbtcBusCategory.java
src/main/java/com/ejweb/modules/report/entity/CtBbtcBusCategory.java
+13
-3
ReportEntity.java
src/main/java/com/ejweb/modules/report/entity/ReportEntity.java
+33
-1
CtBbtcBusTypeService.java
src/main/java/com/ejweb/modules/report/service/CtBbtcBusTypeService.java
+12
-1
CtBbtcRegionService.java
src/main/java/com/ejweb/modules/report/service/CtBbtcRegionService.java
+9
-1
CtBbtcBusCategoryController.java
src/main/java/com/ejweb/modules/report/web/CtBbtcBusCategoryController.java
+7
-0
CtBbtcRegionController.java
src/main/java/com/ejweb/modules/report/web/CtBbtcRegionController.java
+32
-0
CtBbtcBusCategoryDao.xml
src/main/resources/mappings/modules/report/CtBbtcBusCategoryDao.xml
+5
-3
CtBbtcBusTypeDao.xml
src/main/resources/mappings/modules/report/CtBbtcBusTypeDao.xml
+10
-1
CtBbtcRegionDao.xml
src/main/resources/mappings/modules/report/CtBbtcRegionDao.xml
+12
-1
ctBbtcBusCategoryForm.jsp
src/main/webapp/WEB-INF/views/modules/report/ctBbtcBusCategoryForm.jsp
+5
-5
ctBbtcBusCategoryList.jsp
src/main/webapp/WEB-INF/views/modules/report/ctBbtcBusCategoryList.jsp
+1
-1
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+90
-5
No files found.
.idea/workspace.xml
View file @
f634afe2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pom.xml
View file @
f634afe2
...
@@ -75,11 +75,13 @@
...
@@ -75,11 +75,13 @@
<groupId>
bbdtek
</groupId>
<groupId>
bbdtek
</groupId>
<artifactId>
bbdtek-geo-split
</artifactId>
<artifactId>
bbdtek-geo-split
</artifactId>
<version>
1.0.1
</version>
<version>
1.0.1
</version>
<systemPath>
${project.basedir}/src/main/webapp/WEB-INF/lib/bbdtek-geo-split-1.0.1.jar
</systemPath>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
bbdtek
</groupId>
<groupId>
bbdtek
</groupId>
<artifactId>
npl-tire-split
</artifactId>
<artifactId>
npl-tire-split
</artifactId>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
<systemPath>
${project.basedir}/src/main/webapp/WEB-INF/lib/npl-tire-split-1.0.0.jar
</systemPath>
</dependency>
</dependency>
<!-- geoip2 -->
<!-- geoip2 -->
<dependency>
<dependency>
...
@@ -608,6 +610,7 @@
...
@@ -608,6 +610,7 @@
<groupId>
com.kingdee.eas.cp.eip.sso.ltpa
</groupId>
<groupId>
com.kingdee.eas.cp.eip.sso.ltpa
</groupId>
<artifactId>
LTPATokenManager
</artifactId>
<artifactId>
LTPATokenManager
</artifactId>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
<systemPath>
${project.basedir}/src/main/webapp/WEB-INF/lib/LTPATokenManager-1.0.0.jar
</systemPath>
</dependency>
</dependency>
<!--JFreeChart-->
<!--JFreeChart-->
<dependency>
<dependency>
...
...
src/main/java/com/ejweb/modules/report/dao/CtBbtcBusTypeDao.java
View file @
f634afe2
...
@@ -6,6 +6,11 @@ package com.ejweb.modules.report.dao;
...
@@ -6,6 +6,11 @@ package com.ejweb.modules.report.dao;
import
com.ejweb.core.persistence.CrudDao
;
import
com.ejweb.core.persistence.CrudDao
;
import
com.ejweb.core.persistence.annotation.MyBatisDao
;
import
com.ejweb.core.persistence.annotation.MyBatisDao
;
import
com.ejweb.modules.report.entity.CtBbtcBusType
;
import
com.ejweb.modules.report.entity.CtBbtcBusType
;
import
com.ejweb.modules.report.entity.CtBbtcRegion
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* 业务类型DAO接口
* 业务类型DAO接口
* @author haoqm
* @author haoqm
...
@@ -13,5 +18,10 @@ import com.ejweb.modules.report.entity.CtBbtcBusType;
...
@@ -13,5 +18,10 @@ import com.ejweb.modules.report.entity.CtBbtcBusType;
*/
*/
@MyBatisDao
@MyBatisDao
public
interface
CtBbtcBusTypeDao
extends
CrudDao
<
CtBbtcBusType
>
{
public
interface
CtBbtcBusTypeDao
extends
CrudDao
<
CtBbtcBusType
>
{
/**
* 根据集团id获取区域值域
* @param groupId
* @return
*/
List
<
CtBbtcBusType
>
getByGroupId
(
@Param
(
"groupId"
)
String
groupId
);
}
}
\ No newline at end of file
src/main/java/com/ejweb/modules/report/dao/CtBbtcRegionDao.java
View file @
f634afe2
...
@@ -6,6 +6,9 @@ package com.ejweb.modules.report.dao;
...
@@ -6,6 +6,9 @@ package com.ejweb.modules.report.dao;
import
com.ejweb.core.persistence.CrudDao
;
import
com.ejweb.core.persistence.CrudDao
;
import
com.ejweb.core.persistence.annotation.MyBatisDao
;
import
com.ejweb.core.persistence.annotation.MyBatisDao
;
import
com.ejweb.modules.report.entity.CtBbtcRegion
;
import
com.ejweb.modules.report.entity.CtBbtcRegion
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* 区域基础资料DAO接口
* 区域基础资料DAO接口
...
@@ -14,5 +17,12 @@ import com.ejweb.modules.report.entity.CtBbtcRegion;
...
@@ -14,5 +17,12 @@ import com.ejweb.modules.report.entity.CtBbtcRegion;
*/
*/
@MyBatisDao
@MyBatisDao
public
interface
CtBbtcRegionDao
extends
CrudDao
<
CtBbtcRegion
>
{
public
interface
CtBbtcRegionDao
extends
CrudDao
<
CtBbtcRegion
>
{
/**
* 根据集团id获取区域值域
* @param groupId
* @return
*/
List
<
CtBbtcRegion
>
getByGroupId
(
@Param
(
"groupId"
)
String
groupId
);
}
}
\ No newline at end of file
src/main/java/com/ejweb/modules/report/entity/CtBbtcBusCategory.java
View file @
f634afe2
...
@@ -18,7 +18,8 @@ public class CtBbtcBusCategory extends DataEntity<CtBbtcBusCategory> {
...
@@ -18,7 +18,8 @@ public class CtBbtcBusCategory extends DataEntity<CtBbtcBusCategory> {
private
String
number
;
// 业务类别编码
private
String
number
;
// 业务类别编码
private
String
name
;
// 业务类别名称
private
String
name
;
// 业务类别名称
private
CtBbtcBusType
type
;
// 所属业务类型
private
CtBbtcBusType
type
;
// 所属业务类型
private
String
typeName
;
// 所属业务类型名称
public
CtBbtcBusCategory
()
{
public
CtBbtcBusCategory
()
{
super
();
super
();
}
}
...
@@ -44,8 +45,8 @@ public class CtBbtcBusCategory extends DataEntity<CtBbtcBusCategory> {
...
@@ -44,8 +45,8 @@ public class CtBbtcBusCategory extends DataEntity<CtBbtcBusCategory> {
public
void
setName
(
String
name
)
{
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
}
}
@Length
(
min
=
0
,
max
=
64
,
message
=
"所属业务类型长度必须介于 0 和 64 之间"
)
public
CtBbtcBusType
getType
()
{
public
CtBbtcBusType
getType
()
{
return
type
;
return
type
;
}
}
...
@@ -53,5 +54,13 @@ public class CtBbtcBusCategory extends DataEntity<CtBbtcBusCategory> {
...
@@ -53,5 +54,13 @@ public class CtBbtcBusCategory extends DataEntity<CtBbtcBusCategory> {
public
void
setType
(
CtBbtcBusType
type
)
{
public
void
setType
(
CtBbtcBusType
type
)
{
this
.
type
=
type
;
this
.
type
=
type
;
}
}
public
String
getTypeName
()
{
return
typeName
;
}
public
void
setTypeName
(
String
typeName
)
{
this
.
typeName
=
typeName
;
}
}
}
\ No newline at end of file
src/main/java/com/ejweb/modules/report/entity/ReportEntity.java
View file @
f634afe2
...
@@ -63,7 +63,10 @@ public class ReportEntity extends DataEntity<ReportEntity> {
...
@@ -63,7 +63,10 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private
String
qq
;
//qq
private
String
qq
;
//qq
private
String
weixin
;
//微信号
private
String
weixin
;
//微信号
private
String
ifClue
;
//联系人是否可见
private
String
ifClue
;
//联系人是否可见
private
String
supplementGroup
;
//被举报集团
private
String
supplementCategory
;
//业务类别
private
CtBbtcRegion
supplementAreaNew
;
//被举报区域
private
CtBbtcBusType
supplementTypeNew
;
//业务类型
public
String
getFlage
()
{
public
String
getFlage
()
{
return
flage
;
return
flage
;
...
@@ -517,4 +520,33 @@ public class ReportEntity extends DataEntity<ReportEntity> {
...
@@ -517,4 +520,33 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this
.
user
=
user
;
this
.
user
=
user
;
}
}
public
String
getSupplementGroup
()
{
return
supplementGroup
;
}
public
void
setSupplementGroup
(
String
supplementGroup
)
{
this
.
supplementGroup
=
supplementGroup
;
}
public
String
getSupplementCategory
()
{
return
supplementCategory
;
}
public
void
setSupplementCategory
(
String
supplementCategory
)
{
this
.
supplementCategory
=
supplementCategory
;
}
public
CtBbtcRegion
getSupplementAreaNew
()
{
return
supplementAreaNew
;
}
public
void
setSupplementAreaNew
(
CtBbtcRegion
supplementAreaNew
)
{
this
.
supplementAreaNew
=
supplementAreaNew
;
}
public
CtBbtcBusType
getSupplementTypeNew
()
{
return
supplementTypeNew
;
}
public
void
setSupplementTypeNew
(
CtBbtcBusType
supplementTypeNew
)
{
this
.
supplementTypeNew
=
supplementTypeNew
;
}
}
}
src/main/java/com/ejweb/modules/report/service/CtBbtcBusTypeService.java
View file @
f634afe2
...
@@ -5,6 +5,9 @@ package com.ejweb.modules.report.service;
...
@@ -5,6 +5,9 @@ package com.ejweb.modules.report.service;
import
java.util.List
;
import
java.util.List
;
import
com.ejweb.modules.report.dao.CtBbtcRegionDao
;
import
com.ejweb.modules.report.entity.CtBbtcRegion
;
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
com.ejweb.core.persistence.Page
;
import
com.ejweb.core.persistence.Page
;
...
@@ -22,6 +25,9 @@ import com.ejweb.modules.report.dao.CtBbtcBusTypeDao;
...
@@ -22,6 +25,9 @@ import com.ejweb.modules.report.dao.CtBbtcBusTypeDao;
@Transactional
(
readOnly
=
true
)
@Transactional
(
readOnly
=
true
)
public
class
CtBbtcBusTypeService
extends
CrudService
<
CtBbtcBusTypeDao
,
CtBbtcBusType
>
{
public
class
CtBbtcBusTypeService
extends
CrudService
<
CtBbtcBusTypeDao
,
CtBbtcBusType
>
{
@Autowired
private
CtBbtcBusTypeDao
ctBbtcBusTypeDao
;
public
CtBbtcBusType
get
(
String
id
)
{
public
CtBbtcBusType
get
(
String
id
)
{
return
super
.
get
(
id
);
return
super
.
get
(
id
);
}
}
...
@@ -43,5 +49,9 @@ public class CtBbtcBusTypeService extends CrudService<CtBbtcBusTypeDao, CtBbtcBu
...
@@ -43,5 +49,9 @@ public class CtBbtcBusTypeService extends CrudService<CtBbtcBusTypeDao, CtBbtcBu
public
void
delete
(
CtBbtcBusType
ctBbtcBusType
)
{
public
void
delete
(
CtBbtcBusType
ctBbtcBusType
)
{
super
.
delete
(
ctBbtcBusType
);
super
.
delete
(
ctBbtcBusType
);
}
}
public
List
<
CtBbtcBusType
>
getByGroupId
(
String
groupId
){
return
this
.
ctBbtcBusTypeDao
.
getByGroupId
(
groupId
);
}
}
}
\ No newline at end of file
src/main/java/com/ejweb/modules/report/service/CtBbtcRegionService.java
View file @
f634afe2
...
@@ -5,6 +5,7 @@ package com.ejweb.modules.report.service;
...
@@ -5,6 +5,7 @@ package com.ejweb.modules.report.service;
import
java.util.List
;
import
java.util.List
;
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
com.ejweb.core.persistence.Page
;
import
com.ejweb.core.persistence.Page
;
...
@@ -21,6 +22,9 @@ import com.ejweb.modules.report.dao.CtBbtcRegionDao;
...
@@ -21,6 +22,9 @@ import com.ejweb.modules.report.dao.CtBbtcRegionDao;
@Service
@Service
@Transactional
(
readOnly
=
true
)
@Transactional
(
readOnly
=
true
)
public
class
CtBbtcRegionService
extends
CrudService
<
CtBbtcRegionDao
,
CtBbtcRegion
>
{
public
class
CtBbtcRegionService
extends
CrudService
<
CtBbtcRegionDao
,
CtBbtcRegion
>
{
@Autowired
private
CtBbtcRegionDao
ctBbtcRegionDao
;
public
CtBbtcRegion
get
(
String
id
)
{
public
CtBbtcRegion
get
(
String
id
)
{
return
super
.
get
(
id
);
return
super
.
get
(
id
);
...
@@ -33,7 +37,11 @@ public class CtBbtcRegionService extends CrudService<CtBbtcRegionDao, CtBbtcRegi
...
@@ -33,7 +37,11 @@ public class CtBbtcRegionService extends CrudService<CtBbtcRegionDao, CtBbtcRegi
public
Page
<
CtBbtcRegion
>
findPage
(
Page
<
CtBbtcRegion
>
page
,
CtBbtcRegion
ctBbtcRegion
)
{
public
Page
<
CtBbtcRegion
>
findPage
(
Page
<
CtBbtcRegion
>
page
,
CtBbtcRegion
ctBbtcRegion
)
{
return
super
.
findPage
(
page
,
ctBbtcRegion
);
return
super
.
findPage
(
page
,
ctBbtcRegion
);
}
}
public
List
<
CtBbtcRegion
>
getByGroupId
(
String
groupId
){
return
this
.
ctBbtcRegionDao
.
getByGroupId
(
groupId
);
}
@Transactional
(
readOnly
=
false
)
@Transactional
(
readOnly
=
false
)
public
void
save
(
CtBbtcRegion
ctBbtcRegion
)
{
public
void
save
(
CtBbtcRegion
ctBbtcRegion
)
{
super
.
save
(
ctBbtcRegion
);
super
.
save
(
ctBbtcRegion
);
...
...
src/main/java/com/ejweb/modules/report/web/CtBbtcBusCategoryController.java
View file @
f634afe2
...
@@ -8,7 +8,9 @@ import com.ejweb.core.persistence.Page;
...
@@ -8,7 +8,9 @@ import com.ejweb.core.persistence.Page;
import
com.ejweb.core.utils.StringUtils
;
import
com.ejweb.core.utils.StringUtils
;
import
com.ejweb.modules.report.entity.CtBbtcBusCategory
;
import
com.ejweb.modules.report.entity.CtBbtcBusCategory
;
import
com.ejweb.modules.report.entity.CtBbtcBusType
;
import
com.ejweb.modules.report.service.CtBbtcBusCategoryService
;
import
com.ejweb.modules.report.service.CtBbtcBusCategoryService
;
import
com.ejweb.modules.report.service.CtBbtcBusTypeService
;
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.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -21,6 +23,7 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
...
@@ -21,6 +23,7 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
/**
* 业务类别Controller
* 业务类别Controller
...
@@ -37,6 +40,8 @@ public class CtBbtcBusCategoryController extends BaseController {
...
@@ -37,6 +40,8 @@ public class CtBbtcBusCategoryController extends BaseController {
protected
String
adminPath
;
protected
String
adminPath
;
@Autowired
@Autowired
private
CtBbtcBusCategoryService
ctBbtcBusCategoryService
;
private
CtBbtcBusCategoryService
ctBbtcBusCategoryService
;
@Autowired
private
CtBbtcBusTypeService
ctBbtcBusTypeService
;
@ModelAttribute
@ModelAttribute
public
CtBbtcBusCategory
get
(
@RequestParam
(
required
=
false
)
String
id
)
{
public
CtBbtcBusCategory
get
(
@RequestParam
(
required
=
false
)
String
id
)
{
...
@@ -61,6 +66,8 @@ public class CtBbtcBusCategoryController extends BaseController {
...
@@ -61,6 +66,8 @@ public class CtBbtcBusCategoryController extends BaseController {
@RequiresPermissions
(
"report:ctBbtcBusCategory:view"
)
@RequiresPermissions
(
"report:ctBbtcBusCategory:view"
)
@RequestMapping
(
value
=
"form"
)
@RequestMapping
(
value
=
"form"
)
public
String
form
(
CtBbtcBusCategory
ctBbtcBusCategory
,
Model
model
)
{
public
String
form
(
CtBbtcBusCategory
ctBbtcBusCategory
,
Model
model
)
{
List
<
CtBbtcBusType
>
ctBbtcBusTypeList
=
ctBbtcBusTypeService
.
findList
(
null
);
model
.
addAttribute
(
"ctBbtcBusTypeList"
,
ctBbtcBusTypeList
);
model
.
addAttribute
(
"ctBbtcBusCategory"
,
ctBbtcBusCategory
);
model
.
addAttribute
(
"ctBbtcBusCategory"
,
ctBbtcBusCategory
);
return
"modules/report/ctBbtcBusCategoryForm"
;
return
"modules/report/ctBbtcBusCategoryForm"
;
}
}
...
...
src/main/java/com/ejweb/modules/report/web/CtBbtcRegionController.java
View file @
f634afe2
...
@@ -3,11 +3,14 @@
...
@@ -3,11 +3,14 @@
*/
*/
package
com
.
ejweb
.
modules
.
report
.
web
;
package
com
.
ejweb
.
modules
.
report
.
web
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ejweb.core.base.BaseController
;
import
com.ejweb.core.base.BaseController
;
import
com.ejweb.core.persistence.Page
;
import
com.ejweb.core.persistence.Page
;
import
com.ejweb.core.utils.StringUtils
;
import
com.ejweb.core.utils.StringUtils
;
import
com.ejweb.modules.report.entity.CtBbtcBusType
;
import
com.ejweb.modules.report.entity.CtBbtcRegion
;
import
com.ejweb.modules.report.entity.CtBbtcRegion
;
import
com.ejweb.modules.report.service.CtBbtcBusTypeService
;
import
com.ejweb.modules.report.service.CtBbtcRegionService
;
import
com.ejweb.modules.report.service.CtBbtcRegionService
;
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
;
...
@@ -21,6 +24,8 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
...
@@ -21,6 +24,8 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.PrintWriter
;
import
java.util.List
;
/**
/**
* 区域基础资料Controller
* 区域基础资料Controller
...
@@ -37,6 +42,8 @@ public class CtBbtcRegionController extends BaseController {
...
@@ -37,6 +42,8 @@ public class CtBbtcRegionController extends BaseController {
protected
String
adminPath
;
protected
String
adminPath
;
@Autowired
@Autowired
private
CtBbtcRegionService
ctBbtcRegionService
;
private
CtBbtcRegionService
ctBbtcRegionService
;
@Autowired
private
CtBbtcBusTypeService
ctBbtcBusTypeService
;
@ModelAttribute
@ModelAttribute
public
CtBbtcRegion
get
(
@RequestParam
(
required
=
false
)
String
id
)
{
public
CtBbtcRegion
get
(
@RequestParam
(
required
=
false
)
String
id
)
{
...
@@ -84,4 +91,28 @@ public class CtBbtcRegionController extends BaseController {
...
@@ -84,4 +91,28 @@ public class CtBbtcRegionController extends BaseController {
return
"redirect:"
+
adminPath
+
"/report/ctBbtcRegion/?repage"
;
return
"redirect:"
+
adminPath
+
"/report/ctBbtcRegion/?repage"
;
}
}
@RequestMapping
(
value
=
"getRegionList"
)
public
void
getRegionList
(
String
groupId
,
RedirectAttributes
redirectAttributes
,
HttpServletResponse
response
){
if
(
groupId
!=
null
&&
!
""
.
equals
(
groupId
)){
JSONObject
res
=
new
JSONObject
();
List
<
CtBbtcRegion
>
ctBbtcRegionList
=
ctBbtcRegionService
.
getByGroupId
(
groupId
);
List
<
CtBbtcBusType
>
ctBbtcBusTypeList
=
ctBbtcBusTypeService
.
getByGroupId
(
groupId
);
res
.
put
(
"ctBbtcRegionList"
,
ctBbtcRegionList
);
res
.
put
(
"ctBbtcBusTypeList"
,
ctBbtcBusTypeList
);
String
jsonStr
=
res
.
toJSONString
();
try
{
PrintWriter
out
=
response
.
getWriter
();
out
.
print
(
jsonStr
);
out
.
close
();
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
}
}
}
}
\ No newline at end of file
src/main/resources/mappings/modules/report/CtBbtcBusCategoryDao.xml
View file @
f634afe2
...
@@ -6,10 +6,12 @@
...
@@ -6,10 +6,12 @@
a.id AS "id",
a.id AS "id",
a.number AS "number",
a.number AS "number",
a.name AS "name",
a.name AS "name",
a.type AS "type"
a.type AS "type.id",
b.name AS "typeName"
</sql>
</sql>
<sql
id=
"ctBbtcBusCategoryJoins"
>
<sql
id=
"ctBbtcBusCategoryJoins"
>
LEFT JOIN ct_bbtc_bus_type b on b.id = a.type
</sql>
</sql>
<select
id=
"get"
resultType=
"CtBbtcBusCategory"
>
<select
id=
"get"
resultType=
"CtBbtcBusCategory"
>
...
@@ -70,7 +72,7 @@
...
@@ -70,7 +72,7 @@
#{id},
#{id},
#{number},
#{number},
#{name},
#{name},
#{type}
#{type
.id
}
)
)
</insert>
</insert>
...
@@ -78,7 +80,7 @@
...
@@ -78,7 +80,7 @@
UPDATE ct_bbtc_bus_category SET
UPDATE ct_bbtc_bus_category SET
number = #{number},
number = #{number},
name = #{name},
name = #{name},
type = #{type}
type = #{type
.id
}
WHERE id = #{id}
WHERE id = #{id}
</update>
</update>
...
...
src/main/resources/mappings/modules/report/CtBbtcBusTypeDao.xml
View file @
f634afe2
...
@@ -44,7 +44,16 @@
...
@@ -44,7 +44,16 @@
</otherwise>
</otherwise>
</choose>
</choose>
</select>
</select>
<select
id=
"getByGroupId"
resultType=
"CtBbtcBusType"
>
SELECT
<include
refid=
"ctBbtcBusTypeColumns"
/>
FROM ct_bbtc_bus_type a
<include
refid=
"ctBbtcBusTypeJoins"
/>
WHERE a.supplement_group = #{groupId}
</select>
<select
id=
"findAllList"
resultType=
"CtBbtcBusType"
>
<select
id=
"findAllList"
resultType=
"CtBbtcBusType"
>
SELECT
SELECT
<include
refid=
"ctBbtcBusTypeColumns"
/>
<include
refid=
"ctBbtcBusTypeColumns"
/>
...
...
src/main/resources/mappings/modules/report/CtBbtcRegionDao.xml
View file @
f634afe2
...
@@ -21,7 +21,16 @@
...
@@ -21,7 +21,16 @@
<include
refid=
"ctBbtcRegionJoins"
/>
<include
refid=
"ctBbtcRegionJoins"
/>
WHERE a.id = #{id}
WHERE a.id = #{id}
</select>
</select>
<select
id=
"getByGroupId"
resultType=
"CtBbtcRegion"
>
SELECT
<include
refid=
"ctBbtcRegionColumns"
/>
FROM ct_bbtc_region a
<include
refid=
"ctBbtcRegionJoins"
/>
WHERE a.supplement_group = #{groupId}
</select>
<select
id=
"findList"
resultType=
"CtBbtcRegion"
>
<select
id=
"findList"
resultType=
"CtBbtcRegion"
>
SELECT
SELECT
<include
refid=
"ctBbtcRegionColumns"
/>
<include
refid=
"ctBbtcRegionColumns"
/>
...
@@ -44,6 +53,8 @@
...
@@ -44,6 +53,8 @@
</otherwise>
</otherwise>
</choose>
</choose>
</select>
</select>
<select
id=
"findAllList"
resultType=
"CtBbtcRegion"
>
<select
id=
"findAllList"
resultType=
"CtBbtcRegion"
>
SELECT
SELECT
...
...
src/main/webapp/WEB-INF/views/modules/report/ctBbtcBusCategoryForm.jsp
View file @
f634afe2
...
@@ -36,23 +36,23 @@
...
@@ -36,23 +36,23 @@
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
业务类别编码:
</label>
<label
class=
"control-label"
>
业务类别编码:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:input
path=
"number"
htmlEscape=
"false"
maxlength=
"64"
class=
"input-xlarge "
/>
<form:input
path=
"number"
htmlEscape=
"false"
maxlength=
"64"
class=
"input-xlarge
required
"
/>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
业务类别名称:
</label>
<label
class=
"control-label"
>
业务类别名称:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:input
path=
"name"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge "
/>
<form:input
path=
"name"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge
required
"
/>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
所属业务类型:
</label>
<label
class=
"control-label"
>
所属业务类型:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:select
onchange=
"resetPageNo();"
path=
"type
"
class=
"input-small
"
>
<form:select
onchange=
"resetPageNo();"
path=
"type
.id"
class=
"input-xlarge required
"
>
<form:option
value=
"
"
>
请选择
</form:option>
<form:option
value=
""
>
请选择
</form:option>
<form:options
items=
"${ctBbtcBusType}"
itemLabel=
"name"
itemValue=
"id"
<form:options
items=
"${ctBbtcBusType
List
}"
itemLabel=
"name"
itemValue=
"id"
htmlEscape=
"false"
/></form:select>
htmlEscape=
"false"
/></form:select>
<
%
--
<
form:input
path=
"type"
htmlEscape=
"false"
maxlength=
"64"
class=
"input-xlarge "
/>
--%>
<
%
--
<
form:input
path=
"type"
htmlEscape=
"false"
maxlength=
"64"
class=
"input-xlarge "
/>
--%>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
...
...
src/main/webapp/WEB-INF/views/modules/report/ctBbtcBusCategoryList.jsp
View file @
f634afe2
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
${ctBbtcBusCategory.name}
${ctBbtcBusCategory.name}
</td>
</td>
<td>
<td>
${ctBbtcBusCategory.type}
${ctBbtcBusCategory.type
Name
}
</td>
</td>
<shiro:hasPermission
name=
"report:ctBbtcBusCategory:edit"
><td>
<shiro:hasPermission
name=
"report:ctBbtcBusCategory:edit"
><td>
<a
href=
"${ctx}/report/ctBbtcBusCategory/form?id=${ctBbtcBusCategory.id}"
>
修改
</a>
<a
href=
"${ctx}/report/ctBbtcBusCategory/form?id=${ctBbtcBusCategory.id}"
>
修改
</a>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
f634afe2
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
<meta
name=
"decorator"
content=
"default"
/>
<meta
name=
"decorator"
content=
"default"
/>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
window
.
onload
=
function
()
{
window
.
onload
=
function
()
{
var
ifClue
=
"${report.ifClue}"
;
var
ifClue
=
"${report.ifClue}"
;
if
(
ifClue
==
'1'
)
{
if
(
ifClue
==
'1'
)
{
$
(
"#ifClue"
).
prop
(
"checked"
,
true
);
$
(
"#ifClue"
).
prop
(
"checked"
,
true
);
...
@@ -31,7 +30,9 @@
...
@@ -31,7 +30,9 @@
}
}
}
}
var
submitCount
=
0
;
var
submitCount
=
0
;
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
// ctBbtcRegionList = [];
$
(
"#inputForm"
).
validate
({
$
(
"#inputForm"
).
validate
({
submitHandler
:
function
(
form
)
{
submitHandler
:
function
(
form
)
{
messages
:
{
messages
:
{
...
@@ -41,8 +42,12 @@
...
@@ -41,8 +42,12 @@
}
}
if
(
$
(
"#supplementType"
).
val
()
==
" "
)
{
if
(
$
(
"#supplementType"
).
val
()
==
" "
)
{
top
.
$
.
jBox
.
tip
(
'请选择业务类型'
,
'warning'
);
top
.
$
.
jBox
.
tip
(
'请选择业务类型'
,
'warning'
);
}
else
if
(
$
(
"#supplementArea"
).
val
()
==
" "
)
{
}
else
if
(
$
(
"#supplementGroup"
).
val
()
==
" "
)
{
top
.
$
.
jBox
.
tip
(
'请选择被举报集团'
,
'warning'
);
}
else
if
(
$
(
"#supplementArea"
).
val
()
==
" "
)
{
top
.
$
.
jBox
.
tip
(
'请选择被举报区域'
,
'warning'
);
top
.
$
.
jBox
.
tip
(
'请选择被举报区域'
,
'warning'
);
}
else
if
(
$
(
"#supplementTypeNew"
).
val
()
==
" "
)
{
top
.
$
.
jBox
.
tip
(
'请选择业务类型'
,
'warning'
);
}
else
{
}
else
{
submitCount
+=
1
;
submitCount
+=
1
;
if
(
submitCount
==
1
)
{
if
(
submitCount
==
1
)
{
...
@@ -441,6 +446,52 @@
...
@@ -441,6 +446,52 @@
var
dealPersonName
=
$
(
"#dealPerson"
).
val
();
var
dealPersonName
=
$
(
"#dealPerson"
).
val
();
$
(
"#dealPersonName"
).
val
(
dealPersonName
);
$
(
"#dealPersonName"
).
val
(
dealPersonName
);
}
}
function
getRegion
(
ts_describe
){
console
.
log
(
ts_describe
);
if
(
ts_describe
!=
null
&&
ts_describe
!=
''
){
$
.
ajax
({
type
:
"POST"
,
url
:
"${ctx}/report/ctBbtcRegion/getRegionList?groupId="
+
ts_describe
,
dataType
:
"json"
,
success
:
function
(
returnedData
)
{
console
.
log
(
returnedData
);
var
data1
=
returnedData
.
ctBbtcRegionList
;
var
data2
=
returnedData
.
ctBbtcBusTypeList
;
// console.log(data1[0].name);
// console.log(data2[0].name);
if
(
data1
!=
''
)
{
console
.
log
(
data1
[
0
].
name
);
var
selectNode
=
$
(
"#supplementArea"
);
selectNode
.
empty
();
//每次需要将上一次的数据进行清空
var
slsb
=
document
.
getElementById
(
"supplementArea"
);
for
(
var
i
=
0
;
i
<
data1
.
length
;
i
++
){
console
.
log
(
data1
[
i
].
name
);
slsb
.
options
[
i
]
=
new
Option
(
data1
[
i
].
name
,
data1
[
i
].
id
);
}
}
if
(
data2
!=
''
)
{
console
.
log
(
data2
[
0
].
name
);
var
selectNode
=
$
(
"#supplementType"
);
selectNode
.
empty
();
//每次需要将上一次的数据进行清空
var
slsb
=
document
.
getElementById
(
"supplementType"
);
for
(
var
i
=
0
;
i
<
data2
.
length
;
i
++
){
slsb
.
options
[
i
]
=
new
Option
(
data2
[
i
].
name
,
data2
[
i
].
id
);
}
}
},
error
:
function
(
data
){
alert
(
系统错误
);
}
});
}
else
{
top
.
$
.
jBox
.
tip
(
'请选择被举报集团'
,
'warning'
);
}
}
</script>
</script>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.title
{
.title
{
...
@@ -618,7 +669,7 @@
...
@@ -618,7 +669,7 @@
</div>
</div>
</div>
</div>
<span
class=
"title"
>
举报信息补充
</span>
<span
class=
"title"
>
举报信息补充
</span>
<div
class=
"control-group"
>
<
%
--
<
div
class=
"control-group"
>
<label
class=
"control-label"
>
业务类型:
</label>
<label
class=
"control-label"
>
业务类型:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<span
class=
"supplementType"
>
<span
class=
"supplementType"
>
...
@@ -626,9 +677,9 @@
...
@@ -626,9 +677,9 @@
itemLabel=
"label"
itemValue=
"value"
class=
"required"
/>
itemLabel=
"label"
itemValue=
"value"
class=
"required"
/>
</span>
</span>
</div>
</div>
</div>
</div>
--%>
<div
class=
"control-group"
>
<
%
--
<
div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报区域:
</label>
<label
class=
"control-label"
>
被举报区域:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:select
id=
"supplementArea"
path=
"supplementArea"
class=
"input-small required"
>
<form:select
id=
"supplementArea"
path=
"supplementArea"
class=
"input-small required"
>
...
@@ -637,7 +688,41 @@
...
@@ -637,7 +688,41 @@
htmlEscape=
"false"
/></form:select>
htmlEscape=
"false"
/></form:select>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
</div>
--%>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报集团:
</label>
<div
class=
"controls"
>
<form:select
id=
"supplementGroup"
path=
"supplementGroup"
class=
"input-small required"
onchange=
"getRegion(value)"
>
<form:option
value=
""
>
请选择
</form:option>
<form:options
items=
"${fns:getDictList('supplement_group')}"
itemLabel=
"label"
itemValue=
"id"
htmlEscape=
"false"
/></form:select>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报区域:
</label>
<div
class=
"controls"
>
<select
id=
"supplementArea"
path=
"supplementArea"
class=
"input-small required"
onchange=
"resetPageNo();"
>
<option
value=
""
>
请选择
</option>
<
%
--
<
options
items=
"${ctBbtcRegionList}"
itemLabel=
"name"
itemValue=
"id"
--
%
>
<
%
--htmlEscape=
"false"
/></select>
--%>
</select>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
业务类型:
</label>
<div
class=
"controls"
>
<form:select
id=
"supplementType"
path=
"supplementType"
class=
"input-small required"
onchange=
"resetPageNo();"
multiple=
"true"
>
<form:option
value=
""
>
请选择
</form:option>
</form:select>
<
%
--
<
options
items=
"${ctBbtcRegionList}"
itemLabel=
"name"
itemValue=
"id"
--
%
>
<
%
--htmlEscape=
"false"
/></select>
--%>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
内容:
</label>
<label
class=
"control-label"
>
内容:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
...
...
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