Commit 923fe50b by sunxin

需求更新

parent f634afe2
<component name="ArtifactManager"> <component name="ArtifactManager">
<artifact type="exploded-war" name="report_sunac:war exploded"> <artifact type="exploded-war" name="report_sunac:war exploded">
<output-path>$PROJECT_DIR$/target/report_sunac</output-path> <output-path>$PROJECT_DIR$/target/report_sunac</output-path>
<properties id="maven-jee-properties">
<options>
<exploded>true</exploded>
<module>report_sunac</module>
<packaging>war</packaging>
</options>
</properties>
<root id="root"> <root id="root">
<element id="directory" name="WEB-INF"> <element id="directory" name="WEB-INF">
<element id="directory" name="classes"> <element id="directory" name="classes">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<orderEntry type="module-library"> <orderEntry type="module-library">
<library name="Maven: com.alibaba:jconsole:1.8.0"> <library name="Maven: com.alibaba:jconsole:1.8.0">
<CLASSES> <CLASSES>
<root url="jar://D:/java jdk/lib/jconsole.jar!/" /> <root url="jar://C:/Program Files/Java/jdk1.8.0_161/lib/jconsole.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<orderEntry type="module-library"> <orderEntry type="module-library">
<library name="Maven: com.alibaba:tools:1.8.0"> <library name="Maven: com.alibaba:tools:1.8.0">
<CLASSES> <CLASSES>
<root url="jar://D:/java jdk/lib/tools.jar!/" /> <root url="jar://C:/Program Files/Java/jdk1.8.0_161/lib/tools.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
...@@ -35,7 +35,9 @@ public interface CrudDao<T> extends BaseDao { ...@@ -35,7 +35,9 @@ public interface CrudDao<T> extends BaseDao {
* @return * @return
*/ */
public List<T> findList(T entity); public List<T> findList(T entity);
/** /**
* 查询所有数据列表 * 查询所有数据列表
* @param entity * @param entity
......
...@@ -3,8 +3,16 @@ ...@@ -3,8 +3,16 @@
*/ */
package com.ejweb.core.service; package com.ejweb.core.service;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import com.ejweb.modules.report.dao.CtBbtcBusCategoryDao;
import com.ejweb.modules.report.dao.CtBbtcBusTypeDao;
import com.ejweb.modules.report.entity.CtBbtcBusCategory;
import com.ejweb.modules.report.entity.CtBbtcBusType;
import com.ejweb.modules.report.entity.ReportEntity;
import com.ejweb.modules.report.service.CtBbtcBusCategoryService;
import com.ejweb.modules.report.service.CtBbtcBusTypeService;
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;
...@@ -25,7 +33,8 @@ public abstract class CrudService<D extends CrudDao<T>, T extends DataEntity<T>> ...@@ -25,7 +33,8 @@ public abstract class CrudService<D extends CrudDao<T>, T extends DataEntity<T>>
*/ */
@Autowired @Autowired
protected D dao; protected D dao;
/** /**
* 获取单条数据 * 获取单条数据
* @param id * @param id
...@@ -61,7 +70,8 @@ public abstract class CrudService<D extends CrudDao<T>, T extends DataEntity<T>> ...@@ -61,7 +70,8 @@ public abstract class CrudService<D extends CrudDao<T>, T extends DataEntity<T>>
*/ */
public Page<T> findPage(Page<T> page, T entity) { public Page<T> findPage(Page<T> page, T entity) {
entity.setPage(page); entity.setPage(page);
page.setList(dao.findList(entity)); List list= dao.findList(entity);
page.setList(list);
return page; return page;
} }
......
...@@ -5,6 +5,9 @@ package com.ejweb.modules.report.dao; ...@@ -5,6 +5,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.CtBbtcBusCategory; import com.ejweb.modules.report.entity.CtBbtcBusCategory;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* 业务类别DAO接口 * 业务类别DAO接口
...@@ -13,5 +16,11 @@ import com.ejweb.modules.report.entity.CtBbtcBusCategory; ...@@ -13,5 +16,11 @@ import com.ejweb.modules.report.entity.CtBbtcBusCategory;
*/ */
@MyBatisDao @MyBatisDao
public interface CtBbtcBusCategoryDao extends CrudDao<CtBbtcBusCategory> { public interface CtBbtcBusCategoryDao extends CrudDao<CtBbtcBusCategory> {
/**
* 根据类型id获取业务类别
* @param typeId
* @return
*/
List<CtBbtcBusCategory> getByTypeId(@Param("typeId") String typeId);
} }
\ No newline at end of file
...@@ -257,4 +257,12 @@ public interface ReportDao extends CrudDao<ReportEntity> { ...@@ -257,4 +257,12 @@ public interface ReportDao extends CrudDao<ReportEntity> {
* @return * @return
*/ */
public String selectExchangeAfterUser(String report); public String selectExchangeAfterUser(String report);
/**
* 查询数据列表,检验基础资料是否使用
* @param entity
* @return
*/
public List<ReportEntity> findListByCheck(ReportEntity entity);
} }
...@@ -19,6 +19,15 @@ public class CtBbtcBusCategory extends DataEntity<CtBbtcBusCategory> { ...@@ -19,6 +19,15 @@ public class CtBbtcBusCategory extends DataEntity<CtBbtcBusCategory> {
private String name; // 业务类别名称 private String name; // 业务类别名称
private CtBbtcBusType type; // 所属业务类型 private CtBbtcBusType type; // 所属业务类型
private String typeName; // 所属业务类型名称 private String typeName; // 所属业务类型名称
private String ctBbtcGroup; //所属集团
public String getCtBbtcGroup() {
return ctBbtcGroup;
}
public void setCtBbtcGroup(String ctBbtcGroup) {
this.ctBbtcGroup = ctBbtcGroup;
}
public CtBbtcBusCategory() { public CtBbtcBusCategory() {
super(); super();
......
...@@ -31,6 +31,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -31,6 +31,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String supplementInformant; //被举报人 private String supplementInformant; //被举报人
private String supplementTitle; //标题 private String supplementTitle; //标题
private String supplementType; //业务类型地产 物业 酒店 商业 private String supplementType; //业务类型地产 物业 酒店 商业
private String transferGroup; //移交部门所属集团
private String transferDepartment;//移交部门 1 营销 2 工程 3 成本 4 招采 5人力 6物业 7投诉 private String transferDepartment;//移交部门 1 营销 2 工程 3 成本 4 招采 5人力 6物业 7投诉
private String supplementArea; //被举报区域 private String supplementArea; //被举报区域
private String supplementProject; //被举报项目 private String supplementProject; //被举报项目
...@@ -68,6 +69,14 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -68,6 +69,14 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private CtBbtcRegion supplementAreaNew; //被举报区域 private CtBbtcRegion supplementAreaNew; //被举报区域
private CtBbtcBusType supplementTypeNew;//业务类型 private CtBbtcBusType supplementTypeNew;//业务类型
public String getTransferGroup() {
return transferGroup;
}
public void setTransferGroup(String transferGroup) {
this.transferGroup = transferGroup;
}
public String getFlage() { public String getFlage() {
return flage; return flage;
} }
...@@ -316,7 +325,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -316,7 +325,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementInformant = supplementInformant; this.supplementInformant = supplementInformant;
} }
@ExcelField(title = "标题", align = 2, sort = 20) @ExcelField(title = "标题", align = 2, sort = 19)
public String getSupplementTitle() { public String getSupplementTitle() {
return supplementTitle; return supplementTitle;
} }
...@@ -334,7 +343,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -334,7 +343,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementType = supplementType; this.supplementType = supplementType;
} }
@ExcelField(title = "区域", align = 2, sort = 32) @ExcelField(title = "区域", align = 2, sort = 21)
public String getSupplementArea() { public String getSupplementArea() {
return supplementArea; return supplementArea;
} }
...@@ -495,7 +504,6 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -495,7 +504,6 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.ipCity = ipCity; this.ipCity = ipCity;
} }
@ExcelField(title = "邮件发送", align = 2, sort = 58)
public String getIsSendEmail() { public String getIsSendEmail() {
return isSendEmail; return isSendEmail;
} }
...@@ -520,6 +528,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -520,6 +528,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.user = user; this.user = user;
} }
@ExcelField(title = "所属集团", align = 2, sort = 20)
public String getSupplementGroup() { public String getSupplementGroup() {
return supplementGroup; return supplementGroup;
} }
...@@ -528,6 +537,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -528,6 +537,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementGroup = supplementGroup; this.supplementGroup = supplementGroup;
} }
@ExcelField(title = "业务类别", align = 2, sort = 23)
public String getSupplementCategory() { public String getSupplementCategory() {
return supplementCategory; return supplementCategory;
} }
......
...@@ -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.CtBbtcBusCategoryDao; ...@@ -21,6 +22,9 @@ import com.ejweb.modules.report.dao.CtBbtcBusCategoryDao;
@Transactional(readOnly = true) @Transactional(readOnly = true)
public class CtBbtcBusCategoryService extends CrudService<CtBbtcBusCategoryDao, CtBbtcBusCategory> { public class CtBbtcBusCategoryService extends CrudService<CtBbtcBusCategoryDao, CtBbtcBusCategory> {
@Autowired
private CtBbtcBusCategoryDao ctBbtcBusCategoryDao;
public CtBbtcBusCategory get(String id) { public CtBbtcBusCategory get(String id) {
return super.get(id); return super.get(id);
} }
...@@ -42,5 +46,9 @@ public class CtBbtcBusCategoryService extends CrudService<CtBbtcBusCategoryDao, ...@@ -42,5 +46,9 @@ public class CtBbtcBusCategoryService extends CrudService<CtBbtcBusCategoryDao,
public void delete(CtBbtcBusCategory ctBbtcBusCategory) { public void delete(CtBbtcBusCategory ctBbtcBusCategory) {
super.delete(ctBbtcBusCategory); super.delete(ctBbtcBusCategory);
} }
public List<CtBbtcBusCategory> getByTpyeId(String typeId){
return this.ctBbtcBusCategoryDao.getByTypeId(typeId);
}
} }
\ No newline at end of file
...@@ -8,10 +8,10 @@ import com.ejweb.core.utils.IdGen; ...@@ -8,10 +8,10 @@ import com.ejweb.core.utils.IdGen;
import com.ejweb.core.utils.StringUtils; import com.ejweb.core.utils.StringUtils;
import com.ejweb.modules.front.report.entity.IP2Regions; import com.ejweb.modules.front.report.entity.IP2Regions;
import com.ejweb.modules.front.report.utils.IpUtils; import com.ejweb.modules.front.report.utils.IpUtils;
import com.ejweb.modules.report.dao.CtBbtcBusCategoryDao;
import com.ejweb.modules.report.dao.CtBbtcBusTypeDao;
import com.ejweb.modules.report.dao.ReportDao; import com.ejweb.modules.report.dao.ReportDao;
import com.ejweb.modules.report.entity.ReportAttachmentEntity; import com.ejweb.modules.report.entity.*;
import com.ejweb.modules.report.entity.ReportEntity;
import com.ejweb.modules.report.entity.ReportExchangeHistory;
import com.ejweb.modules.sys.dao.RoleDao; import com.ejweb.modules.sys.dao.RoleDao;
import com.ejweb.modules.sys.entity.Office; import com.ejweb.modules.sys.entity.Office;
import com.ejweb.modules.sys.entity.Position; import com.ejweb.modules.sys.entity.Position;
...@@ -50,6 +50,12 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -50,6 +50,12 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
@Autowired @Autowired
private RoleDao roleDao; private RoleDao roleDao;
@Autowired
private CtBbtcBusTypeDao ctBbtcBusTypeDao;
@Autowired
private CtBbtcBusCategoryDao ctBbtcBusCategoryDao;
protected static Logger logger = LoggerFactory.getLogger(ReportService.class); protected static Logger logger = LoggerFactory.getLogger(ReportService.class);
/** /**
...@@ -367,6 +373,12 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -367,6 +373,12 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportDao.addRecord(reportExchangeHistory); reportDao.addRecord(reportExchangeHistory);
} }
public List<ReportEntity> getReportListByCheck(ReportEntity reportEntity) {
List<ReportEntity> reportList = dao.findListByCheck(reportEntity);
return reportList;
}
/** /**
* 查询集团举报列表 * 查询集团举报列表
* *
...@@ -379,48 +391,84 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -379,48 +391,84 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
for (ReportEntity report : reportList) { for (ReportEntity report : reportList) {
exchangeAfterUser = reportDao.selectExchangeAfterUser(report.getExchangeAfterUser()); exchangeAfterUser = reportDao.selectExchangeAfterUser(report.getExchangeAfterUser());
report.setTransferName(exchangeAfterUser); report.setTransferName(exchangeAfterUser);
String typeStr = "";
if (StringUtils.isNoneBlank(report.getSupplementType())) { /*封装转换集团信息*/
String[] types = report.getSupplementType().split(","); String supplementGroup = report.getSupplementGroup();
for (String value : types) { if(StringUtils.isNoneBlank(supplementGroup)){
if (value.equals("1")) { if("3437402691677202102".equals(supplementGroup)){
value = "营销"; report.setSupplementGroup("集团本部");
} else if (value.equals("2")) { }else if("3510129313047280678".equals(supplementGroup)){
value = "工程"; report.setSupplementGroup("区域集团");
} else if (value.equals("3")) { }else if("3565898923067676254".equals(supplementGroup)){
value = "成本"; report.setSupplementGroup("服务集团");
} else if (value.equals("4")) { }else if("3806696792996264972".equals(supplementGroup)){
value = "招采"; report.setSupplementGroup("文化集团");
} else if (value.equals("5")) { }else if("3770618512934949260".equals(supplementGroup)){
value = "财务"; report.setSupplementGroup("文旅集团");
} else if (value.equals("6")) { }
value = "法务";
} else if (value.equals("7")) { }else{
value = "行政"; report.setSupplementGroup("--");
} else if (value.equals("8")) { }
value = "人力";
} else if (value.equals("9")) {
value = "开发"; /*封装拼接移交部门信息*/
} else if (value.equals("10")) { String transferGroup = report.getTransferGroup();
value = "研发"; if(StringUtils.isNoneBlank(transferGroup)){
} else if (value.equals("11")) { if("3437402691677202102".equals(transferGroup)){
value = "投资"; report.setTransferDepartment("集团本部--"+report.getTransferDepartment());
}else if (value.equals("15")) { }else if("3510129313047280678".equals(transferGroup)){
value = "商业"; report.setTransferDepartment("区域集团--"+report.getTransferDepartment());
} else if (value.equals("12")) { }else if("3565898923067676254".equals(transferGroup)){
value = "其他"; report.setTransferDepartment("服务集团--"+report.getTransferDepartment());
} else if (value.equals("13")) { }else if("3806696792996264972".equals(transferGroup)){
value = "物业管理"; report.setTransferDepartment("文化集团--"+report.getTransferDepartment());
} else if (value.equals("14")) { }else if("3770618512934949260".equals(transferGroup)){
value = "文旅管理"; report.setTransferDepartment("文旅集团--"+report.getTransferDepartment());
}
}else{
report.setTransferDepartment("--");
}
/*封装类型 类别数据*/
String SupplementTypeStr="";
String SupplementCategoryStr="";
/*遍历集合*/
if(StringUtils.isNoneBlank(report.getSupplementType())){
String[] getSupplementTypeStr = report.getSupplementType().split(",");
for (String str:getSupplementTypeStr) {
CtBbtcBusType ctBbtcBusType = ctBbtcBusTypeDao.get(str);
if(ctBbtcBusType!=null){
SupplementTypeStr = SupplementTypeStr + ctBbtcBusType.getName() + ",";
}else{
SupplementTypeStr = SupplementTypeStr + "--";
}
}
report.setSupplementType(SupplementTypeStr.substring( 0, SupplementTypeStr.length()-1));
}
if(StringUtils.isNoneBlank(report.getSupplementCategory())){
String[] getSupplementCategory = report.getSupplementCategory().split(",");
for (String str:getSupplementCategory) {
CtBbtcBusCategory ctBbtcBusCategory = ctBbtcBusCategoryDao.get(str);
if(ctBbtcBusCategory!=null){
SupplementCategoryStr = SupplementCategoryStr + ctBbtcBusCategory.getName() + ",";
}else{
SupplementCategoryStr = SupplementCategoryStr + "--";
} }
typeStr = typeStr + value + ",";
} }
typeStr = typeStr.substring(0, typeStr.length() - 1); report.setSupplementCategory(SupplementCategoryStr.substring(0,SupplementCategoryStr.length()-1));
} }
report.setSupplementType(typeStr);
//移交部门
/* //移交部门
String TransferDepartment = report.getTransferDepartment(); String TransferDepartment = report.getTransferDepartment();
if (StringUtils.isNoneBlank(report.getTransferDepartment())) { if (StringUtils.isNoneBlank(report.getTransferDepartment())) {
if (TransferDepartment.equals("1")) { if (TransferDepartment.equals("1")) {
...@@ -457,7 +505,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -457,7 +505,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} else { } else {
TransferDepartment = ""; TransferDepartment = "";
} }
report.setTransferDepartment(TransferDepartment); report.setTransferDepartment(TransferDepartment);*/
//举报途径 //举报途径
String reportSource = report.getReportSource(); String reportSource = report.getReportSource();
if (StringUtils.isNotBlank(reportSource)) { if (StringUtils.isNotBlank(reportSource)) {
...@@ -482,6 +531,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -482,6 +531,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportSource = ""; reportSource = "";
} }
report.setReportSource(reportSource); report.setReportSource(reportSource);
//状态 //状态
String reportStatus = report.getReportStatus(); String reportStatus = report.getReportStatus();
if (StringUtils.isNotBlank(reportStatus)) { if (StringUtils.isNotBlank(reportStatus)) {
...@@ -519,8 +569,11 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -519,8 +569,11 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} else { } else {
dealResult = "--"; dealResult = "--";
} }
report.setDealResult(dealResult); report.setDealResult(dealResult);
String supplementArea = report.getSupplementArea();
/* String supplementArea = report.getSupplementArea();
if (StringUtils.isNotBlank(supplementArea)) { if (StringUtils.isNotBlank(supplementArea)) {
if (supplementArea.equals("North China")) { if (supplementArea.equals("North China")) {
supplementArea = "华北区域公司"; supplementArea = "华北区域公司";
...@@ -544,7 +597,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -544,7 +597,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} else { } else {
supplementArea = "--"; supplementArea = "--";
} }
report.setSupplementArea(supplementArea); report.setSupplementArea(supplementArea);*/
report.setSupplementInformant(report.getSupplementInformant() == null ? "--" : report.getSupplementInformant()); report.setSupplementInformant(report.getSupplementInformant() == null ? "--" : report.getSupplementInformant());
report.setDealPersonName(report.getDealPersonName() == null ? "--" : report.getDealPersonName()); report.setDealPersonName(report.getDealPersonName() == null ? "--" : report.getDealPersonName());
User user = UserUtils.getUser(); User user = UserUtils.getUser();
...@@ -557,6 +611,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -557,6 +611,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} else { } else {
report.setTransferName(""); report.setTransferName("");
} }
report.setReportIp(report.getReportIp() == null ? "--" : report.getReportIp()); report.setReportIp(report.getReportIp() == null ? "--" : report.getReportIp());
report.setIpCity(report.getIpCity() == null ? "--" : report.getIpCity()); report.setIpCity(report.getIpCity() == null ? "--" : report.getIpCity());
String isSendEmail = report.getIsSendEmail(); String isSendEmail = report.getIsSendEmail();
...@@ -569,6 +624,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -569,6 +624,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} }
report.setIsSendEmail(isSendEmail); report.setIsSendEmail(isSendEmail);
} }
return reportList; return reportList;
} }
...@@ -584,48 +640,83 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -584,48 +640,83 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
for (ReportEntity report : reportList) { for (ReportEntity report : reportList) {
exchangeAfterUser = reportDao.selectExchangeAfterUser(report.getExchangeAfterUser()); exchangeAfterUser = reportDao.selectExchangeAfterUser(report.getExchangeAfterUser());
report.setTransferName(exchangeAfterUser); report.setTransferName(exchangeAfterUser);
String typeStr = "";
if (StringUtils.isNoneBlank(report.getSupplementType())) { /*封装转换集团信息*/
String[] types = report.getSupplementType().split(","); String supplementGroup = report.getSupplementGroup();
for (String value : types) { if(StringUtils.isNoneBlank(supplementGroup)){
if (value.equals("1")) { if("3437402691677202102".equals(supplementGroup)){
value = "营销"; report.setSupplementGroup("集团本部");
} else if (value.equals("2")) { }else if("3510129313047280678".equals(supplementGroup)){
value = "工程"; report.setSupplementGroup("区域集团");
} else if (value.equals("3")) { }else if("3565898923067676254".equals(supplementGroup)){
value = "成本"; report.setSupplementGroup("服务集团");
} else if (value.equals("4")) { }else if("3806696792996264972".equals(supplementGroup)){
value = "招采"; report.setSupplementGroup("文化集团");
} else if (value.equals("5")) { }else if("3770618512934949260".equals(supplementGroup)){
value = "财务"; report.setSupplementGroup("文旅集团");
} else if (value.equals("6")) { }
value = "法务";
} else if (value.equals("7")) { }else{
value = "行政"; report.setSupplementGroup("--");
} else if (value.equals("8")) { }
value = "人力";
} else if (value.equals("9")) { /*封装拼接移交部门信息*/
value = "开发"; String transferGroup = report.getTransferGroup();
} else if (value.equals("10")) { if(StringUtils.isNoneBlank(transferGroup)){
value = "研发"; if("3437402691677202102".equals(transferGroup)){
} else if (value.equals("11")) { report.setTransferDepartment("集团本部--"+report.getTransferDepartment());
value = "投资"; }else if("3510129313047280678".equals(transferGroup)){
} else if (value.equals("15")) { report.setTransferDepartment("区域集团--"+report.getTransferDepartment());
value = "商业"; }else if("3565898923067676254".equals(transferGroup)){
} else if(value.equals("12")) { report.setTransferDepartment("服务集团--"+report.getTransferDepartment());
value = "其他"; }else if("3806696792996264972".equals(transferGroup)){
} else if (value.equals("13")) { report.setTransferDepartment("文化集团--"+report.getTransferDepartment());
value = "物业管理"; }else if("3770618512934949260".equals(transferGroup)){
} else if (value.equals("14")) { report.setTransferDepartment("文旅集团--"+report.getTransferDepartment());
value = "文旅管理"; }
}else{
report.setTransferDepartment("--");
}
/*封装类型 类别数据*/
String SupplementTypeStr="";
String SupplementCategoryStr="";
/*遍历集合*/
if(StringUtils.isNoneBlank(report.getSupplementType())){
String[] getSupplementTypeStr = report.getSupplementType().split(",");
for (String str:getSupplementTypeStr) {
CtBbtcBusType ctBbtcBusType = ctBbtcBusTypeDao.get(str);
if(ctBbtcBusType!=null){
SupplementTypeStr = SupplementTypeStr + ctBbtcBusType.getName() + ",";
}else{
SupplementTypeStr = SupplementTypeStr + "--";
}
}
report.setSupplementType(SupplementTypeStr.substring( 0, SupplementTypeStr.length()-1));
}
if(StringUtils.isNoneBlank(report.getSupplementCategory())){
String[] getSupplementCategory = report.getSupplementCategory().split(",");
for (String str:getSupplementCategory) {
CtBbtcBusCategory ctBbtcBusCategory = ctBbtcBusCategoryDao.get(str);
if(ctBbtcBusCategory!=null){
SupplementCategoryStr = SupplementCategoryStr + ctBbtcBusCategory.getName() + ",";
}else{
SupplementCategoryStr = SupplementCategoryStr + "--,";
} }
typeStr = typeStr + value + ",";
} }
typeStr = typeStr.substring(0, typeStr.length() - 1); report.setSupplementCategory(SupplementCategoryStr.substring(0,SupplementCategoryStr.length()-1));
} }
report.setSupplementType(typeStr);
//移交部门
/* //移交部门
String TransferDepartment = report.getTransferDepartment(); String TransferDepartment = report.getTransferDepartment();
if (StringUtils.isNoneBlank(report.getTransferDepartment())) { if (StringUtils.isNoneBlank(report.getTransferDepartment())) {
if (TransferDepartment.equals("1")) { if (TransferDepartment.equals("1")) {
...@@ -662,7 +753,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -662,7 +753,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} else { } else {
TransferDepartment = ""; TransferDepartment = "";
} }
report.setTransferDepartment(TransferDepartment); report.setTransferDepartment(TransferDepartment);*/
//举报途径 //举报途径
String reportSource = report.getReportSource(); String reportSource = report.getReportSource();
if (StringUtils.isNotBlank(reportSource)) { if (StringUtils.isNotBlank(reportSource)) {
...@@ -725,7 +817,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -725,7 +817,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
dealResult = "--"; dealResult = "--";
} }
report.setDealResult(dealResult); report.setDealResult(dealResult);
String supplementArea = report.getSupplementArea(); /* String supplementArea = report.getSupplementArea();
if (StringUtils.isNotBlank(supplementArea)) { if (StringUtils.isNotBlank(supplementArea)) {
if (supplementArea.equals("North China")) { if (supplementArea.equals("North China")) {
supplementArea = "华北区域公司"; supplementArea = "华北区域公司";
...@@ -749,7 +841,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -749,7 +841,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} else { } else {
supplementArea = "--"; supplementArea = "--";
} }
report.setSupplementArea(supplementArea); report.setSupplementArea(supplementArea);*/
report.setSupplementInformant(report.getSupplementInformant() == null ? "--" : report.getSupplementInformant()); report.setSupplementInformant(report.getSupplementInformant() == null ? "--" : report.getSupplementInformant());
report.setDealPersonName(report.getDealPersonName() == null ? "--" : report.getDealPersonName()); report.setDealPersonName(report.getDealPersonName() == null ? "--" : report.getDealPersonName());
User user = UserUtils.getUser(); User user = UserUtils.getUser();
......
...@@ -3,14 +3,18 @@ ...@@ -3,14 +3,18 @@
*/ */
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.CtBbtcBusCategory; import com.ejweb.modules.report.entity.CtBbtcBusCategory;
import com.ejweb.modules.report.entity.CtBbtcBusType; import com.ejweb.modules.report.entity.CtBbtcBusType;
import com.ejweb.modules.report.entity.CtBbtcRegion;
import com.ejweb.modules.report.entity.ReportEntity;
import com.ejweb.modules.report.service.CtBbtcBusCategoryService; import com.ejweb.modules.report.service.CtBbtcBusCategoryService;
import com.ejweb.modules.report.service.CtBbtcBusTypeService; import com.ejweb.modules.report.service.CtBbtcBusTypeService;
import com.ejweb.modules.report.service.ReportService;
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;
...@@ -23,6 +27,8 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes; ...@@ -23,6 +27,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.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -42,6 +48,9 @@ public class CtBbtcBusCategoryController extends BaseController { ...@@ -42,6 +48,9 @@ public class CtBbtcBusCategoryController extends BaseController {
private CtBbtcBusCategoryService ctBbtcBusCategoryService; private CtBbtcBusCategoryService ctBbtcBusCategoryService;
@Autowired @Autowired
private CtBbtcBusTypeService ctBbtcBusTypeService; private CtBbtcBusTypeService ctBbtcBusTypeService;
@Autowired
private ReportService reportService;
@ModelAttribute @ModelAttribute
public CtBbtcBusCategory get(@RequestParam(required=false) String id) { public CtBbtcBusCategory get(@RequestParam(required=false) String id) {
...@@ -54,6 +63,39 @@ public class CtBbtcBusCategoryController extends BaseController { ...@@ -54,6 +63,39 @@ public class CtBbtcBusCategoryController extends BaseController {
} }
return entity; return entity;
} }
/**
* 跟据类型type多值查询对应的类别
* @param typeId
* @param redirectAttributes
* @param response
*/
@RequestMapping(value = "getBusCategoryList")
public void getBusCategoryList(String typeId, RedirectAttributes redirectAttributes,HttpServletResponse response){
if(typeId != null && !"".equals(typeId)){
JSONObject res = new JSONObject();
String[] typeIds = typeId.split(",");
List<CtBbtcBusCategory> ctBbtcBusCategoryList=new ArrayList<CtBbtcBusCategory>();
/*遍历typeIds 查询多个集合 将集合拼接*/
for (String type:typeIds) {
if(type!= null && !"".equals(type)){
ctBbtcBusCategoryList.addAll(ctBbtcBusCategoryService.getByTpyeId(type));
}
}
System.out.println("最终集合大小:"+ctBbtcBusCategoryList.size()+"===============================");
res.put("ctBbtcBusCategoryList", ctBbtcBusCategoryList);
String jsonStr = res.toJSONString();
try{
PrintWriter out = response.getWriter();
out.print(jsonStr);
out.close();
}catch (Exception e){
e.printStackTrace();
}
}
}
@RequiresPermissions("report:ctBbtcBusCategory:view") @RequiresPermissions("report:ctBbtcBusCategory:view")
@RequestMapping(value = {"list", ""}) @RequestMapping(value = {"list", ""})
...@@ -86,9 +128,37 @@ public class CtBbtcBusCategoryController extends BaseController { ...@@ -86,9 +128,37 @@ public class CtBbtcBusCategoryController extends BaseController {
@RequiresPermissions("report:ctBbtcBusCategory:edit") @RequiresPermissions("report:ctBbtcBusCategory:edit")
@RequestMapping(value = "delete") @RequestMapping(value = "delete")
public String delete(CtBbtcBusCategory ctBbtcBusCategory, RedirectAttributes redirectAttributes) { public String delete(CtBbtcBusCategory ctBbtcBusCategory, RedirectAttributes redirectAttributes) {
/*如果信息已在举报中存在 则不删除*/
if(checkIsExist(ctBbtcBusCategory)){
addMessage(redirectAttributes, "删除业务类别不成功,举报信息已存在");
return "redirect:"+adminPath+"/report/ctBbtcBusCategory/?repage";
}
ctBbtcBusCategoryService.delete(ctBbtcBusCategory); ctBbtcBusCategoryService.delete(ctBbtcBusCategory);
addMessage(redirectAttributes, "删除业务类别成功"); addMessage(redirectAttributes, "删除业务类别成功");
return "redirect:"+adminPath+"/report/ctBbtcBusCategory/?repage"; return "redirect:"+adminPath+"/report/ctBbtcBusCategory/?repage";
} }
/**
* 校验 区域是否在举报信息中出现过
* @return true 出现过 false 未出现过
*/
public boolean checkIsExist(CtBbtcBusCategory ctBbtcBusCategory){
ReportEntity reportEntity=new ReportEntity();
//如果id不为空 跟据id去查询列表
if(StringUtils.isNotBlank(ctBbtcBusCategory.getId())){
reportEntity.setSupplementCategory(ctBbtcBusCategory.getId());
List<ReportEntity> reportList = reportService.getReportListByCheck(reportEntity);
if(reportList.size()>0){
return true;
}else{
return false;
}
}
return false;
}
} }
\ No newline at end of file
...@@ -8,7 +8,10 @@ import com.ejweb.core.persistence.Page; ...@@ -8,7 +8,10 @@ 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.CtBbtcBusType;
import com.ejweb.modules.report.entity.CtBbtcRegion;
import com.ejweb.modules.report.entity.ReportEntity;
import com.ejweb.modules.report.service.CtBbtcBusTypeService; import com.ejweb.modules.report.service.CtBbtcBusTypeService;
import com.ejweb.modules.report.service.ReportService;
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 +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.util.List;
/** /**
* 业务类型Controller * 业务类型Controller
* @author haoqm * @author haoqm
...@@ -37,6 +42,9 @@ public class CtBbtcBusTypeController extends BaseController { ...@@ -37,6 +42,9 @@ public class CtBbtcBusTypeController extends BaseController {
@Autowired @Autowired
private CtBbtcBusTypeService ctBbtcBusTypeService; private CtBbtcBusTypeService ctBbtcBusTypeService;
@Autowired
private ReportService reportService;
@ModelAttribute @ModelAttribute
public CtBbtcBusType get(@RequestParam(required=false) String id) { public CtBbtcBusType get(@RequestParam(required=false) String id) {
...@@ -79,9 +87,37 @@ public class CtBbtcBusTypeController extends BaseController { ...@@ -79,9 +87,37 @@ public class CtBbtcBusTypeController extends BaseController {
@RequiresPermissions("report:ctBbtcBusType:edit") @RequiresPermissions("report:ctBbtcBusType:edit")
@RequestMapping(value = "delete") @RequestMapping(value = "delete")
public String delete(CtBbtcBusType ctBbtcBusType, RedirectAttributes redirectAttributes) { public String delete(CtBbtcBusType ctBbtcBusType, RedirectAttributes redirectAttributes) {
/*如果信息已在举报中存在 则不删除*/
if(checkIsExist(ctBbtcBusType)){
addMessage(redirectAttributes, "删除业务类型不成功,举报信息中已存在");
return "redirect:"+adminPath+"/report/ctBbtcBusType/?repage";
}
ctBbtcBusTypeService.delete(ctBbtcBusType); ctBbtcBusTypeService.delete(ctBbtcBusType);
addMessage(redirectAttributes, "删除业务类型成功"); addMessage(redirectAttributes, "删除业务类型成功");
return "redirect:"+adminPath+"/report/ctBbtcBusType/?repage"; return "redirect:"+adminPath+"/report/ctBbtcBusType/?repage";
} }
/**
* 校验 区域是否在举报信息中出现过
* @return true 出现过 false 未出现过
*/
public boolean checkIsExist(CtBbtcBusType ctBbtcBusType){
ReportEntity reportEntity=new ReportEntity();
//如果id不为空 跟据id去查询列表
if(StringUtils.isNotBlank(ctBbtcBusType.getId())){
reportEntity.setSupplementType(ctBbtcBusType.getId());
List<ReportEntity> reportList = reportService.getReportListByCheck(reportEntity);
if(reportList.size()>0){
return true;
}else{
return false;
}
}
return false;
}
} }
\ No newline at end of file
...@@ -10,8 +10,11 @@ import com.ejweb.core.persistence.Page; ...@@ -10,8 +10,11 @@ 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.CtBbtcBusType;
import com.ejweb.modules.report.entity.CtBbtcRegion; import com.ejweb.modules.report.entity.CtBbtcRegion;
import com.ejweb.modules.report.entity.ReportEntity;
import com.ejweb.modules.report.service.CtBbtcBusTypeService; import com.ejweb.modules.report.service.CtBbtcBusTypeService;
import com.ejweb.modules.report.service.CtBbtcRegionService; import com.ejweb.modules.report.service.CtBbtcRegionService;
import com.ejweb.modules.report.service.ReportService;
import com.sun.org.apache.xpath.internal.operations.Bool;
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;
...@@ -44,6 +47,9 @@ public class CtBbtcRegionController extends BaseController { ...@@ -44,6 +47,9 @@ public class CtBbtcRegionController extends BaseController {
private CtBbtcRegionService ctBbtcRegionService; private CtBbtcRegionService ctBbtcRegionService;
@Autowired @Autowired
private CtBbtcBusTypeService ctBbtcBusTypeService; private CtBbtcBusTypeService ctBbtcBusTypeService;
@Autowired
private ReportService reportService;
@ModelAttribute @ModelAttribute
public CtBbtcRegion get(@RequestParam(required=false) String id) { public CtBbtcRegion get(@RequestParam(required=false) String id) {
...@@ -86,11 +92,41 @@ public class CtBbtcRegionController extends BaseController { ...@@ -86,11 +92,41 @@ public class CtBbtcRegionController extends BaseController {
@RequiresPermissions("report:ctBbtcRegion:edit") @RequiresPermissions("report:ctBbtcRegion:edit")
@RequestMapping(value = "delete") @RequestMapping(value = "delete")
public String delete(CtBbtcRegion ctBbtcRegion, RedirectAttributes redirectAttributes) { public String delete(CtBbtcRegion ctBbtcRegion, RedirectAttributes redirectAttributes) {
ctBbtcRegionService.delete(ctBbtcRegion);
addMessage(redirectAttributes, "删除区域基础资料成功"); /*如果信息已在举报中存在 则不删除*/
System.out.println(checkIsExist(ctBbtcRegion)+"========================================");
if(!checkIsExist(ctBbtcRegion)){
ctBbtcRegionService.delete(ctBbtcRegion);
addMessage(redirectAttributes, "删除区域基础资料成功");
return "redirect:"+adminPath+"/report/ctBbtcRegion/?repage";
}
addMessage(redirectAttributes, "删除区域基础资料不成功,举报信息中已存在");
return "redirect:"+adminPath+"/report/ctBbtcRegion/?repage"; return "redirect:"+adminPath+"/report/ctBbtcRegion/?repage";
} }
/**
* 校验 区域是否在举报信息中出现过
* @return true 出现过 false 未出现过
*/
public boolean checkIsExist(CtBbtcRegion ctBbtcRegion){
ReportEntity reportEntity=new ReportEntity();
//如果id不为空 跟据id去查询列表
if(StringUtils.isNotBlank(ctBbtcRegion.getId())){
reportEntity.setSupplementArea(ctBbtcRegion.getId());
List<ReportEntity> reportList = reportService.getReportListByCheck(reportEntity);
System.out.println(reportList.size()+"============================");
if(reportList.size()>0){
return true;
}else{
return false;
}
}
return false;
}
@RequestMapping(value = "getRegionList") @RequestMapping(value = "getRegionList")
public void getRegionList(String groupId, RedirectAttributes redirectAttributes,HttpServletResponse response){ public void getRegionList(String groupId, RedirectAttributes redirectAttributes,HttpServletResponse response){
if(groupId != null && !"".equals(groupId)){ if(groupId != null && !"".equals(groupId)){
......
...@@ -8,9 +8,14 @@ import com.ejweb.core.utils.SpringContextHolder; ...@@ -8,9 +8,14 @@ import com.ejweb.core.utils.SpringContextHolder;
import com.ejweb.core.utils.StringUtils; import com.ejweb.core.utils.StringUtils;
import com.ejweb.core.utils.excel.ExportExcel; import com.ejweb.core.utils.excel.ExportExcel;
import com.ejweb.modules.report.dao.CtBbtcBusTypeDao;
import com.ejweb.modules.report.dao.ReportDao; import com.ejweb.modules.report.dao.ReportDao;
import com.ejweb.modules.report.entity.CtBbtcBusCategory;
import com.ejweb.modules.report.entity.CtBbtcBusType;
import com.ejweb.modules.report.entity.ReportAttachmentEntity; import com.ejweb.modules.report.entity.ReportAttachmentEntity;
import com.ejweb.modules.report.entity.ReportEntity; import com.ejweb.modules.report.entity.ReportEntity;
import com.ejweb.modules.report.service.CtBbtcBusCategoryService;
import com.ejweb.modules.report.service.CtBbtcBusTypeService;
import com.ejweb.modules.report.service.ReportService; import com.ejweb.modules.report.service.ReportService;
import com.ejweb.modules.sys.entity.Office; import com.ejweb.modules.sys.entity.Office;
import com.ejweb.modules.sys.entity.Position; import com.ejweb.modules.sys.entity.Position;
...@@ -33,6 +38,7 @@ import javax.servlet.http.HttpServletResponse; ...@@ -33,6 +38,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -53,6 +59,12 @@ public class ReportController extends BaseController { ...@@ -53,6 +59,12 @@ public class ReportController extends BaseController {
@Autowired @Autowired
private ReportDao reportdao; private ReportDao reportdao;
@Autowired
protected CtBbtcBusTypeService CtBbtcBusTypeService;
@Autowired
protected CtBbtcBusCategoryService ctBbtcBusCategoryService;
@ModelAttribute @ModelAttribute
public ReportEntity get(@RequestParam(required = false) String id) { public ReportEntity get(@RequestParam(required = false) String id) {
...@@ -115,7 +127,46 @@ public class ReportController extends BaseController { ...@@ -115,7 +127,46 @@ public class ReportController extends BaseController {
} }
List<ReportEntity> reportlist = page.getList(); List<ReportEntity> reportlist = page.getList();
for (ReportEntity report : reportlist) {
/*封装类型 类别数据*/
for (ReportEntity report: reportlist ) {
String SupplementTypeStr="";
String SupplementCategoryStr="";
/*遍历集合*/
if(StringUtils.isNoneBlank(report.getSupplementType())){
String[] getSupplementTypeStr = report.getSupplementType().split(",");
for (String str:getSupplementTypeStr) {
CtBbtcBusType ctBbtcBusType = CtBbtcBusTypeService.get(str);
if(ctBbtcBusType!=null){
SupplementTypeStr = SupplementTypeStr + ctBbtcBusType.getName() + ",";
}else{
SupplementTypeStr = SupplementTypeStr + "--";
}
}
report.setSupplementType(SupplementTypeStr.substring( 0, SupplementTypeStr.length()-1));
}
if(StringUtils.isNoneBlank(report.getSupplementCategory())){
String[] getSupplementCategory = report.getSupplementCategory().split(",");
for (String str:getSupplementCategory) {
CtBbtcBusCategory ctBbtcBusCategory = ctBbtcBusCategoryService.get(str);
if(ctBbtcBusCategory!=null){
SupplementCategoryStr = SupplementCategoryStr + ctBbtcBusCategory.getName() + ",";
}else{
SupplementCategoryStr = SupplementCategoryStr + "--";
}
}
report.setSupplementCategory(SupplementCategoryStr.substring(0,SupplementCategoryStr.length()-1));
}
}
/*for (ReportEntity report : reportlist) {
String departmentStr = ""; String departmentStr = "";
if (StringUtils.isNoneBlank(report.getSupplementType())) { if (StringUtils.isNoneBlank(report.getSupplementType())) {
String[] types = report.getSupplementType().split(","); String[] types = report.getSupplementType().split(",");
...@@ -155,10 +206,10 @@ public class ReportController extends BaseController { ...@@ -155,10 +206,10 @@ public class ReportController extends BaseController {
} }
report.setSupplementType(departmentStr.substring(0, departmentStr.length() - 1)); report.setSupplementType(departmentStr.substring(0, departmentStr.length() - 1));
} }
} }*/
String value = ""; /* String value = "";*/
for (ReportEntity report : reportlist) { /*for (ReportEntity report : reportlist) {
if (StringUtils.isNoneBlank(report.getOaarea())) { if (StringUtils.isNoneBlank(report.getOaarea())) {
if (report.getOaarea().equals("North China")) { if (report.getOaarea().equals("North China")) {
value = "华北区域公司"; value = "华北区域公司";
...@@ -187,7 +238,7 @@ public class ReportController extends BaseController { ...@@ -187,7 +238,7 @@ public class ReportController extends BaseController {
} }
String exchangeAfterUser = reportdao.selectExchangeAfterUser(report.getExchangeAfterUser()); String exchangeAfterUser = reportdao.selectExchangeAfterUser(report.getExchangeAfterUser());
report.setTransferName(exchangeAfterUser); report.setTransferName(exchangeAfterUser);
} }*/
page.setList(reportlist); page.setList(reportlist);
String isAdmin = reportService.checkRole(user); String isAdmin = reportService.checkRole(user);
...@@ -259,80 +310,43 @@ public class ReportController extends BaseController { ...@@ -259,80 +310,43 @@ public class ReportController extends BaseController {
} }
List<ReportEntity> reportlist = page.getList(); List<ReportEntity> reportlist = page.getList();
for (ReportEntity report : reportlist) { /*封装类型 类别数据*/
for (ReportEntity report: reportlist ) {
String departmentStr = ""; String SupplementTypeStr="";
if (StringUtils.isNoneBlank(report.getSupplementType())) { String SupplementCategoryStr="";
String[] types = report.getSupplementType().split(","); /*遍历集合*/
for (String value : types) {
if (value.equals("1")) { if(StringUtils.isNoneBlank(report.getSupplementType())){
value = "营销"; String[] getSupplementTypeStr = report.getSupplementType().split(",");
} else if (value.equals("2")) { for (String str:getSupplementTypeStr) {
value = "工程"; CtBbtcBusType ctBbtcBusType = CtBbtcBusTypeService.get(str);
} else if (value.equals("3")) { if(ctBbtcBusType!=null){
value = "成本"; SupplementTypeStr = SupplementTypeStr + ctBbtcBusType.getName() + ",";
} else if (value.equals("4")) { }else{
value = "招采"; SupplementTypeStr = SupplementTypeStr + "--";
} else if (value.equals("5")) {
value = "财务";
} else if (value.equals("6")) {
value = "法务";
} else if (value.equals("7")) {
value = "行政";
} else if (value.equals("8")) {
value = "人力";
} else if (value.equals("9")) {
value = "开发";
} else if (value.equals("10")) {
value = "研发";
} else if (value.equals("11")) {
value = "投资";
} else if (value.equals("12")) {
value = "其他";
} else if (value.equals("13")) {
value = "物业管理";
} else if (value.equals("14")) {
value = "文旅管理";
} else if (value.equals("15")) {
value = "商业";
} }
departmentStr = departmentStr + value + ",";
} }
report.setSupplementType(departmentStr.substring(0, departmentStr.length() - 1)); report.setSupplementType(SupplementTypeStr.substring( 0, SupplementTypeStr.length()-1));
} }
}
String value = "";
for (ReportEntity report : reportlist) {
if (StringUtils.isNoneBlank(report.getOaarea())) {
if (report.getOaarea().equals("North China")) {
value = "华北区域公司";
} else if (report.getOaarea().equals("BeiJing")) {
value = "北京区域公司";
} else if (report.getOaarea().equals("ShangHai")) {
value = "上海区域公司";
} else if (report.getOaarea().equals("SouthWest")) {
value = "西南区域公司";
} else if (report.getOaarea().equals("SouthEast")) {
value = "东南区域公司";
} else if (report.getOaarea().equals("Central China")) {
value = "华中区域公司";
} else if (report.getOaarea().equals("GuangShen")) {
value = "广深区域公司";
} else if (report.getOaarea().equals("Hainan")) {
value = "海南区域公司";
} else if (report.getOaarea().equals("Group")) {
value = "集团本部";
} else if (report.getOaarea().equals("PropertyGroup")) {
value = "物业集团";
}
if (StringUtils.isNoneBlank(report.getOaname())) {
report.setOaname(value + "-" + report.getOaname());
}
if(StringUtils.isNoneBlank(report.getSupplementCategory())){
String[] getSupplementCategory = report.getSupplementCategory().split(",");
for (String str:getSupplementCategory) {
CtBbtcBusCategory ctBbtcBusCategory = ctBbtcBusCategoryService.get(str);
if(ctBbtcBusCategory!=null){
SupplementCategoryStr = SupplementCategoryStr + ctBbtcBusCategory.getName() + ",";
}else{
SupplementCategoryStr = SupplementCategoryStr + "--";
}
}
report.setSupplementCategory(SupplementCategoryStr.substring(0,SupplementCategoryStr.length()-1));
} }
String exchangeAfterUser = reportdao.selectExchangeAfterUser(report.getExchangeAfterUser());
report.setTransferName(exchangeAfterUser);
} }
page.setList(reportlist); page.setList(reportlist);
String isAdmin = reportService.checkRole(user); String isAdmin = reportService.checkRole(user);
model.addAttribute("page", page); model.addAttribute("page", page);
...@@ -390,7 +404,45 @@ public class ReportController extends BaseController { ...@@ -390,7 +404,45 @@ public class ReportController extends BaseController {
ReportAttachmentEntity reportAttachment = new ReportAttachmentEntity(); ReportAttachmentEntity reportAttachment = new ReportAttachmentEntity();
reportAttachment.setReportId(reportEntity.getId()); reportAttachment.setReportId(reportEntity.getId());
reportAttachment.setAttachmentType("0"); reportAttachment.setAttachmentType("0");
if (StringUtils.isNoneBlank(reportEntity.getSupplementType())) { //跟据id查询举报信息
ReportEntity reportEntity1 = reportService.get(reportEntity.getId());
/*封装类型 类别数据*/
String SupplementTypeStr="";
String SupplementCategoryStr="";
/*遍历集合*/
if(StringUtils.isNoneBlank(reportEntity1.getSupplementType())){
String[] getSupplementTypeStr = reportEntity1.getSupplementType().split(",");
for (String str:getSupplementTypeStr) {
CtBbtcBusType ctBbtcBusType = CtBbtcBusTypeService.get(str);
if(ctBbtcBusType!=null){
SupplementTypeStr = SupplementTypeStr + ctBbtcBusType.getName() + ",";
}else{
SupplementTypeStr = SupplementTypeStr + "--";
}
}
reportEntity1.setSupplementType(SupplementTypeStr.substring( 0, SupplementTypeStr.length()-1));
}
if(StringUtils.isNoneBlank(reportEntity1.getSupplementCategory())){
String[] getSupplementCategory = reportEntity1.getSupplementCategory().split(",");
for (String str:getSupplementCategory) {
CtBbtcBusCategory ctBbtcBusCategory = ctBbtcBusCategoryService.get(str);
if(ctBbtcBusCategory!=null){
SupplementCategoryStr = SupplementCategoryStr + ctBbtcBusCategory.getName() + ",";
}else{
SupplementCategoryStr = SupplementCategoryStr + "--";
}
}
reportEntity1.setSupplementCategory(SupplementCategoryStr.substring(0,SupplementCategoryStr.length()-1));
}
/* if (StringUtils.isNoneBlank(reportEntity.getSupplementType())) {
String supplementType = ""; String supplementType = "";
String[] supplementTypes = {"营销", "工程", "成本", "招采", "财务", "法务", "行政", "人力", "开发", "研发", "投资", "其他", "物业管理", "文旅管理","商业"}; String[] supplementTypes = {"营销", "工程", "成本", "招采", "财务", "法务", "行政", "人力", "开发", "研发", "投资", "其他", "物业管理", "文旅管理","商业"};
...@@ -400,7 +452,7 @@ public class ReportController extends BaseController { ...@@ -400,7 +452,7 @@ public class ReportController extends BaseController {
} }
supplementType = supplementType.substring(0, supplementType.length() - 1); supplementType = supplementType.substring(0, supplementType.length() - 1);
reportEntity.setSupplementType(supplementType); reportEntity.setSupplementType(supplementType);
} }*/
String isSendEmail = reportEntity.getIsSendEmail(); String isSendEmail = reportEntity.getIsSendEmail();
if (StringUtils.isNotBlank(isSendEmail)) { if (StringUtils.isNotBlank(isSendEmail)) {
if (isSendEmail.equals("1")) { if (isSendEmail.equals("1")) {
...@@ -471,7 +523,7 @@ public class ReportController extends BaseController { ...@@ -471,7 +523,7 @@ public class ReportController extends BaseController {
} }
} }
model.addAttribute("isAdmin", isAdmin); model.addAttribute("isAdmin", isAdmin);
model.addAttribute("report", reportEntity); model.addAttribute("report", reportEntity1);
model.addAttribute("reportAttachmentList", reportAttachmentList); model.addAttribute("reportAttachmentList", reportAttachmentList);
model.addAttribute("supplementAttachmentList", supplementAttachmentList); model.addAttribute("supplementAttachmentList", supplementAttachmentList);
model.addAttribute("dealAttachmentList", dealAttachmentList); model.addAttribute("dealAttachmentList", dealAttachmentList);
...@@ -514,16 +566,46 @@ public class ReportController extends BaseController { ...@@ -514,16 +566,46 @@ public class ReportController extends BaseController {
dealAttachment.setReportId(reportEntity.getId()); dealAttachment.setReportId(reportEntity.getId());
dealAttachment.setAttachmentType("2"); dealAttachment.setAttachmentType("2");
List<ReportAttachmentEntity> dealAttachmentList = reportService.getAttachmentInfo(dealAttachment); List<ReportAttachmentEntity> dealAttachmentList = reportService.getAttachmentInfo(dealAttachment);
//业务类型
String supplementTypeStr = ""; //跟据id查询举报信息
if (StringUtils.isNotBlank(reportEntity.getSupplementType())) { ReportEntity reportEntity1 = reportService.get(reportEntity.getId());
String[] supplementTypes = {"营销", "工程", "成本", "招采", "财务", "法务", "行政", "人力", "开发", "研发", "投资", "其他", "物业管理", "文旅管理","商业"}; /*封装类型 类别数据*/
String typeNumber[] = reportEntity.getSupplementType().split(","); String SupplementTypeStr="";
for (int i = 0; i < typeNumber.length; i++) { String SupplementCategoryStr="";
supplementTypeStr += supplementTypes[Integer.valueOf(typeNumber[i]) - 1] + ","; /*遍历集合*/
if(StringUtils.isNoneBlank(reportEntity1.getSupplementType())){
String[] getSupplementTypeStr = reportEntity1.getSupplementType().split(",");
for (String str:getSupplementTypeStr) {
CtBbtcBusType ctBbtcBusType = CtBbtcBusTypeService.get(str);
if(ctBbtcBusType!=null){
SupplementTypeStr = SupplementTypeStr + ctBbtcBusType.getName() + ",";
}else{
SupplementTypeStr = SupplementTypeStr + "--";
}
} }
supplementTypeStr = supplementTypeStr.substring(0, supplementTypeStr.length() - 1); reportEntity1.setSupplementType(SupplementTypeStr.substring( 0, SupplementTypeStr.length()-1));
} }
if(StringUtils.isNoneBlank(reportEntity1.getSupplementCategory())){
String[] getSupplementCategory = reportEntity1.getSupplementCategory().split(",");
for (String str:getSupplementCategory) {
CtBbtcBusCategory ctBbtcBusCategory = ctBbtcBusCategoryService.get(str);
if(ctBbtcBusCategory!=null){
SupplementCategoryStr = SupplementCategoryStr + ctBbtcBusCategory.getName() + ",";
}else{
SupplementCategoryStr = SupplementCategoryStr + "--";
}
}
reportEntity1.setSupplementCategory(SupplementCategoryStr.substring(0,SupplementCategoryStr.length()-1));
}
reportEntity.setDealPerson(reportEntity.getDealPersonName()); reportEntity.setDealPerson(reportEntity.getDealPersonName());
if (StringUtils.isBlank(reportEntity.getDealPersonName())) { if (StringUtils.isBlank(reportEntity.getDealPersonName())) {
reportEntity.setDealPerson(user.getName()); reportEntity.setDealPerson(user.getName());
...@@ -548,7 +630,7 @@ public class ReportController extends BaseController { ...@@ -548,7 +630,7 @@ public class ReportController extends BaseController {
model.addAttribute("page", page); model.addAttribute("page", page);
model.addAttribute("user", userEntity); model.addAttribute("user", userEntity);
model.addAttribute("userName", user.getName()); model.addAttribute("userName", user.getName());
model.addAttribute("report", reportEntity); model.addAttribute("report", reportEntity1);
model.addAttribute("companyList", companyList); model.addAttribute("companyList", companyList);
model.addAttribute("officeList", officeList); model.addAttribute("officeList", officeList);
model.addAttribute("positionList", positionList); model.addAttribute("positionList", positionList);
...@@ -556,7 +638,6 @@ public class ReportController extends BaseController { ...@@ -556,7 +638,6 @@ public class ReportController extends BaseController {
model.addAttribute("reportAttachmentList", reportAttachmentList); model.addAttribute("reportAttachmentList", reportAttachmentList);
model.addAttribute("supplementAttachmentList", supplementAttachmentList); model.addAttribute("supplementAttachmentList", supplementAttachmentList);
model.addAttribute("dealAttachmentList", dealAttachmentList); model.addAttribute("dealAttachmentList", dealAttachmentList);
model.addAttribute("supplementTypeStr", supplementTypeStr);
return "modules/report/reportTrack"; return "modules/report/reportTrack";
} }
...@@ -570,6 +651,9 @@ public class ReportController extends BaseController { ...@@ -570,6 +651,9 @@ public class ReportController extends BaseController {
@RequestMapping(value = "addTrack") @RequestMapping(value = "addTrack")
public String addTrack(ReportEntity reportEntity, HttpServletRequest request, Model public String addTrack(ReportEntity reportEntity, HttpServletRequest request, Model
model, RedirectAttributes redirectAttributes) { model, RedirectAttributes redirectAttributes) {
System.out.println(reportEntity.getSupplementCategory()+"===传参=======================");
System.out.println(reportEntity.getSupplementType()+"=====传参=====================");
//判断登录人的角色 //判断登录人的角色
User user = UserUtils.getUser(); User user = UserUtils.getUser();
String isAdmin = reportService.checkRole(user); String isAdmin = reportService.checkRole(user);
...@@ -856,48 +940,45 @@ public class ReportController extends BaseController { ...@@ -856,48 +940,45 @@ public class ReportController extends BaseController {
Page<ReportEntity> page = reportService.getChooseReportPage(new Page<ReportEntity>(request, response), reportEntity); Page<ReportEntity> page = reportService.getChooseReportPage(new Page<ReportEntity>(request, response), reportEntity);
List<ReportEntity> reportlist = page.getList(); List<ReportEntity> reportlist = page.getList();
for (ReportEntity report : reportlist) { for (ReportEntity reportEntity1:reportlist) {
String typeStr = "";
if (StringUtils.isNoneBlank(report.getSupplementType())) { /*封装类型 类别数据*/
String[] types = report.getSupplementType().split(","); String SupplementTypeStr = "";
for (String value : types) { String SupplementCategoryStr = "";
/*遍历集合*/
if (StringUtils.isNoneBlank(reportEntity1.getSupplementType())) {
String[] getSupplementTypeStr = reportEntity1.getSupplementType().split(",");
for (String str : getSupplementTypeStr) {
CtBbtcBusType ctBbtcBusType = CtBbtcBusTypeService.get(str);
if (ctBbtcBusType != null) {
SupplementTypeStr = SupplementTypeStr + ctBbtcBusType.getName() + ",";
} else {
SupplementTypeStr = SupplementTypeStr + "--";
}
if (value.equals("1")) { }
value = "营销"; reportEntity1.setSupplementType(SupplementTypeStr.substring( 0, SupplementTypeStr.length()-1));
} else if (value.equals("2")) { }
value = "工程";
} else if (value.equals("3")) {
value = "成本"; if (StringUtils.isNoneBlank(reportEntity1.getSupplementCategory())) {
} else if (value.equals("4")) { String[] getSupplementCategory = reportEntity1.getSupplementCategory().split(",");
value = "招采"; for (String str : getSupplementCategory) {
} else if (value.equals("5")) { CtBbtcBusCategory ctBbtcBusCategory = ctBbtcBusCategoryService.get(str);
value = "财务"; if (ctBbtcBusCategory != null) {
} else if (value.equals("6")) { SupplementCategoryStr = SupplementCategoryStr + ctBbtcBusCategory.getName() + ",";
value = "法务"; } else {
} else if (value.equals("7")) { SupplementCategoryStr = SupplementCategoryStr + "--";
value = "行政";
} else if (value.equals("8")) {
value = "人力";
} else if (value.equals("9")) {
value = "开发";
} else if (value.equals("10")) {
value = "研发";
} else if (value.equals("11")) {
value = "投资";
} else if (value.equals("15")) {
value = "商业";
} else if (value.equals("12")) {
value = "其他";
} else if (value.equals("13")) {
value = "物业管理";
} else if (value.equals("14")) {
value = "文旅管理";
} }
typeStr = typeStr + value + ",";
} }
report.setSupplementType(typeStr.substring(0, typeStr.length() - 1)); reportEntity1.setSupplementCategory(SupplementCategoryStr.substring(0,SupplementCategoryStr.length()-1));
} }
} }
page.setList(reportlist); page.setList(reportlist);
model.addAttribute("page", page); model.addAttribute("page", page);
model.addAttribute("userPage", userPage); model.addAttribute("userPage", userPage);
......
...@@ -45,6 +45,7 @@ public class User extends DataEntity<User> { ...@@ -45,6 +45,7 @@ public class User extends DataEntity<User> {
private String officeName; // 部门长名称 private String officeName; // 部门长名称
private String oldLoginName;// 原登录名 private String oldLoginName;// 原登录名
private String newPassword; // 新密码 private String newPassword; // 新密码
private String supplementGroup; //所属集团
private String area;//所属区域 private String area;//所属区域
private String oldLoginIp; // 上次登陆IP private String oldLoginIp; // 上次登陆IP
private Date oldLoginDate; // 上次登陆日期 private Date oldLoginDate; // 上次登陆日期
...@@ -53,6 +54,13 @@ public class User extends DataEntity<User> { ...@@ -53,6 +54,13 @@ public class User extends DataEntity<User> {
private List<Role> roleList = Lists.newArrayList(); // 拥有角色列表 private List<Role> roleList = Lists.newArrayList(); // 拥有角色列表
public String getSupplementGroup() {
return supplementGroup;
}
public void setSupplementGroup(String supplementGroup) {
this.supplementGroup = supplementGroup;
}
private Position position; //职位 private Position position; //职位
private String devision; //组织 private String devision; //组织
......
...@@ -69,6 +69,16 @@ public class WorkbenchBean { ...@@ -69,6 +69,16 @@ public class WorkbenchBean {
private int land = 0; private int land = 0;
//区域 //区域
private String supplementGroup; /*所属集团*/
public String getSupplementGroup() {
return supplementGroup;
}
public void setSupplementGroup(String supplementGroup) {
this.supplementGroup = supplementGroup;
}
private String area; private String area;
//角色 //角色
private String userRoleName=""; private String userRoleName="";
......
...@@ -74,6 +74,8 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> { ...@@ -74,6 +74,8 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
List<HashMap> statusList = reportDao.getReportStatus(workbench); List<HashMap> statusList = reportDao.getReportStatus(workbench);
//举报状态 //举报状态
for (HashMap status : statusList) { for (HashMap status : statusList) {
/* System.out.println(status.get("report_status")+"==================================");
System.out.println(status.get("COUNT(report_status)")+"==================================");*/
if (StringUtils.isNotBlank((String) status.get("REPORT_STATUS"))) { if (StringUtils.isNotBlank((String) status.get("REPORT_STATUS"))) {
if ("1".equals(String.valueOf(status.get("REPORT_STATUS")))) { if ("1".equals(String.valueOf(status.get("REPORT_STATUS")))) {
//处理中 //处理中
...@@ -91,6 +93,7 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> { ...@@ -91,6 +93,7 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
} }
} }
workbench.setRepStatusTotal(workbench.getUnProcess() + workbench.getProcessing() + workbench.getProcessed() + workbench.getClosed()); workbench.setRepStatusTotal(workbench.getUnProcess() + workbench.getProcessing() + workbench.getProcessed() + workbench.getClosed());
List<HashMap> types = reportDao.getReportType(workbench); List<HashMap> types = reportDao.getReportType(workbench);
for (HashMap type : types) { for (HashMap type : types) {
//营销 //营销
...@@ -141,34 +144,34 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> { ...@@ -141,34 +144,34 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
} }
List<HashMap> totals = reportDao.getTotal(workbench); List<HashMap> totals = reportDao.getTotal(workbench);
for (HashMap total : totals) { for (HashMap total : totals) {
if (StringUtils.isNotBlank((String) total.get("REPORT_SOURCE"))) { if (StringUtils.isNotBlank((String) total.get("report_source"))) {
if ("web".equals((String) total.get("REPORT_SOURCE"))) { if ("web".equals((String) total.get("report_source"))) {
//官网 //官网
workbench.setWeb(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setWeb(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} else if ("oa".contains((String) total.get("REPORT_SOURCE"))) { } else if ("oa".contains((String) total.get("report_source"))) {
//融创oa //融创oa
workbench.setOa(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setOa(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} else if ("supplier".equals(String.valueOf(total.get("REPORT_SOURCE")))) { } else if ("supplier".equals(String.valueOf(total.get("report_source")))) {
//供应商 //供应商
workbench.setSupplier(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setSupplier(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} else if ("wechat".equals(String.valueOf(total.get("REPORT_SOURCE")))) { } else if ("wechat".equals(String.valueOf(total.get("report_source")))) {
//微信公众号 //微信公众号
workbench.setWeChat(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setWeChat(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} else if ("sunacE".equals(String.valueOf(total.get("REPORT_SOURCE")))) { } else if ("sunacE".equals(String.valueOf(total.get("report_source")))) {
//融E //融E
workbench.setSunacE(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setSunacE(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} else if ("offline".equals(String.valueOf(total.get("REPORT_SOURCE")))) { } else if ("offline".equals(String.valueOf(total.get("report_source")))) {
//线下扫码 //线下扫码
workbench.setOffline(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setOffline(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} else if ("tel".equals(String.valueOf(total.get("REPORT_SOURCE")))) { } else if ("tel".equals(String.valueOf(total.get("report_source")))) {
//电话 //电话
workbench.setPhone(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setPhone(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} else if ("email".equals((String) total.get("REPORT_SOURCE"))) { } else if ("email".equals((String) total.get("report_source"))) {
//邮件 //邮件
workbench.setEmail(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setEmail(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} else if ("visit".equals((String) total.get("REPORT_SOURCE"))) { } else if ("visit".equals((String) total.get("report_source"))) {
//来访 //来访
workbench.setVisit(Integer.valueOf(String.valueOf(total.get("COUNT(REPORT_SOURCE)")))); workbench.setVisit(Integer.valueOf(String.valueOf(total.get("COUNT(report_source)"))));
} }
} }
} }
...@@ -178,6 +181,8 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> { ...@@ -178,6 +181,8 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
} }
public List<ReportEntity> getRepList(WorkbenchBean benchBean) throws Exception { public List<ReportEntity> getRepList(WorkbenchBean benchBean) throws Exception {
return reportDao.getRepList(benchBean); List<ReportEntity> repList = reportDao.getRepList(benchBean);
System.out.println("大小:"+repList.size()+"==========================================");
return repList;
} }
} }
...@@ -3,7 +3,11 @@ package com.ejweb.modules.workbench.web; ...@@ -3,7 +3,11 @@ package com.ejweb.modules.workbench.web;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.ejweb.core.base.BaseController; import com.ejweb.core.base.BaseController;
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.CtBbtcBusType;
import com.ejweb.modules.report.entity.ReportEntity; import com.ejweb.modules.report.entity.ReportEntity;
import com.ejweb.modules.report.service.CtBbtcBusCategoryService;
import com.ejweb.modules.report.service.CtBbtcBusTypeService;
import com.ejweb.modules.report.service.ReportService; import com.ejweb.modules.report.service.ReportService;
import com.ejweb.modules.sys.entity.User; import com.ejweb.modules.sys.entity.User;
import com.ejweb.modules.sys.utils.UserUtils; import com.ejweb.modules.sys.utils.UserUtils;
...@@ -33,11 +37,22 @@ public class WorkbenchController extends BaseController { ...@@ -33,11 +37,22 @@ public class WorkbenchController extends BaseController {
@Autowired @Autowired
private ReportService reportService; private ReportService reportService;
@Autowired
private CtBbtcBusTypeService ctBbtcBusTypeService;
@Autowired
private CtBbtcBusCategoryService ctBbtcBusCategoryService;
private String selAreaTemp;//所选择的区域 private String selAreaTemp;//所选择的区域
@RequiresPermissions("workbench:view") @RequiresPermissions("workbench:view")
@RequestMapping(value = {"list", ""}) @RequestMapping(value = {"list", ""})
public String getWorkbench(Model model, WorkbenchBean bean) { public String getWorkbench(Model model, WorkbenchBean bean) {
System.out.println("处理状态:======================================"+bean.getProcessStatus());
WorkbenchBean workbench; WorkbenchBean workbench;
selAreaTemp=bean.getArea(); selAreaTemp=bean.getArea();
try { try {
...@@ -49,8 +64,47 @@ public class WorkbenchController extends BaseController { ...@@ -49,8 +64,47 @@ public class WorkbenchController extends BaseController {
bean.setProcessStatus("1"); bean.setProcessStatus("1");
} }
List<ReportEntity> repList = workbenchService.getRepList(bean); List<ReportEntity> repList = workbenchService.getRepList(bean);
/*封装类型 类别数据*/
for (ReportEntity report: repList ) {
String SupplementTypeStr="";
String SupplementCategoryStr="";
/*遍历集合*/
if(StringUtils.isNoneBlank(report.getSupplementType())){
String[] getSupplementTypeStr = report.getSupplementType().split(",");
for (String str:getSupplementTypeStr) {
CtBbtcBusType ctBbtcBusType = ctBbtcBusTypeService.get(str);
if(ctBbtcBusType!=null){
SupplementTypeStr = SupplementTypeStr + ctBbtcBusType.getName() + ",";
}else{
SupplementTypeStr = SupplementTypeStr + "--";
}
}
report.setSupplementType(SupplementTypeStr.substring( 0, SupplementTypeStr.length()-1));
}
if(StringUtils.isNoneBlank(report.getSupplementCategory())){
String[] getSupplementCategory = report.getSupplementCategory().split(",");
for (String str:getSupplementCategory) {
CtBbtcBusCategory ctBbtcBusCategory = ctBbtcBusCategoryService.get(str);
if(ctBbtcBusCategory!=null){
SupplementCategoryStr = SupplementCategoryStr + ctBbtcBusCategory.getName() + ",";
}else{
SupplementCategoryStr = SupplementCategoryStr + "--";
}
}
report.setSupplementCategory(SupplementCategoryStr.substring(0,SupplementCategoryStr.length()-1));
}
}
model.addAttribute("workbench", bean); model.addAttribute("workbench", bean);
model.addAttribute("repList", repList); model.addAttribute("repList", repList);
/*将这一类状态返回*/
model.addAttribute("reportStatus", bean.getProcessStatus());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
...@@ -64,15 +118,16 @@ public class WorkbenchController extends BaseController { ...@@ -64,15 +118,16 @@ public class WorkbenchController extends BaseController {
try { try {
User user = UserUtils.getUser(); User user = UserUtils.getUser();
bean = getWorkbenchByUser(user, bean); bean = getWorkbenchByUser(user, bean);
res.put("bench", bean); res.put("bench", bean);
//区域 //区域
res.put("area",bean.getArea()); res.put("area",bean.getArea());
//举报状态 //1.举报状态
res.put("unProcess", bean.getUnProcess()); res.put("unProcess", bean.getUnProcess());
res.put("processing", bean.getProcessing()); res.put("processing", bean.getProcessing());
res.put("processed", bean.getProcessed()); res.put("processed", bean.getProcessed());
res.put("closed", bean.getClosed()); res.put("closed", bean.getClosed());
//举报结果 //3.举报结果
res.put("unsettled", bean.getUnsettled()); res.put("unsettled", bean.getUnsettled());
res.put("resultNum", bean.getComplainNum()+bean.getInvalid()+bean.getVerified()+bean.getConfirmed()+bean.getUnreaListic()+bean.getTransfer()+bean.getClue()); //總數 res.put("resultNum", bean.getComplainNum()+bean.getInvalid()+bean.getVerified()+bean.getConfirmed()+bean.getUnreaListic()+bean.getTransfer()+bean.getClue()); //總數
res.put("complainNum", bean.getComplainNum()); //移交客诉 res.put("complainNum", bean.getComplainNum()); //移交客诉
...@@ -84,7 +139,7 @@ public class WorkbenchController extends BaseController { ...@@ -84,7 +139,7 @@ public class WorkbenchController extends BaseController {
res.put("clue", bean.getClue());//转为线索 res.put("clue", bean.getClue());//转为线索
res.put("startDate", bean.getStartDate()); res.put("startDate", bean.getStartDate());
res.put("endDate", bean.getEndDate()); res.put("endDate", bean.getEndDate());
//举报类型 //4.举报类型
res.put("sale", bean.getSale()); res.put("sale", bean.getSale());
res.put("project", bean.getProject()); res.put("project", bean.getProject());
res.put("cost", bean.getCost()); res.put("cost", bean.getCost());
...@@ -102,7 +157,7 @@ public class WorkbenchController extends BaseController { ...@@ -102,7 +157,7 @@ public class WorkbenchController extends BaseController {
res.put("businessManagement", bean.getBusinessManagement()); res.put("businessManagement", bean.getBusinessManagement());
res.put("startDate", bean.getStartDate()); res.put("startDate", bean.getStartDate());
res.put("endDate", bean.getEndDate()); res.put("endDate", bean.getEndDate());
//举报途径 //2.举报途径
res.put("weChat", bean.getWeChat()); res.put("weChat", bean.getWeChat());
res.put("web", bean.getWeb()); res.put("web", bean.getWeb());
res.put("sunacE", bean.getSunacE()); res.put("sunacE", bean.getSunacE());
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
a.number AS "number", a.number AS "number",
a.name AS "name", a.name AS "name",
a.type AS "type.id", a.type AS "type.id",
b.name AS "typeName" b.name AS "typeName",
a.ctBbtcGroup AS "ctBbtcGroup"
</sql> </sql>
<sql id="ctBbtcBusCategoryJoins"> <sql id="ctBbtcBusCategoryJoins">
...@@ -21,6 +22,15 @@ ...@@ -21,6 +22,15 @@
<include refid="ctBbtcBusCategoryJoins"/> <include refid="ctBbtcBusCategoryJoins"/>
WHERE a.id = #{id} WHERE a.id = #{id}
</select> </select>
<select id="getByTypeId" resultType="CtBbtcBusCategory">
SELECT
<include refid="ctBbtcBusCategoryColumns"/>
FROM ct_bbtc_bus_category a
<include refid="ctBbtcBusCategoryJoins"/>
WHERE a.type = #{typeId}
</select>
<select id="findList" resultType="CtBbtcBusCategory"> <select id="findList" resultType="CtBbtcBusCategory">
SELECT SELECT
...@@ -67,12 +77,14 @@ ...@@ -67,12 +77,14 @@
id, id,
number, number,
name, name,
type type,
ctBbtcGroup
) VALUES ( ) VALUES (
#{id}, #{id},
#{number}, #{number},
#{name}, #{name},
#{type.id} #{type.id},
#{ctBbtcGroup}
) )
</insert> </insert>
...@@ -80,7 +92,8 @@ ...@@ -80,7 +92,8 @@
UPDATE ct_bbtc_bus_category SET UPDATE ct_bbtc_bus_category SET
number = #{number}, number = #{number},
name = #{name}, name = #{name},
type = #{type.id} type = #{type.id},
ctBbtcGroup=#{ctBbtcGroup}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
......
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
r.supplement_department AS "supplementDepartment", r.supplement_department AS "supplementDepartment",
r.supplement_informant AS "supplementInformant", r.supplement_informant AS "supplementInformant",
r.supplement_title AS "supplementTitle", r.supplement_title AS "supplementTitle",
r.supplement_type AS "supplementType", /*r.supplement_type AS "supplementType",*/
r.transfer_department AS "transferDepartment", ct.name AS "transferDepartment",
r.supplement_area AS "supplementArea", r.transferGroup AS "transferGroup",
/*r.supplement_area AS "supplementArea",*/
r.supplement_project AS "supplementProject", r.supplement_project AS "supplementProject",
r.supplement_content AS "supplementContent", r.supplement_content AS "supplementContent",
r.deal_person_name AS "dealPersonName", r.deal_person_name AS "dealPersonName",
...@@ -43,7 +44,12 @@ ...@@ -43,7 +44,12 @@
r.report_site AS "site", r.report_site AS "site",
r.report_qq AS "qq", r.report_qq AS "qq",
r.report_weixin AS "weixin", r.report_weixin AS "weixin",
r.report_ifClue AS "ifClue" r.report_ifClue AS "ifClue" ,
r.supplement_group AS "supplementGroup",
r.supplement_category AS "supplementCategory",
r.supplement_type AS "supplementType"
</sql> </sql>
...@@ -55,8 +61,18 @@ ...@@ -55,8 +61,18 @@
SELECT SELECT
<include refid="reportColumns"/> <include refid="reportColumns"/>
,su.name AS "transferName" ,su.name AS "transferName"
,cr.name AS "supplementArea"
FROM ct_bbtc_report r FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
/* LEFT JOIN ct_bbtc_bus_type CT
ON R.supplement_group = CT.supplement_group
LEFT JOIN ct_bbtc_bus_category CC
ON R.supplement_type = CC.type*/
WHERE r.id = #{id} WHERE r.id = #{id}
</select> </select>
...@@ -64,6 +80,7 @@ ...@@ -64,6 +80,7 @@
SELECT SELECT
<include refid="reportColumns"/> <include refid="reportColumns"/>
,su.name AS "transferName" ,su.name AS "transferName"
,cr.name AS "supplementArea"
FROM CT_BBTC_REPORT R FROM CT_BBTC_REPORT R
LEFT JOIN CT_BBTC_SYS_USER SU LEFT JOIN CT_BBTC_SYS_USER SU
ON R.CREATE_BY = SU.ID ON R.CREATE_BY = SU.ID
...@@ -71,6 +88,11 @@ ...@@ -71,6 +88,11 @@
ON UR.USER_ID = SU.ID ON UR.USER_ID = SU.ID
LEFT JOIN CT_BBTC_SYS_ROLE RL LEFT JOIN CT_BBTC_SYS_ROLE RL
ON RL.ID = UR.ROLE_ID ON RL.ID = UR.ROLE_ID
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
<where> <where>
1 = 1 1 = 1
<if test="isAdmin == null and isFzAdmin == null"> <if test="isAdmin == null and isFzAdmin == null">
...@@ -138,9 +160,18 @@ ...@@ -138,9 +160,18 @@
<if test="dbName == 'mssql'">'%'+#{supplementInformant}+'%'</if> <if test="dbName == 'mssql'">'%'+#{supplementInformant}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{supplementInformant}, '%')</if> <if test="dbName == 'mysql'">CONCAT('%', #{supplementInformant}, '%')</if>
</if> </if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="supplementArea != null and supplementArea != ''"> <if test="supplementArea != null and supplementArea != ''">
AND r.supplement_area = #{supplementArea} AND r.supplement_area = #{supplementArea}
</if> </if>
<if test="supplementCategory != null and supplementCategory != ''">
AND r.supplement_category LIKE
<if test="dbName == 'oracle'">'%'||#{supplementCategory}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{supplementCategory}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{supplementCategory}, '%')</if>
</if>
<if test="reportSource != null and reportSource != ''"> <if test="reportSource != null and reportSource != ''">
AND r.report_source = #{reportSource} AND r.report_source = #{reportSource}
</if> </if>
...@@ -162,15 +193,66 @@ ...@@ -162,15 +193,66 @@
ORDER BY r.update_date DESC ORDER BY r.update_date DESC
</select> </select>
<select id="findListByCheck" parameterType="ReportEntity" resultType="ReportEntity">
SELECT
<include refid="reportColumns"/>
,su.name AS "transferName"
,cr.name AS "supplementArea"
FROM CT_BBTC_REPORT R
LEFT JOIN CT_BBTC_SYS_USER SU
ON R.CREATE_BY = SU.ID
LEFT JOIN CT_BBTC_SYS_USER2ROLE UR
ON UR.USER_ID = SU.ID
LEFT JOIN CT_BBTC_SYS_ROLE RL
ON RL.ID = UR.ROLE_ID
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
<where>
1 = 1
<if test="supplementType != null and supplementType != ''">
AND r.supplement_type LIKE
<if test="dbName == 'oracle'">'%'||#{supplementType}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{supplementType}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{supplementType}, '%')</if>
</if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="supplementArea != null and supplementArea != ''">
AND r.supplement_area = #{supplementArea}
</if>
<if test="supplementCategory != null and supplementCategory != ''">
AND r.supplement_category LIKE
<if test="dbName == 'oracle'">'%'||#{supplementCategory}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{supplementCategory}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{supplementCategory}, '%')</if>
</if>
</where>
</select>
<select id="findQyList" parameterType="ReportEntity" resultType="ReportEntity"> <select id="findQyList" parameterType="ReportEntity" resultType="ReportEntity">
SELECT SELECT
<include refid="reportColumns"/> <include refid="reportColumns"/>
,su.name AS "transferName" ,su.name AS "transferName"
,cr.name AS "supplementArea"
FROM ct_bbtc_report r FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_sys_user su ON r.create_by = su.id LEFT JOIN ct_bbtc_sys_user su ON r.create_by = su.id
LEFT JOIN CT_BBTC_SYS_USER2ROLE UR ON UR.USER_ID = su.ID LEFT JOIN CT_BBTC_SYS_USER2ROLE UR ON UR.USER_ID = su.ID
LEFT JOIN CT_BBTC_SYS_ROLE RL LEFT JOIN CT_BBTC_SYS_ROLE RL
ON RL.ID = UR.ROLE_ID ON RL.ID = UR.ROLE_ID
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
/* LEFT JOIN ct_bbtc_bus_type CT
ON R.supplement_group = CT.supplement_group
LEFT JOIN ct_bbtc_bus_category CC
ON R.supplement_type = CC.type*/
<where> <where>
1 = 1 1 = 1
<if test="isAdmin == null and isFzAdmin == null"> <if test="isAdmin == null and isFzAdmin == null">
...@@ -256,9 +338,21 @@ ...@@ -256,9 +338,21 @@
<if test="dbName == 'mssql'">'%'+#{supplementInformant}+'%'</if> <if test="dbName == 'mssql'">'%'+#{supplementInformant}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{supplementInformant}, '%')</if> <if test="dbName == 'mysql'">CONCAT('%', #{supplementInformant}, '%')</if>
</if> </if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="supplementArea != null and supplementArea != ''"> <if test="supplementArea != null and supplementArea != ''">
AND r.supplement_area = #{supplementArea} AND r.supplement_area = #{supplementArea}
</if> </if>
<if test="supplementCategory != null and supplementCategory != ''">
AND r.supplement_category = #{supplementCategory}
</if>
<if test="supplementCategory != null and supplementCategory != ''">
AND r.supplement_category LIKE
<if test="dbName == 'oracle'">'%'||#{supplementCategory}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{supplementCategory}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{supplementCategory}, '%')</if>
</if>
<if test="reportSource != null and reportSource != ''"> <if test="reportSource != null and reportSource != ''">
AND r.report_source = #{reportSource} AND r.report_source = #{reportSource}
</if> </if>
...@@ -283,7 +377,16 @@ ...@@ -283,7 +377,16 @@
<select id="findAllList" parameterType="ReportEntity" resultType="ReportEntity"> <select id="findAllList" parameterType="ReportEntity" resultType="ReportEntity">
SELECT SELECT
<include refid="reportColumns"/> <include refid="reportColumns"/>
,cr.name AS "supplementArea"
FROM ct_bbtc_report r FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
/* LEFT JOIN ct_bbtc_bus_type CT
ON R.supplement_group = CT.supplement_group
LEFT JOIN ct_bbtc_bus_category CC
ON R.supplement_type = CC.type*/
<choose> <choose>
<when test="page !=null and page.orderBy != null and page.orderBy != ''"> <when test="page !=null and page.orderBy != null and page.orderBy != ''">
ORDER BY ${page.orderBy} ORDER BY ${page.orderBy}
...@@ -399,6 +502,7 @@ ...@@ -399,6 +502,7 @@
UPDATE ct_bbtc_report SET UPDATE ct_bbtc_report SET
supplement_informant = #{supplementInformant}, supplement_informant = #{supplementInformant},
supplement_type = #{supplementType}, supplement_type = #{supplementType},
transferGroup=#{transferGroup},
transfer_department=#{transferDepartment}, transfer_department=#{transferDepartment},
supplement_area = #{supplementArea}, supplement_area = #{supplementArea},
supplement_project = #{supplementProject}, supplement_project = #{supplementProject},
...@@ -410,7 +514,9 @@ ...@@ -410,7 +514,9 @@
report_ifClue = #{ifClue}, report_ifClue = #{ifClue},
deal_result = #{dealResult}, deal_result = #{dealResult},
update_by = #{updateBy.id}, update_by = #{updateBy.id},
update_date = #{updateDate} update_date = #{updateDate},
supplement_group=#{supplementGroup},
supplement_category=#{supplementCategory}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
...@@ -594,8 +700,11 @@ ...@@ -594,8 +700,11 @@
<select id="getReportStatus" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" <select id="getReportStatus" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean"
resultType="java.util.HashMap"> resultType="java.util.HashMap">
select report_status,COUNT(report_status) select REPORT_STATUS,COUNT(REPORT_STATUS)
FROM ct_bbtc_report FROM ct_bbtc_report r
/* LEFT JOIN ct_bbtc_region CR
ON R.supplement_group = CR.supplement_group*/
WHERE 1=1 WHERE 1=1
<if test="isAdmin != null"> <if test="isAdmin != null">
AND exchange_after_user = #{isAdmin} AND exchange_after_user = #{isAdmin}
...@@ -610,16 +719,22 @@ ...@@ -610,16 +719,22 @@
</if> </if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if> <if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if> </if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="area != null and area !=''"> <if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area} AND r.supplement_area=#{area}
</if> </if>
GROUP BY report_status GROUP BY report_status
</select> </select>
<select id="getReportResult" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" <select id="getReportResult" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean"
resultType="java.util.HashMap"> resultType="java.util.HashMap">
select deal_result,COUNT(deal_result) select DEAL_RESULT,COUNT(DEAL_RESULT)
FROM ct_bbtc_report FROM ct_bbtc_report r
/* LEFT JOIN ct_bbtc_region CR
ON R.supplement_group = CR.supplement_group*/
WHERE 1 = 1 WHERE 1 = 1
<if test="isAdmin != null"> <if test="isAdmin != null">
AND exchange_after_user = #{isAdmin} AND exchange_after_user = #{isAdmin}
...@@ -634,15 +749,21 @@ ...@@ -634,15 +749,21 @@
</if> </if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if> <if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if> </if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="area != null and area !=''"> <if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area} AND r.supplement_area=#{area}
</if> </if>
GROUP BY deal_result GROUP BY deal_result
</select> </select>
<select id="getTotal" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="java.util.HashMap"> <select id="getTotal" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="java.util.HashMap">
select report_source,COUNT(report_source) select report_source,COUNT(report_source)
FROM ct_bbtc_report FROM ct_bbtc_report r
/* LEFT JOIN ct_bbtc_region CR
ON R.supplement_group = CR.supplement_group*/
WHERE 1=1 WHERE 1=1
<if test="isAdmin != null"> <if test="isAdmin != null">
AND exchange_after_user = #{isAdmin} AND exchange_after_user = #{isAdmin}
...@@ -657,8 +778,12 @@ ...@@ -657,8 +778,12 @@
</if> </if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if> <if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if> </if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="area != null and area !=''"> <if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area} AND r.supplement_area=#{area}
</if> </if>
GROUP BY report_source GROUP BY report_source
</select> </select>
...@@ -696,7 +821,9 @@ ...@@ -696,7 +821,9 @@
"hotelManagement", "hotelManagement",
SUM(CASE WHEN supplement_type||',' LIKE '15,%' OR supplement_type||',' LIKE '%,15,%' THEN 1 ELSE 0 END) AS SUM(CASE WHEN supplement_type||',' LIKE '15,%' OR supplement_type||',' LIKE '%,15,%' THEN 1 ELSE 0 END) AS
"businessManagement" "businessManagement"
FROM ct_bbtc_report FROM ct_bbtc_report r
/* LEFT JOIN ct_bbtc_region CR
ON R.supplement_group = CR.supplement_group*/
WHERE 1=1 WHERE 1=1
<if test="isAdmin != null"> <if test="isAdmin != null">
AND exchange_after_user = #{isAdmin} AND exchange_after_user = #{isAdmin}
...@@ -711,12 +838,16 @@ ...@@ -711,12 +838,16 @@
</if> </if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if> <if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if> </if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="area != null and area !=''"> <if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area} AND r.supplement_area=#{area}
</if> </if>
</select> </select>
<select id="getRepList" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="ReportEntity"> <select id="getRepList" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="com.ejweb.modules.report.entity.ReportEntity">
SELECT * FROM( SELECT * FROM(
SELECT SELECT
r.id AS "id", r.id AS "id",
...@@ -734,7 +865,8 @@ ...@@ -734,7 +865,8 @@
r.supplement_informant AS "supplementInformant", r.supplement_informant AS "supplementInformant",
r.supplement_title AS "supplementTitle", r.supplement_title AS "supplementTitle",
r.supplement_type AS "supplementType", r.supplement_type AS "supplementType",
r.supplement_area AS "supplementArea", r.supplement_group AS "supplementGroup",
r.supplement_category AS "supplementCategory",
r.supplement_project AS "supplementProject", r.supplement_project AS "supplementProject",
r.supplement_content AS "supplementContent", r.supplement_content AS "supplementContent",
r.deal_person_name AS "dealPersonName", r.deal_person_name AS "dealPersonName",
...@@ -746,8 +878,16 @@ ...@@ -746,8 +878,16 @@
r.create_date AS "createDate", r.create_date AS "createDate",
r.update_by AS "updateBy", r.update_by AS "updateBy",
r.update_date AS "updateDate" r.update_date AS "updateDate"
,cr.name AS "supplementArea"
FROM ct_bbtc_report r FROM ct_bbtc_report r
WHERE r.report_status = #{processStatus} LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
<where>
r.report_status = #{processStatus}
<if test="isAdmin != null"> <if test="isAdmin != null">
AND r.exchange_after_user = #{isAdmin} AND r.exchange_after_user = #{isAdmin}
</if> </if>
...@@ -761,12 +901,19 @@ ...@@ -761,12 +901,19 @@
</if> </if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if> <if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if> </if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="area != null and area !=''"> <if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area} AND r.supplement_area=#{area}
</if> </if>
</where>
order by r.create_date desc order by r.create_date desc
) ) AS W
WHERE
<if test="dbName == 'oracle'">rownum &lt;= 10</if> <if test="dbName == 'oracle'">rownum &lt;= 10</if>
<if test="dbName == 'mysql'">limit 0,10</if> <if test="dbName == 'mysql'">limit 0,10</if>
</select> </select>
...@@ -782,23 +929,40 @@ ...@@ -782,23 +929,40 @@
r.report_status AS "reportStatus", r.report_status AS "reportStatus",
r.supplement_title AS "supplementTitle", r.supplement_title AS "supplementTitle",
r.supplement_type AS "supplementType", r.supplement_type AS "supplementType",
r.supplement_area AS "supplementArea", r.supplement_group AS "supplementGroup",
r.supplement_category AS "supplementCategory",
r.supplement_department AS "supplementDepartment", r.supplement_department AS "supplementDepartment",
r.supplement_informant AS "supplementInformant", r.supplement_informant AS "supplementInformant",
r.deal_person_name AS "dealPersonName", r.deal_person_name AS "dealPersonName",
r.deal_result AS "dealResult", r.deal_result AS "dealResult",
r.exchange_type AS "exchangeType", r.exchange_type AS "exchangeType",
su.name AS "transferName" su.name AS "transferName"
,cr.name AS "supplementArea"
FROM ct_bbtc_report r FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
<where> <where>
1 = 1 1 = 1
<if test="exchangeAfterUser != null and exchangeAfterUser != ''"> <if test="exchangeAfterUser != null and exchangeAfterUser != ''">
AND r.exchange_after_user = #{exchangeAfterUser} AND r.exchange_after_user = #{exchangeAfterUser}
</if> </if>
<!-- <if test="dealPersonName != null and dealPersonName != ''">
AND r.deal_person_name LIKE
'%${dealPersonName}%'
/* CONCAT('%', #{dealPersonName}, '%')*/
'%'#{dealPersonName}'%'
</if>-->
<if test="dealPersonName != null and dealPersonName != ''"> <if test="dealPersonName != null and dealPersonName != ''">
AND r.deal_person_name LIKE AND r.deal_person_name LIKE
'%'||#{dealPersonName}||'%' <if test="dbName == 'oracle'">'%'||#{dealPersonName}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{dealPersonName}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{dealPersonName}, '%')</if>
</if> </if>
</where> </where>
ORDER BY r.update_date DESC ORDER BY r.update_date DESC
...@@ -850,7 +1014,11 @@ ...@@ -850,7 +1014,11 @@
<select id="getTotalNum" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="Integer"> <select id="getTotalNum" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="Integer">
SELECT count(*) AS "totalCount" SELECT count(*) AS "totalCount"
FROM ct_bbtc_report FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
WHERE 1 = 1 WHERE 1 = 1
<if test="isAdmin != null"> <if test="isAdmin != null">
AND exchange_after_user = #{isAdmin} AND exchange_after_user = #{isAdmin}
...@@ -865,8 +1033,12 @@ ...@@ -865,8 +1033,12 @@
</if> </if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if> <if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if> </if>
<if test="supplementGroup != null and supplementGroup != ''">
AND r.supplement_group = #{supplementGroup}
</if>
<if test="area != null and area !=''"> <if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area} AND r.supplement_area=#{area}
</if> </if>
</select> </select>
......
...@@ -247,7 +247,8 @@ ...@@ -247,7 +247,8 @@
remarks, remarks,
login_flag, login_flag,
photo, photo,
del_flag del_flag,
supplement_group
) VALUES ( ) VALUES (
#{id}, #{id},
#{company.id}, #{company.id},
...@@ -268,7 +269,9 @@ ...@@ -268,7 +269,9 @@
#{remarks}, #{remarks},
#{loginFlag}, #{loginFlag},
#{photo}, #{photo},
#{delFlag} #{delFlag},
#{supplementGroup}
) )
</insert> </insert>
<insert id="insertOfficeName"> <insert id="insertOfficeName">
...@@ -300,7 +303,8 @@ ...@@ -300,7 +303,8 @@
update_date = #{updateDate}, update_date = #{updateDate},
remarks = #{remarks}, remarks = #{remarks},
login_flag = #{loginFlag}, login_flag = #{loginFlag},
photo = #{photo} photo = #{photo},
supplement_group=#{supplementGroup}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
......
...@@ -23,6 +23,38 @@ ...@@ -23,6 +23,38 @@
} }
}); });
}); });
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 data2 = returnedData.ctBbtcBusTypeList;
// console.log(data1[0].name);
// console.log(data2[0].name);
var selectNode = $("#supplementType");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
if (data2 != '') {
console.log(data2[0].name);
var slsb=document.getElementById("supplementType");
for (var i = 0;i < data2.length;i++){
slsb.append(new Option(data2[i].name,data2[i].id));
}
}
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择被举报集团', 'warning');
}
}
</script> </script>
</head> </head>
<body> <body>
...@@ -48,12 +80,23 @@ ...@@ -48,12 +80,23 @@
</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">
<form:select onchange="getRegion(value)" path="ctBbtcGroup" class="input-xlarge required">
<form:option value="">请选择</form:option>
<form:options items="${fns:getDictList('supplement_group')}" itemLabel="label" itemValue="id"
htmlEscape="false"/>
</form:select>
<%--<form:input path="type" htmlEscape="false" maxlength="64" class="input-xlarge "/>--%>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<div class="control-group">
<label class="control-label">所属业务类型:</label>
<div class="controls"> <div class="controls">
<form:select onchange="resetPageNo();" path="type.id" class="input-xlarge required"> <form:select onchange="resetPageNo();" path="type.id" class="input-xlarge required" id="supplementType" >
<form:option value="">请选择</form:option> <form:option value="">请选择</form:option>
<form:options items="${ctBbtcBusTypeList}" itemLabel="name" itemValue="id" </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>
</div> </div>
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
<tr> <tr>
<th>业务类别编码</th> <th>业务类别编码</th>
<th>业务类别名称</th> <th>业务类别名称</th>
<th>所属集团</th>
<th>所属业务类型</th> <th>所属业务类型</th>
<shiro:hasPermission name="report:ctBbtcBusCategory:edit"><th>操作</th></shiro:hasPermission> <shiro:hasPermission name="report:ctBbtcBusCategory:edit"><th>操作</th></shiro:hasPermission>
</tr> </tr>
...@@ -51,6 +52,14 @@ ...@@ -51,6 +52,14 @@
<td> <td>
${ctBbtcBusCategory.name} ${ctBbtcBusCategory.name}
</td> </td>
<td align="center">
<c:if test="${ctBbtcBusCategory.ctBbtcGroup eq '3437402691677202102'}">集团本部</c:if>
<c:if test="${ctBbtcBusCategory.ctBbtcGroup eq '3510129313047280678'}">区域集团</c:if>
<c:if test="${ctBbtcBusCategory.ctBbtcGroup eq '3565898923067676254'}">服务集团</c:if>
<c:if test="${ctBbtcBusCategory.ctBbtcGroup eq '3806696792996264972'}">文化集团</c:if>
<c:if test="${ctBbtcBusCategory.ctBbtcGroup eq '3770618512934949260'}">文旅集团</c:if>
<c:if test="${ctBbtcBusCategory.ctBbtcGroup eq null}">--</c:if>
</td>
<td> <td>
${ctBbtcBusCategory.typeName} ${ctBbtcBusCategory.typeName}
</td> </td>
......
...@@ -115,11 +115,13 @@ ...@@ -115,11 +115,13 @@
<th>选择</th> <th>选择</th>
<th>ID</th> <th>ID</th>
<th>标题</th> <th>标题</th>
<th>业务类型</th> <th >所属集团</th>
<th >所属区域</th>
<th >业务类型</th>
<th >业务类别</th>
<th>被举报项目/部门</th> <th>被举报项目/部门</th>
<th>举报人</th> <th>举报人</th>
<th>举报人电话</th> <th>举报人电话</th>
<th>区域</th>
<th>被举报人</th> <th>被举报人</th>
<th>举报时间</th> <th>举报时间</th>
<th>状态</th> <th>状态</th>
...@@ -136,25 +138,22 @@ ...@@ -136,25 +138,22 @@
<td><input type="checkbox" value="${report.id}"></td> <td><input type="checkbox" value="${report.id}"></td>
<td></td> <td></td>
<td>${report.supplementTitle}</td> <td>${report.supplementTitle}</td>
<td> <td align="center">
${report.supplementType} <c:if test="${report.supplementGroup eq '3437402691677202102'}">集团本部</c:if>
<c:if test="${report.supplementGroup eq '3510129313047280678'}">区域集团</c:if>
<c:if test="${report.supplementGroup eq '3565898923067676254'}">服务集团</c:if>
<c:if test="${report.supplementGroup eq '3806696792996264972'}">文化集团</c:if>
<c:if test="${report.supplementGroup eq '3770618512934949260'}">文旅集团</c:if>
<c:if test="${report.supplementGroup eq null}">--</c:if>
</td> </td>
<td align="center">${report.supplementArea}</td>
<td align="center">${report.supplementType}</td>
<td align="center">${report.supplementCategory}</td>
<td>${report.reportProject}/${report.supplementDepartment}</td> <td>${report.reportProject}/${report.supplementDepartment}</td>
<td>${report.reportPersonName}</td> <td>${report.reportPersonName}</td>
<td>${report.reportPersonTel}</td> <td>${report.reportPersonTel}</td>
<td> <td>
<c:if test="${report.supplementArea eq 'North China'}">华北区域公司</c:if>
<c:if test="${report.supplementArea eq 'BeiJing'}">北京区域公司</c:if>
<c:if test="${report.supplementArea eq 'ShangHai'}">上海区域公司</c:if>
<c:if test="${report.supplementArea eq 'SouthWest'}">西南区域公司</c:if>
<c:if test="${report.supplementArea eq 'SouthEast'}">东南区域公司</c:if>
<c:if test="${report.supplementArea eq 'Central China'}">华中区域公司</c:if>
<c:if test="${report.supplementArea eq 'GuangShen'}">广深区域公司</c:if>
<c:if test="${report.supplementArea eq 'Hainan'}">海南区域公司</c:if>
<c:if test="${report.supplementArea eq 'Group'}">集团本部</c:if>
<c:if test="${report.supplementArea eq null}">--</c:if>
</td>
<td>
<c:if test="${report.supplementInformant eq null}">--</c:if> <c:if test="${report.supplementInformant eq null}">--</c:if>
<c:if test="${report.supplementInformant ne null}">${report.supplementInformant}</c:if> <c:if test="${report.supplementInformant ne null}">${report.supplementInformant}</c:if>
</td> </td>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
}); });
var supplementArea = "${report.supplementArea}"; var supplementArea = "${report.supplementArea}";
if (supplementArea == "North China") { /* if (supplementArea == "North China") {
supplementArea = "华北区域公司"; supplementArea = "华北区域公司";
} else if (supplementArea == "BeiJing") { } else if (supplementArea == "BeiJing") {
supplementArea = "北京区域公司"; supplementArea = "北京区域公司";
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
supplementArea = "集团本部"; supplementArea = "集团本部";
} else if (supplementArea == "PropertyGroup") { } else if (supplementArea == "PropertyGroup") {
supplementArea = "物业集团"; supplementArea = "物业集团";
} }*/
$("#supplementArea").val(supplementArea); $("#supplementArea").val(supplementArea);
var dealResult = "${report.dealResult}"; var dealResult = "${report.dealResult}";
...@@ -307,6 +307,26 @@ ...@@ -307,6 +307,26 @@
</div> </div>
<c:if test="${report.reportStatus ne '0'}"> <c:if test="${report.reportStatus ne '0'}">
<span class="title">举报信息补充</span> <span class="title">举报信息补充</span>
<div class="control-group">
<label class="control-label">所属集团:</label>
<div class="controls">
<c:if test="${report.supplementGroup eq '3437402691677202102'}"><input type="text" id="supplementGroup" value="集团本部" maxlength="200"></c:if>
<c:if test="${report.supplementGroup eq '3510129313047280678'}"><input type="text" id="supplementGroup" value="区域集团" maxlength="200"></c:if>
<c:if test="${report.supplementGroup eq '3565898923067676254'}"><input type="text" id="supplementGroup" value="服务集团" maxlength="200"></c:if>
<c:if test="${report.supplementGroup eq '3806696792996264972'}"><input type="text" id="supplementGroup" value="文化集团" maxlength="200"></c:if>
<c:if test="${report.supplementGroup eq '3770618512934949260'}"><input type="text" id="supplementGroup" value="文旅集团" maxlength="200"></c:if>
<c:if test="${report.supplementGroup eq null}"><input type="text" id="supplementGroup" value="--" maxlength="200"></c:if>
</div>
</div>
<div class="control-group">
<label class="control-label">被举报区域:</label>
<div class="controls">
<form:input id="supplementArea" path="supplementArea" htmlEscape="false" maxlength="200"
class="input-xlarge required" value="${report.supplementArea}"/>
</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">
...@@ -314,16 +334,19 @@ ...@@ -314,16 +334,19 @@
<%--htmlEscape="false" maxlength="200" class="input-xlarge required"/>--%> <%--htmlEscape="false" maxlength="200" class="input-xlarge required"/>--%>
<form:input id="supplementType" <form:input id="supplementType"
path="supplementType" path="supplementType"
htmlEscape="false" maxlength="200" class="input-xlarge required"/> htmlEscape="false" maxlength="200" class="input-xlarge required" value="${report.supplementType}"/>
</div> </div>
</div> <br>
<div class="control-group"> <label class="control-label">业务类别:</label>
<label class="control-label">被举报区域:</label>
<div class="controls"> <div class="controls">
<form:input id="supplementArea" path="supplementArea" htmlEscape="false" maxlength="200" <%--<form:input id="supplementType" items="split(${report.supplementType},',')" path="supplementType"--%>
class="input-xlarge required"/> <%--htmlEscape="false" maxlength="200" class="input-xlarge required"/>--%>
<form:input id="supplementCategory"
path="supplementCategory"
htmlEscape="false" maxlength="200" class="input-xlarge required" value="${report.supplementCategory}"/>
</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">
...@@ -389,8 +412,10 @@ ...@@ -389,8 +412,10 @@
path="transferDepartment" path="transferDepartment"
class="input-small required"> class="input-small required">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value" <%-- <form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></c:if> htmlEscape="false"/>--%>
</form:select>
</c:if>
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
......
...@@ -167,7 +167,85 @@ ...@@ -167,7 +167,85 @@
showDiv.innerHTML = ''; showDiv.innerHTML = '';
} }
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);
var selectNode = $("#supplementArea");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
if (data1 != '') {
var slsb=document.getElementById("supplementArea");
for (var i = 0;i < data1.length;i++){
console.log(data1[i].name);
slsb.append(new Option(data1[i].name,data1[i].id));
}
}
var selectNode = $("#supplementType");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
if (data2 != '') {
console.log(data2[0].name);
var slsb=document.getElementById("supplementType");
for (var i = 0;i < data2.length;i++){
slsb.append(new Option(data2[i].name,data2[i].id));
}
}
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择被举报集团', 'warning');
}
}
/*
*联动查询类型下的类别 传多个id
*/
function getBusCategory(ts_describe){
console.log(ts_describe);
if(ts_describe != null && ts_describe != ''){
$.ajax({
type: "POST",
url: "${ctx}/report/ctBbtcBusCategory/getBusCategoryList?typeId="+ts_describe,
dataType: "json",
success: function(returnedData) {
console.log(returnedData);
var data = returnedData.ctBbtcBusCategoryList;
var selectNode = $("#supplementCategory");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
if (data != '') {
var slsb=document.getElementById("supplementCategory");
for (var i = 0;i <= data.length;i++){
slsb.append(new Option(data[i].name,data[i].id));
}
}
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择业务类型', 'warning');
}
}
function resetPageNo() {
$("#pageNo").val(0);
}
</script> </script>
...@@ -301,28 +379,53 @@ ...@@ -301,28 +379,53 @@
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>举报人电话:</label><form:input onchange="resetPageNo();" path="reportPersonTel" htmlEscape="false" <li><label>举报人电话:</label><form:input onchange="resetPageNo();" path="reportPersonTel" htmlEscape="false"
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>业务类型:</label><form:select onchange="resetPageNo();" path="supplementType" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li>
<li><label>状态:</label><form:select onchange="resetPageNo();" path="reportStatus" class="input-small"> <li><label>状态:</label><form:select onchange="resetPageNo();" path="reportStatus" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('report_status')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('report_status')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>被举报人:</label><form:input onchange="resetPageNo();" path="supplementInformant" htmlEscape="false" <li><label>被举报人:</label><form:input onchange="resetPageNo();" path="supplementInformant" htmlEscape="false"
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>所属集团:</label>
<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>
</li>
<li><label>所属区域:</label>
<%-- <select id="supplementArea" path="supplementArea" class="input-small required" onchange="resetPageNo();">
<option value="">请选择</option>
&lt;%&ndash;<options items="${ctBbtcRegionList}" itemLabel="name" itemValue="id"&ndash;%&gt;
&lt;%&ndash;htmlEscape="false"/></select>&ndash;%&gt;
</select>--%>
<form:select id="supplementArea" onchange="resetPageNo();" path="supplementArea" class="input-small">
<form:option value="">请选择</form:option>
</form:select>
</li>
<li><label>业务类型:</label>
<form:select id="supplementType" onchange="getBusCategory(value);" path="supplementType" class="input-small">
<form:option value="">请选择</form:option>
</form:select>
</li>
<li><label>业务类别:</label>
<form:select onchange="resetPageNo();" path="supplementCategory" class="input-small" id="supplementCategory">
<form:option value="">请选择</form:option>
</form:select>
</li>
<li><label>处理结论:</label><form:select onchange="resetPageNo();" path="dealResult" class="input-small"> <li><label>处理结论:</label><form:select onchange="resetPageNo();" path="dealResult" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>区域:</label><form:select onchange="resetPageNo();" path="supplementArea" class="input-small"> <li><label>举报途径:</label><form:select onchange="resetPageNo();" path="reportSource" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('report_source')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>举报途径:</label><form:select onchange="resetPageNo();" path="reportSource" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('report_source')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li>
<c:if test="${isAdmin eq '1' || isAdmin eq '2'}"> <c:if test="${isAdmin eq '1' || isAdmin eq '2'}">
<li><label>移交给:</label><form:select onchange="resetPageNo();" path="selectExchangeAfterUser" class="input-small"> <li><label>移交给:</label><form:select onchange="resetPageNo();" path="selectExchangeAfterUser" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
...@@ -333,6 +436,8 @@ ...@@ -333,6 +436,8 @@
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getTransferName()}" itemLabel="label" itemValue="label" <form:options items="${fns:getTransferName()}" itemLabel="label" itemValue="label"
htmlEscape="false"/></form:select></li></c:if> htmlEscape="false"/></form:select></li></c:if>
<li class="clearfix"></li> <li class="clearfix"></li>
<li class="btns"> <li class="btns">
<%-- <label style="width:auto;">--%>&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" <%-- <label style="width:auto;">--%>&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary"
...@@ -378,13 +483,15 @@ ...@@ -378,13 +483,15 @@
cellpadding="2" border="2"> cellpadding="2" border="2">
<thead> <thead>
<tr> <tr>
<th style="width:10%">业务类型</th> <th>所属集团</th>
<th>所属区域</th>
<th>业务类型</th>
<th>业务类别</th>
<th>被举报项目/部门</th> <th>被举报项目/部门</th>
<th>录入人</th> <th>录入人</th>
<th>举报人</th> <th>举报人</th>
<th>举报人电话</th> <th>举报人电话</th>
<th>举报途径</th> <th>举报途径</th>
<th>区域</th>
<th>被举报人</th> <th>被举报人</th>
<th>举报时间</th> <th>举报时间</th>
<th>状态</th> <th>状态</th>
...@@ -406,7 +513,20 @@ ...@@ -406,7 +513,20 @@
<c:if test="${page.list.size()>0}"> <c:if test="${page.list.size()>0}">
<c:forEach items="${page.list}" var="report" varStatus="vs"> <c:forEach items="${page.list}" var="report" varStatus="vs">
<tr> <tr>
<td align="center">
<c:if test="${report.supplementGroup eq '3437402691677202102'}">集团本部</c:if>
<c:if test="${report.supplementGroup eq '3510129313047280678'}">区域集团</c:if>
<c:if test="${report.supplementGroup eq '3565898923067676254'}">服务集团</c:if>
<c:if test="${report.supplementGroup eq '3806696792996264972'}">文化集团</c:if>
<c:if test="${report.supplementGroup eq '3770618512934949260'}">文旅集团</c:if>
<c:if test="${report.supplementGroup eq null}">--</c:if>
</td>
<td align="center">${report.supplementArea}</td>
<td align="center">${report.supplementType}</td> <td align="center">${report.supplementType}</td>
<td align="center">${report.supplementCategory}</td>
<td align="center">${report.reportProject}</td> <td align="center">${report.reportProject}</td>
<td align="center">${report.oaname}</td> <td align="center">${report.oaname}</td>
<td align="center">${report.reportPersonName}</td> <td align="center">${report.reportPersonName}</td>
...@@ -421,19 +541,7 @@ ...@@ -421,19 +541,7 @@
<c:if test="${report.reportSource eq 'email'}">邮件</c:if> <c:if test="${report.reportSource eq 'email'}">邮件</c:if>
<c:if test="${report.reportSource eq 'visit'}">来访</c:if> <c:if test="${report.reportSource eq 'visit'}">来访</c:if>
<c:if test="${report.reportSource eq null}">--</c:if></td> <c:if test="${report.reportSource eq null}">--</c:if></td>
<td align="center">
<c:if test="${report.supplementArea eq 'PropertyGroup'}">物业集团</c:if>
<c:if test="${report.supplementArea eq 'North China'}">华北区域公司</c:if>
<c:if test="${report.supplementArea eq 'BeiJing'}">北京区域公司</c:if>
<c:if test="${report.supplementArea eq 'ShangHai'}">上海区域公司</c:if>
<c:if test="${report.supplementArea eq 'SouthWest'}">西南区域公司</c:if>
<c:if test="${report.supplementArea eq 'SouthEast'}">东南区域公司</c:if>
<c:if test="${report.supplementArea eq 'Central China'}">华中区域公司</c:if>
<c:if test="${report.supplementArea eq 'GuangShen'}">广深区域公司</c:if>
<c:if test="${report.supplementArea eq 'Hainan'}">海南区域公司</c:if>
<c:if test="${report.supplementArea eq 'Group'}">集团本部</c:if>
<c:if test="${report.supplementArea eq null}">--</c:if>
</td>
<td align="center"> <td align="center">
<c:if test="${report.supplementInformant eq null}">--</c:if> <c:if test="${report.supplementInformant eq null}">--</c:if>
<c:if test="${report.supplementInformant ne null}">${report.supplementInformant}</c:if> <c:if test="${report.supplementInformant ne null}">${report.supplementInformant}</c:if>
...@@ -457,7 +565,13 @@ ...@@ -457,7 +565,13 @@
<c:if test="${report.dealResult eq '7'}">转为线索</c:if> <c:if test="${report.dealResult eq '7'}">转为线索</c:if>
</td> </td>
<td align="center"> <td align="center">
<c:if test="${report.transferDepartment eq null}">--</c:if> <c:if test="${report.transferGroup eq '3437402691677202102'}">集团本部--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '3510129313047280678'}">区域集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '3565898923067676254'}">服务集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '3806696792996264972'}">文化集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '3770618512934949260'}">文旅集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq null}">--</c:if>
<%--<c:if test="${report.transferDepartment eq null}">--</c:if>
<c:if test="${report.transferDepartment eq '1'}">营销</c:if> <c:if test="${report.transferDepartment eq '1'}">营销</c:if>
<c:if test="${report.transferDepartment eq '2'}">工程</c:if> <c:if test="${report.transferDepartment eq '2'}">工程</c:if>
<c:if test="${report.transferDepartment eq '3'}">成本</c:if> <c:if test="${report.transferDepartment eq '3'}">成本</c:if>
...@@ -472,8 +586,7 @@ ...@@ -472,8 +586,7 @@
<c:if test="${report.transferDepartment eq '15'}">商业</c:if> <c:if test="${report.transferDepartment eq '15'}">商业</c:if>
<c:if test="${report.transferDepartment eq '12'}">其他</c:if> <c:if test="${report.transferDepartment eq '12'}">其他</c:if>
<c:if test="${report.transferDepartment eq '13'}">物业管理</c:if> <c:if test="${report.transferDepartment eq '13'}">物业管理</c:if>
<c:if test="${report.transferDepartment eq '14'}">文旅管理</c:if> <c:if test="${report.transferDepartment eq '14'}">文旅管理</c:if>--%>
</td> </td>
<td align="center"> <td align="center">
<c:if test="${report.dealPersonName eq null}">--</c:if> <c:if test="${report.dealPersonName eq null}">--</c:if>
......
...@@ -167,8 +167,90 @@ ...@@ -167,8 +167,90 @@
showDiv.innerHTML = ''; showDiv.innerHTML = '';
} }
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);
var selectNode = $("#supplementArea");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
if (data1 != '') {
console.log(data1[0].name);
var slsb=document.getElementById("supplementArea");
for (var i = 0;i < data1.length;i++){
console.log(data1[i].name);
slsb.append(new Option(data1[i].name,data1[i].id));
}
}
var selectNode = $("#supplementType");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
if (data2 != '') {
console.log(data2[0].name);
var slsb=document.getElementById("supplementType");
for (var i = 0;i < data2.length;i++){
slsb.append(new Option(data2[i].name,data2[i].id));
}
}
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择被举报集团', 'warning');
}
}
/*
*联动查询类型下的类别
*/
function getBusCategory(ts_describe){
console.log(ts_describe);
if(ts_describe != null && ts_describe != ''){
$.ajax({
type: "POST",
url: "${ctx}/report/ctBbtcBusCategory/getBusCategoryList?typeId="+ts_describe,
dataType: "json",
success: function(returnedData) {
console.log(returnedData);
var data = returnedData.ctBbtcBusCategoryList;
console.log(data[0].name);
var selectNode = $("#supplementCategory");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
if (data != '') {
var slsb=document.getElementById("supplementCategory");
for (var i = 0;i < data.length;i++){
slsb.append(new Option(data[i].name,data[i].id));
}
}
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择业务类型', 'warning');
}
}
function resetPageNo() {
$("#pageNo").val(0);
}
</script> </script>
<style type="text/css"> <style type="text/css">
...@@ -301,28 +383,50 @@ ...@@ -301,28 +383,50 @@
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>举报人电话:</label><form:input onchange="resetPageNo();" path="reportPersonTel" htmlEscape="false" <li><label>举报人电话:</label><form:input onchange="resetPageNo();" path="reportPersonTel" htmlEscape="false"
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>业务类型:</label><form:select onchange="resetPageNo();" path="supplementType" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li>
<li><label>状态:</label><form:select onchange="resetPageNo();" path="reportStatus" class="input-small"> <li><label>状态:</label><form:select onchange="resetPageNo();" path="reportStatus" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('report_status')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('report_status')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>被举报人:</label><form:input onchange="resetPageNo();" path="supplementInformant" htmlEscape="false" <li><label>被举报人:</label><form:input onchange="resetPageNo();" path="supplementInformant" htmlEscape="false"
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>所属集团:</label>
<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>
</li>
<li><label>所属区域:</label>
<form:select id="supplementArea" onchange="resetPageNo();" path="supplementArea" class="input-small">
<form:option value="">请选择</form:option>
</form:select>
</li>
<li><label>业务类型:</label>
<form:select id="supplementType" onchange="getBusCategory(value);" path="supplementType" class="input-small">
<form:option value="">请选择</form:option>
</form:select>
</li>
<li><label>业务类别:</label>
<form:select id="supplementCategory" onchange="resetPageNo();" path="supplementCategory" class="input-small">
<form:option value="">请选择</form:option>
</form:select>
</li>
<li><label>处理结论:</label><form:select onchange="resetPageNo();" path="dealResult" class="input-small"> <li><label>处理结论:</label><form:select onchange="resetPageNo();" path="dealResult" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value="">请选择</form:option>
<form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>区域:</label><form:select onchange="resetPageNo();" path="supplementArea" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li>
<li><label>举报途径:</label><form:select onchange="resetPageNo();" path="reportSource" class="input-small"> <li><label>举报途径:</label><form:select onchange="resetPageNo();" path="reportSource" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('report_source')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('report_source')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<c:if test="${isAdmin eq '1' || isAdmin eq '2'}"> <c:if test="${isAdmin eq '1' || isAdmin eq '2'}">
<li><label>移交给:</label><form:select onchange="resetPageNo();" path="selectExchangeAfterUser" class="input-small"> <li><label>移交给:</label><form:select onchange="resetPageNo();" path="selectExchangeAfterUser" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
...@@ -378,13 +482,15 @@ ...@@ -378,13 +482,15 @@
cellpadding="2" border="2"> cellpadding="2" border="2">
<thead> <thead>
<tr> <tr>
<th style="width:10%">业务类型</th> <th>所属集团</th>
<th>所属区域</th>
<th>业务类型</th>
<th>业务类别</th>
<th>被举报项目/部门</th> <th>被举报项目/部门</th>
<th>录入人</th> <th>录入人</th>
<th>举报人</th> <th>举报人</th>
<th>举报人电话</th> <th>举报人电话</th>
<th>举报途径</th> <th>举报途径</th>
<th>区域</th>
<th>被举报人</th> <th>被举报人</th>
<th>举报时间</th> <th>举报时间</th>
<th>状态</th> <th>状态</th>
...@@ -406,7 +512,19 @@ ...@@ -406,7 +512,19 @@
<c:if test="${page.list.size()>0}"> <c:if test="${page.list.size()>0}">
<c:forEach items="${page.list}" var="report" varStatus="vs"> <c:forEach items="${page.list}" var="report" varStatus="vs">
<tr> <tr>
<%--跟据集团id 显示对应的集团名称--%>
<td align="center">
<c:if test="${report.supplementGroup eq '3437402691677202102'}">集团本部</c:if>
<c:if test="${report.supplementGroup eq '3510129313047280678'}">区域集团</c:if>
<c:if test="${report.supplementGroup eq '3565898923067676254'}">服务集团</c:if>
<c:if test="${report.supplementGroup eq '3806696792996264972'}">文化集团</c:if>
<c:if test="${report.supplementGroup eq '3770618512934949260'}">文旅集团</c:if>
<c:if test="${report.supplementGroup eq null}">--</c:if>
</td>
<td align="center">${report.supplementArea}</td>
<td align="center">${report.supplementType}</td> <td align="center">${report.supplementType}</td>
<td align="center">${report.supplementCategory}</td>
<td align="center">${report.reportProject}</td> <td align="center">${report.reportProject}</td>
<td align="center">${report.oaname}</td> <td align="center">${report.oaname}</td>
<td align="center">${report.reportPersonName}</td> <td align="center">${report.reportPersonName}</td>
...@@ -421,19 +539,7 @@ ...@@ -421,19 +539,7 @@
<c:if test="${report.reportSource eq 'email'}">邮件</c:if> <c:if test="${report.reportSource eq 'email'}">邮件</c:if>
<c:if test="${report.reportSource eq 'visit'}">来访</c:if> <c:if test="${report.reportSource eq 'visit'}">来访</c:if>
<c:if test="${report.reportSource eq null}">--</c:if></td> <c:if test="${report.reportSource eq null}">--</c:if></td>
<td align="center">
<c:if test="${report.supplementArea eq 'PropertyGroup'}">物业集团</c:if>
<c:if test="${report.supplementArea eq 'North China'}">华北区域公司</c:if>
<c:if test="${report.supplementArea eq 'BeiJing'}">北京区域公司</c:if>
<c:if test="${report.supplementArea eq 'ShangHai'}">上海区域公司</c:if>
<c:if test="${report.supplementArea eq 'SouthWest'}">西南区域公司</c:if>
<c:if test="${report.supplementArea eq 'SouthEast'}">东南区域公司</c:if>
<c:if test="${report.supplementArea eq 'Central China'}">华中区域公司</c:if>
<c:if test="${report.supplementArea eq 'GuangShen'}">广深区域公司</c:if>
<c:if test="${report.supplementArea eq 'Hainan'}">海南区域公司</c:if>
<c:if test="${report.supplementArea eq 'Group'}">集团本部</c:if>
<c:if test="${report.supplementArea eq null}">--</c:if>
</td>
<td align="center"> <td align="center">
<c:if test="${report.supplementInformant eq null}">--</c:if> <c:if test="${report.supplementInformant eq null}">--</c:if>
<c:if test="${report.supplementInformant ne null}">${report.supplementInformant}</c:if> <c:if test="${report.supplementInformant ne null}">${report.supplementInformant}</c:if>
...@@ -457,7 +563,13 @@ ...@@ -457,7 +563,13 @@
<c:if test="${report.dealResult eq '7'}">转为线索</c:if> <c:if test="${report.dealResult eq '7'}">转为线索</c:if>
</td> </td>
<td align="center"> <td align="center">
<c:if test="${report.transferDepartment eq null}">--</c:if> <c:if test="${report.transferGroup eq '3437402691677202102'}">集团本部--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '3510129313047280678'}">区域集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '3565898923067676254'}">服务集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '3806696792996264972'}">文化集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '3770618512934949260'}">文旅集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq null}">--</c:if>
<%-- <c:if test="${report.transferDepartment eq null}">--</c:if>
<c:if test="${report.transferDepartment eq '1'}">营销</c:if> <c:if test="${report.transferDepartment eq '1'}">营销</c:if>
<c:if test="${report.transferDepartment eq '2'}">工程</c:if> <c:if test="${report.transferDepartment eq '2'}">工程</c:if>
<c:if test="${report.transferDepartment eq '3'}">成本</c:if> <c:if test="${report.transferDepartment eq '3'}">成本</c:if>
...@@ -472,7 +584,7 @@ ...@@ -472,7 +584,7 @@
<c:if test="${report.transferDepartment eq '15'}">商业</c:if> <c:if test="${report.transferDepartment eq '15'}">商业</c:if>
<c:if test="${report.transferDepartment eq '12'}">其他</c:if> <c:if test="${report.transferDepartment eq '12'}">其他</c:if>
<c:if test="${report.transferDepartment eq '13'}">物业管理</c:if> <c:if test="${report.transferDepartment eq '13'}">物业管理</c:if>
<c:if test="${report.transferDepartment eq '14'}">文旅管理</c:if> <c:if test="${report.transferDepartment eq '14'}">文旅管理</c:if>--%>
</td> </td>
<td align="center"> <td align="center">
......
...@@ -21,8 +21,10 @@ ...@@ -21,8 +21,10 @@
if (dealResult != null && dealResult != ' ') { if (dealResult != null && dealResult != ' ') {
if (dealResult == "6") { if (dealResult == "6") {
$("#selectType").show(); $("#selectType").show();
$("#transferGroup").show();
} else { } else {
$("#selectType").hide(); $("#selectType").hide();
$("#transferGroup").hide();
} }
$("#selectDone").show(); $("#selectDone").show();
} else { } else {
...@@ -46,8 +48,8 @@ ...@@ -46,8 +48,8 @@
top.$.jBox.tip('请选择被举报集团', 'warning'); top.$.jBox.tip('请选择被举报集团', 'warning');
}else if ($("#supplementArea").val() == " ") { }else if ($("#supplementArea").val() == " ") {
top.$.jBox.tip('请选择被举报区域', 'warning'); top.$.jBox.tip('请选择被举报区域', 'warning');
}else if ($("#supplementTypeNew").val() == " ") { }else if ($("#supplementCategory").val() == " ") {
top.$.jBox.tip('请选择业务类', 'warning'); top.$.jBox.tip('请选择业务类', 'warning');
} else { } else {
submitCount += 1; submitCount += 1;
if (submitCount == 1) { if (submitCount == 1) {
...@@ -350,10 +352,13 @@ ...@@ -350,10 +352,13 @@
var reportStatus = "${report.reportStatus}"; var reportStatus = "${report.reportStatus}";
if (reportStatus != "0") { if (reportStatus != "0") {
path2 += "举报信息补充%0D%0A"; path2 += "举报信息补充%0D%0A";
var supplementTypeStr = "${supplementTypeStr}";
var supplementTypeStr = "${report.supplementType}";
path2 += "业务类型:" + supplementTypeStr + "%0D%0A"; path2 += "业务类型:" + supplementTypeStr + "%0D%0A";
var supplementArea = "${report.supplementArea}";
if (supplementArea == "North China") {
var supplementArea = "${report.supplementArea}";
/* if (supplementArea == "North China") {
supplementArea = "华北区域公司"; supplementArea = "华北区域公司";
} else if (supplementArea == "BeiJing") { } else if (supplementArea == "BeiJing") {
supplementArea = "北京区域公司"; supplementArea = "北京区域公司";
...@@ -373,8 +378,9 @@ ...@@ -373,8 +378,9 @@
supplementArea = "集团本部"; supplementArea = "集团本部";
} else if (supplementArea == "PropertyGroup") { } else if (supplementArea == "PropertyGroup") {
supplementArea = "物业集团"; supplementArea = "物业集团";
} }*/
path2 += "被举报区域:" + supplementArea + "%0D%0A"; path2 += "被举报区域:" + supplementArea + "%0D%0A";
supplementContent = $("#supplementContent").val(); supplementContent = $("#supplementContent").val();
path2 += "内容:"; path2 += "内容:";
var path3 = "%0D%0A附件:%0D%0A"; var path3 = "%0D%0A附件:%0D%0A";
...@@ -432,8 +438,10 @@ ...@@ -432,8 +438,10 @@
if (dealResult != null && dealResult != ' ') { if (dealResult != null && dealResult != ' ') {
if (dealResult == "6") { if (dealResult == "6") {
$("#selectType").show(); $("#selectType").show();
$("#transferGroup").show();
} else { } else {
$("#selectType").hide(); $("#selectType").hide();
$("#transferGroup").hide();
} }
$("#selectDone").show(); $("#selectDone").show();
} else { } else {
...@@ -447,9 +455,19 @@ ...@@ -447,9 +455,19 @@
$("#dealPersonName").val(dealPersonName); $("#dealPersonName").val(dealPersonName);
} }
/*跟据集团 获取对应的业务类型 和业务类别 */
function getRegion(ts_describe){ function getRegion(ts_describe){
console.log(ts_describe);
if(ts_describe != null && ts_describe != ''){ /*每次选中新的菜单 清除上一次菜单的值*/
/* $("#supplementArea").each(function(){
$(this).find("option").eq("").prop("selected",true);
});*/
/*$('#supplementArea').find("option:selected").attr("selected", false);
$('#supplementType').find("option:selected").attr("selected", false);*/
/* $("#supplementArea option[text='请选择']").attr("selected", true);*/
if(ts_describe != null && ts_describe != ''){
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "${ctx}/report/ctBbtcRegion/getRegionList?groupId="+ts_describe, url: "${ctx}/report/ctBbtcRegion/getRegionList?groupId="+ts_describe,
...@@ -460,27 +478,81 @@ ...@@ -460,27 +478,81 @@
var data2 = returnedData.ctBbtcBusTypeList; var data2 = returnedData.ctBbtcBusTypeList;
// console.log(data1[0].name); // console.log(data1[0].name);
// console.log(data2[0].name); // console.log(data2[0].name);
var selectNode = $("#supplementArea");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
if (data1 != '') { if (data1 != '') {
console.log(data1[0].name);
var selectNode = $("#supplementArea");
selectNode.empty();//每次需要将上一次的数据进行清空
var slsb=document.getElementById("supplementArea"); var slsb=document.getElementById("supplementArea");
for (var i = 0;i < data1.length;i++){ for (var i = 0;i < data1.length;i++){
console.log(data1[i].name); /* if(i==0){
slsb.options[i] = new Option(data1[i].name,data1[i].id); slsb.options[i] = new Option("请选择","");
}*/
slsb.append(new Option(data1[i].name,data1[i].id));
} }
$('#supplementArea').attr('value','');
} }
/* $("#supplementArea option:first").prop("selected", 'selected');*/
/*每次选中新的菜单 需要清除上一次的菜单栏*/
var selectNode = $("#supplementType");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
/* slsb.option("请选择","");*/
if (data2 != '') { if (data2 != '') {
console.log(data2[0].name); console.log(data2[0].name);
var selectNode = $("#supplementType");
selectNode.empty();//每次需要将上一次的数据进行清空
var slsb=document.getElementById("supplementType"); var slsb=document.getElementById("supplementType");
for (var i = 0;i < data2.length;i++){ for (var i = 0;i < data2.length;i++){
slsb.options[i] = new Option(data2[i].name,data2[i].id); /* if(i==0){
slsb.options[i] = new Option("请选择","");
}*/
slsb.append(new Option(data2[i].name,data2[i].id));
}
}
/* selectNode.options[0].selected = true;*/
/* $("#supplementType").prepend("<option value=''>请选择</option>");*/
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择被举报集团', 'warning');
}
}
/*跟据集团 获取对应的业务类型 和业务类别 */
function getDepartment(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.ctBbtcBusTypeList;
// console.log(data1[0].name);
// console.log(data2[0].name);
var selectNode = $("#transferDepartment");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
/* $("#supplementArea").append("<option value=''>请选择</option>");*/
/* slsb.option("请选择","");*/
if (data1 != '') {
var slsb=document.getElementById("transferDepartment");
for (var i = 0;i < data1.length;i++){
/* if(i==0){
slsb.options[i] = new Option("请选择","");
}*/
slsb.append(new Option(data1[i].name,data1[i].id));
} }
} }
},error:function(data){ },error:function(data){
alert(系统错误); alert("系统错误");
} }
}); });
}else{ }else{
...@@ -489,7 +561,53 @@ ...@@ -489,7 +561,53 @@
} }
/*
*联动查询类型下的类别
*/
function getBusCategory(){
/*获取类型选项框中的多个值 逗号分隔*/
var ts_describe= $("#supplementType").val();
/*alert(ts_describe);*/
if(ts_describe != null && ts_describe != ''){
$.ajax({
type: "POST",
url: "${ctx}/report/ctBbtcBusCategory/getBusCategoryList?typeId="+ts_describe,
dataType: "json",
success: function(returnedData) {
console.log(returnedData);
var data = returnedData.ctBbtcBusCategoryList;
console.log(data[0].name);
var selectNode = $("#supplementCategory");
selectNode.empty();//每次需要将上一次的数据进行清空
selectNode.append("<option value=''>请选择</option>");
/* $("#supplementCategory").append("<option value=''>请选择</option>");*/
/* slsb.option("请选择","");*/
if (data != '') {
var slsb=document.getElementById("supplementCategory");
for (var i = 0;i < data.length;i++){
/* if(i==0){
slsb.options[i] = new Option("请选择","");
}*/
slsb.append(new Option(data[i].name,data[i].id));
}
}
/* $("#supplementCategory").prepend("<option value=''>请选择</option>");*/
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择业务类型', 'warning');
}
}
function resetPageNo() {
$("#pageNo").val(0);
}
</script> </script>
...@@ -695,7 +813,8 @@ ...@@ -695,7 +813,8 @@
<form:select id="supplementGroup" path="supplementGroup" class="input-small required" onchange="getRegion(value)"> <form:select id="supplementGroup" path="supplementGroup" class="input-small required" onchange="getRegion(value)">
<form:option value="">请选择</form:option> <form:option value="">请选择</form:option>
<form:options items="${fns:getDictList('supplement_group')}" itemLabel="label" itemValue="id" <form:options items="${fns:getDictList('supplement_group')}" itemLabel="label" itemValue="id"
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>
...@@ -703,19 +822,26 @@ ...@@ -703,19 +822,26 @@
<div class="control-group"> <div class="control-group">
<label class="control-label">被举报区域:</label> <label class="control-label">被举报区域:</label>
<div class="controls"> <div class="controls">
<select id="supplementArea" path="supplementArea" class="input-small required" onchange="resetPageNo();"> <%-- <select id="supplementArea" path="supplementArea" class="input-small required" onchange="resetPageNo();">
<option value="">请选择</option> <option value="">请选择</option>
<%--<options items="${ctBbtcRegionList}" itemLabel="name" itemValue="id"--%> &lt;%&ndash;<options items="${ctBbtcRegionList}" itemLabel="name" itemValue="id"&ndash;%&gt;
<%--htmlEscape="false"/></select>--%> &lt;%&ndash;htmlEscape="false"/></select>&ndash;%&gt;
</select> </select>--%>
<form:select id="supplementArea" path="supplementArea" class="input-small required" onchange="resetPageNo();">
<form:option value="">请选择</form:option>
</form:select>
<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 id="supplementType" path="supplementType" class="input-small required" onchange="resetPageNo();" multiple="true"> <%--<form:select id="supplementType" path="supplementType" class="input-small required" onchange="getBusCategory();" multiple="true">
<form:option value="">请选择</form:option> <form:option value="">请选择</form:option>
<form:option value="">请选择02</form:option>
</form:select>--%>
<form:select id="supplementType" path="supplementType" class="input-small required" onchange="getBusCategory();" multiple="true">
<form:option value="">请选择</form:option>
</form:select> </form:select>
<%--<options items="${ctBbtcRegionList}" itemLabel="name" itemValue="id"--%> <%--<options items="${ctBbtcRegionList}" itemLabel="name" itemValue="id"--%>
<%--htmlEscape="false"/></select>--%> <%--htmlEscape="false"/></select>--%>
...@@ -724,6 +850,18 @@ ...@@ -724,6 +850,18 @@
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">业务类别:</label>
<div class="controls">
<form:select id="supplementCategory" path="supplementCategory" 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 class="control-group">
<label class="control-label">内容:</label> <label class="control-label">内容:</label>
<div class="controls"> <div class="controls">
<form:textarea id="supplementContent" htmlEscape="true" path="supplementContent" rows="6" <form:textarea id="supplementContent" htmlEscape="true" path="supplementContent" rows="6"
...@@ -779,15 +917,28 @@ ...@@ -779,15 +917,28 @@
</form:select> </form:select>
</div> </div>
<br> <br>
<div id="transferGroup" class="control-group" style="display:none">
<label class="control-label">移交集团:</label>
<div class="controls">
<form:select id="" path="transferGroup" class="input-small required" onchange="getDepartment(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 id="selectType" class="control-group" style="display:none"> <div id="selectType" class="control-group" style="display:none">
<label class="control-label">移交部门:</label> <label class="control-label">移交部门:</label>
<div class="controls"> <div class="controls">
<form:select id="" path="transferDepartment" class="input-small required"> <form:select id="transferDepartment" path="transferDepartment" class="input-small required">
<form:option value=" ">请选择</form:option> <form:option value="">请选择</form:option>
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value" <%-- <form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"
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>
<br> <br>
<div class="controls" id="selectDone" style="display:none"> <div class="controls" id="selectDone" style="display:none">
......
...@@ -30,7 +30,52 @@ ...@@ -30,7 +30,52 @@
} }
}); });
}); });
function getRegion(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);
var selectNode = $("#supplementArea");
selectNode.empty();//每次需要将上一次的数据进行清空
/* $("#supplementArea").append("<option value=''>请选择</option>");*/
/* slsb.option("请选择","");*/
if (data1 != '') {
var slsb=document.getElementById("supplementArea");
for (var i = 0;i < data1.length;i++){
/* if(i==0){
slsb.options[i] = new Option("请选择","");
}*/
slsb.options[i] = new Option(data1[i].name,data1[i].id);
}
}
/*每次更新选项 ================================*/
$("#supplementArea").prepend("<option value=''>请选择</option>");
/* $("#supplementArea option[text='请选择']").attr("selected", true);
$("#supplementArea").val("");*/
$("#supplementArea option").eq(0).attr("selected",true);
$("#supplementArea option[text='请选择']").attr("selected", "selected");
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择被举报集团', 'warning');
}
}
</script> </script>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
...@@ -87,12 +132,25 @@ ...@@ -87,12 +132,25 @@
</div> </div>
</div> </div>
<div class="control-group"> <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> <label class="control-label">所属区域:</label>
<div class="controls"> <div class="controls">
<form:select id="supplementArea" path="area" class="input-small required"> <form:select id="supplementArea" path="area" class="input-small required">
<form:option value=" "></form:option> <form:option value=" "></form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value" <%-- <form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
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>
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
data: {"startDate": startDate, "endDate": endDate}, data: {"startDate": startDate, "endDate": endDate},
url: "getHighcharts.action", url: "getHighcharts.action",
success: function (result) { success: function (result) {
/*举报状态*/
$('#repStatus').highcharts({ $('#repStatus').highcharts({
navigation: { navigation: {
buttonOptions: { buttonOptions: {
...@@ -47,7 +49,7 @@ ...@@ -47,7 +49,7 @@
}, },
subtitle: {//副标题 subtitle: {//副标题
align: 'right', align: 'right',
text: '总数&nbsp;:&nbsp;' + result.bench.totalCount + '<br/>未处理&nbsp;:&nbsp;' + result.unProcess + '<br/>跟踪中&nbsp;:&nbsp;' + result.processing + '<br/>已处理&nbsp;:&nbsp;' + result.processed + '<br/>已关闭&nbsp;:&nbsp;' + result.closed, text: '总数&nbsp;:&nbsp;' + result.bench.totalCount + '<br/>未处理&nbsp;:&nbsp;' + result.bench.unProcess + '<br/>跟踪中&nbsp;:&nbsp;' + result.processing + '<br/>已处理&nbsp;:&nbsp;' + result.processed + '<br/>已关闭&nbsp;:&nbsp;' + result.closed,
useHTML: true, useHTML: true,
verticalAlign: 'top', verticalAlign: 'top',
x: -5, x: -5,
...@@ -87,6 +89,8 @@ ...@@ -87,6 +89,8 @@
] ]
}] }]
}); });
/*各业务条线举报分析*/
$('#repType').highcharts({ $('#repType').highcharts({
navigation: { navigation: {
buttonOptions: { buttonOptions: {
...@@ -203,6 +207,8 @@ ...@@ -203,6 +207,8 @@
} }
] ]
}); });
/*举报质量分析*/
$('#repResult').highcharts({ $('#repResult').highcharts({
navigation: { navigation: {
buttonOptions: { buttonOptions: {
...@@ -258,6 +264,8 @@ ...@@ -258,6 +264,8 @@
] ]
}] }]
}); });
/*区域举报状态分析图*/
$('#repArea').highcharts({ $('#repArea').highcharts({
navigation: { navigation: {
buttonOptions: { buttonOptions: {
...@@ -375,6 +383,8 @@ ...@@ -375,6 +383,8 @@
} }
] ]
}); });
/*举报途径分析*/
$('#repApproach').highcharts({ $('#repApproach').highcharts({
navigation: { navigation: {
buttonOptions: { buttonOptions: {
...@@ -478,6 +488,39 @@ ...@@ -478,6 +488,39 @@
// var selAreaTemp=$("#areaTemp").val(); // var selAreaTemp=$("#areaTemp").val();
// $("#area").val(selAreaTemp); // $("#area").val(selAreaTemp);
// } // }
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) {
var data1 = returnedData.ctBbtcRegionList;
// console.log(data1[0].name);
// console.log(data2[0].name);
var selectNode = $("#area");
selectNode.empty();//每次需要将上一次的数据进行清空
$("#area").append("<option value=''>请选择</option>");
if (data1 != '') {
var slsb=document.getElementById("area");
for (var i = 0;i < data1.length;i++){
slsb.append(new Option(data1[i].name,data1[i].id));
}
}
/* $("#area").prepend("<option value=''>请选择</option>");*/
},error:function(data){
alert(系统错误);
}
});
}else{
top.$.jBox.tip('请选择被举报集团', 'warning');
}
}
</script> </script>
</head> </head>
<body> <body>
...@@ -485,7 +528,9 @@ ...@@ -485,7 +528,9 @@
class="breadcrumb form-search"> class="breadcrumb form-search">
<%--<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>--%> <%--<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>--%>
<%--<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>--%> <%--<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>--%>
<%--<input id="flag" name="flag" type="hidden" value="${flag}"/>--%>
<%--处理状态--%>
<input id="processStatus" name="processStatus" type="hidden" value="${reportStatus}"/>
<ul class="ul-form"> <ul class="ul-form">
<li><label><h3>工作台</h3></label></li> <li><label><h3>工作台</h3></label></li>
<li class="btns" style="float: right"> <li class="btns" style="float: right">
...@@ -503,7 +548,7 @@ ...@@ -503,7 +548,7 @@
onClick="WdatePicker({lang:'zh-cn',maxDate:'#F{$dp.$D(\'endDate\')}'})" onClick="WdatePicker({lang:'zh-cn',maxDate:'#F{$dp.$D(\'endDate\')}'})"
value="${workbench.startDate}"/></li> value="${workbench.startDate}"/></li>
<c:if test="${workbench.userRoleName eq '系统管理员'}"> <c:if test="${workbench.userRoleName eq '系统管理员'}">
<li style="float: right"> <%-- <li style="float: right">
<label>区域:</label> <label>区域:</label>
<form:select path="area" htmlEscape="false" class="input-medium"> <form:select path="area" htmlEscape="false" class="input-medium">
<form:option value="">全部区域</form:option> <form:option value="">全部区域</form:option>
...@@ -518,7 +563,25 @@ ...@@ -518,7 +563,25 @@
<form:option value="Group">集团本部</form:option> <form:option value="Group">集团本部</form:option>
<form:option value="PropertyGroup">物业集团</form:option> <form:option value="PropertyGroup">物业集团</form:option>
</form:select> </form:select>
</li> </li>--%>
<li><label>所属集团:</label>
<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>
</li>
<li><label>所属区域:</label>
<%-- <select id="supplementArea" path="supplementArea" class="input-small required" onchange="resetPageNo();">
<option value="">请选择</option>
&lt;%&ndash;<options items="${ctBbtcRegionList}" itemLabel="name" itemValue="id"&ndash;%&gt;
&lt;%&ndash;htmlEscape="false"/></select>&ndash;%&gt;
</select>--%>
<form:select id="area" onchange="resetPageNo();" path="area" class="input-small">
<form:option value="">请选择</form:option>
</form:select>
</li>
</c:if> </c:if>
</ul> </ul>
</ul> </ul>
...@@ -559,9 +622,11 @@ ...@@ -559,9 +622,11 @@
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>标题</th> <th>标题</th>
<th>业务类型</th> <th >所属集团</th>
<th >所属区域</th>
<th >业务类型</th>
<th >业务类别</th>
<th>被举报项目/部门</th> <th>被举报项目/部门</th>
<th>所在城市</th>
<th>被举报人</th> <th>被举报人</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
...@@ -569,20 +634,24 @@ ...@@ -569,20 +634,24 @@
<tbody> <tbody>
<c:if test="${repList.size()>0}"> <c:if test="${repList.size()>0}">
<c:forEach items="${repList}" var="report" varStatus="vs"> <c:forEach items="${repList}" var="report" varStatus="vs">
<tr> <tr>
<td>${vs.index + 1}</td> <td>${vs.index + 1}</td>
<td>${report.supplementTitle}</td> <td>${report.supplementTitle}</td>
<td> <td align="center">
<c:if test="${report.supplementType eq '1'}">营销</c:if> <c:if test="${report.supplementGroup eq '3437402691677202102'}">集团本部</c:if>
<c:if test="${report.supplementType eq '2'}">工程</c:if> <c:if test="${report.supplementGroup eq '3510129313047280678'}">区域集团</c:if>
<c:if test="${report.supplementType eq '3'}">成本</c:if> <c:if test="${report.supplementGroup eq '3565898923067676254'}">服务集团</c:if>
<c:if test="${report.supplementType eq '4'}">招采</c:if> <c:if test="${report.supplementGroup eq '3806696792996264972'}">文化集团</c:if>
<c:if test="${report.supplementType eq '5'}">人力</c:if> <c:if test="${report.supplementGroup eq '3770618512934949260'}">文旅集团</c:if>
<c:if test="${report.supplementType eq '6'}">物业</c:if> <c:if test="${report.supplementGroup eq null}">--</c:if>
<c:if test="${report.supplementType eq '7'}">投诉</c:if>
</td> </td>
<td align="center">${report.supplementArea}</td>
<td align="center">${report.supplementType}</td>
<td align="center">${report.supplementCategory}</td>
<td>${report.reportProject}</td> <td>${report.reportProject}</td>
<td>${report.reportCity}</td>
<td>${report.supplementInformant}</td> <td>${report.supplementInformant}</td>
<td> <td>
<a href="${ctx}/report/view?id=${report.id}">查看</a> <a href="${ctx}/report/view?id=${report.id}">查看</a>
......
Manifest-Version: 1.0 Manifest-Version: 1.0
Built-By: Administrator Built-By: Administrator
Created-By: IntelliJ IDEA Created-By: IntelliJ IDEA
Build-Jdk: 1.8.0_121 Build-Jdk: 1.8.0_161
...@@ -247,7 +247,8 @@ ...@@ -247,7 +247,8 @@
remarks, remarks,
login_flag, login_flag,
photo, photo,
del_flag del_flag,
supplement_group
) VALUES ( ) VALUES (
#{id}, #{id},
#{company.id}, #{company.id},
...@@ -268,7 +269,9 @@ ...@@ -268,7 +269,9 @@
#{remarks}, #{remarks},
#{loginFlag}, #{loginFlag},
#{photo}, #{photo},
#{delFlag} #{delFlag},
#{supplementGroup}
) )
</insert> </insert>
<insert id="insertOfficeName"> <insert id="insertOfficeName">
...@@ -300,7 +303,8 @@ ...@@ -300,7 +303,8 @@
update_date = #{updateDate}, update_date = #{updateDate},
remarks = #{remarks}, remarks = #{remarks},
login_flag = #{loginFlag}, login_flag = #{loginFlag},
photo = #{photo} photo = #{photo},
supplement_group=#{supplementGroup}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
......
...@@ -30,7 +30,52 @@ ...@@ -30,7 +30,52 @@
} }
}); });
}); });
function getRegion(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);
var selectNode = $("#supplementArea");
selectNode.empty();//每次需要将上一次的数据进行清空
/* $("#supplementArea").append("<option value=''>请选择</option>");*/
/* slsb.option("请选择","");*/
if (data1 != '') {
var slsb=document.getElementById("supplementArea");
for (var i = 0;i < data1.length;i++){
/* if(i==0){
slsb.options[i] = new Option("请选择","");
}*/
slsb.options[i] = new Option(data1[i].name,data1[i].id);
}
}
/*每次更新选项 ================================*/
$("#supplementArea").prepend("<option value=''>请选择</option>");
/* $("#supplementArea option[text='请选择']").attr("selected", true);
$("#supplementArea").val("");*/
$("#supplementArea option").eq(0).attr("selected",true);
$("#supplementArea option[text='请选择']").attr("selected", "selected");
},error:function(data){
alert("系统错误");
}
});
}else{
top.$.jBox.tip('请选择被举报集团', 'warning');
}
}
</script> </script>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
...@@ -87,12 +132,25 @@ ...@@ -87,12 +132,25 @@
</div> </div>
</div> </div>
<div class="control-group"> <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> <label class="control-label">所属区域:</label>
<div class="controls"> <div class="controls">
<form:select id="supplementArea" path="area" class="input-small required"> <form:select id="supplementArea" path="area" class="input-small required">
<form:option value=" "></form:option> <form:option value=" "></form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value" <%-- <form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment