Commit ae122b24 by Java-刘铮

需求更新

parent 3ccfbeb8
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> <module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager"> <component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
<facet type="web" name="Web"> <facet type="web" name="Web">
<configuration> <configuration>
<descriptors> <descriptors>
...@@ -11,9 +14,6 @@ ...@@ -11,9 +14,6 @@
</webroots> </webroots>
</configuration> </configuration>
</facet> </facet>
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component> </component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/classes" /> <output url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/classes" />
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/webapp" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/.idea" />
<excludeFolder url="file://$MODULE_DIR$/doc" />
<excludeFolder url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/classes" /> <excludeFolder url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/classes" />
<excludeFolder url="file://$MODULE_DIR$/target" /> <excludeFolder url="file://$MODULE_DIR$/target" />
</content> </content>
......
...@@ -90,7 +90,7 @@ public class ExportExcel { ...@@ -90,7 +90,7 @@ public class ExportExcel {
* @param title 表格标题,传“空值”,表示无标题 * @param title 表格标题,传“空值”,表示无标题
* @param cls 实体对象,通过annotation.ExportField获取标题 * @param cls 实体对象,通过annotation.ExportField获取标题
*/ */
public ExportExcel(String title, Class<?> cls, boolean isAdmin){ public ExportExcel(String title, Class<?> cls, String isAdmin){
this(title, cls, isAdmin,1); this(title, cls, isAdmin,1);
} }
...@@ -180,7 +180,7 @@ public class ExportExcel { ...@@ -180,7 +180,7 @@ public class ExportExcel {
* @param type 导出类型(1:导出数据;2:导出模板) * @param type 导出类型(1:导出数据;2:导出模板)
* @param groups 导入分组 * @param groups 导入分组
*/ */
public ExportExcel(String title, Class<?> cls, boolean isAdmin, int type, int... groups){ public ExportExcel(String title, Class<?> cls, String isAdmin, int type, int... groups){
// Get annotation field // Get annotation field
Field[] fs = cls.getDeclaredFields(); Field[] fs = cls.getDeclaredFields();
for (Field f : fs){ for (Field f : fs){
...@@ -225,7 +225,7 @@ public class ExportExcel { ...@@ -225,7 +225,7 @@ public class ExportExcel {
} }
} }
}else{ }else{
if (isAdmin){ if (isAdmin.equals("1")){
annotationList.add(new Object[]{ef, m}); annotationList.add(new Object[]{ef, m});
}else { }else {
if (!m.getName().equals("getTransferName")){ if (!m.getName().equals("getTransferName")){
......
...@@ -40,9 +40,71 @@ public class FrontReportBean extends BaseBean{ ...@@ -40,9 +40,71 @@ public class FrontReportBean extends BaseBean{
private String updateBy; //更新人\ private String updateBy; //更新人\
private Timestamp updateDate; //更新时间 private Timestamp updateDate; //更新时间
private List<String> ids; private List<String> ids;
private String code;// 验证码返回的code private String code;// 验证码返回的code
private String captcha;// 验证码 private String captcha;// 验证码
private String participants; //参与人
private String insider; //知情人
private String suggestion; //调查建议
private String reportDate; //事件时间
private String site; //发生地点
private String qq; //qq
private String weixin; //微信号
public String getParticipants() {
return participants;
}
public void setParticipants(String participants) {
this.participants = participants;
}
public String getInsider() {
return insider;
}
public void setInsider(String insider) {
this.insider = insider;
}
public String getSuggestion() {
return suggestion;
}
public void setSuggestion(String suggestion) {
this.suggestion = suggestion;
}
public String getReportDate() {
return reportDate;
}
public void setReportDate(String reportDate) {
this.reportDate = reportDate;
}
public String getSite() {
return site;
}
public void setSite(String site) {
this.site = site;
}
public String getQq() {
return qq;
}
public void setQq(String qq) {
this.qq = qq;
}
public String getWeixin() {
return weixin;
}
public void setWeixin(String weixin) {
this.weixin = weixin;
}
private List<ReportAttachmentBean> reportAttachmentList; // 附件 private List<ReportAttachmentBean> reportAttachmentList; // 附件
......
...@@ -37,22 +37,23 @@ import java.util.List; ...@@ -37,22 +37,23 @@ import java.util.List;
@Service @Service
@Transactional(readOnly = true) @Transactional(readOnly = true)
public class FrontReportService extends CrudService<FrontReportDao,FrontReportEntity>{ public class FrontReportService extends CrudService<FrontReportDao, FrontReportEntity> {
private static Logger log = LoggerFactory.getLogger(FrontReportService.class); private static Logger log = LoggerFactory.getLogger(FrontReportService.class);
// 添加举报信息 // 添加举报信息
@Transactional(readOnly = false) @Transactional(readOnly = false)
public ResponseBean addReport(FrontReportBean bean,String token,HttpServletRequest request){ public ResponseBean addReport(FrontReportBean bean, String token, HttpServletRequest request) {
ResponseBean responseBean = new ResponseBean(); ResponseBean responseBean = new ResponseBean();
String reportId = IdWorker.getNextId("R"); String reportId = IdWorker.getNextId("R");
bean.setId(reportId); bean.setId(reportId);
Date date = new Date(); Date date = new Date();
bean.setReportTime(DateUtils.formatDate(date,"yyyy-MM-dd HH:mm:ss")); bean.setReportTime(DateUtils.formatDate(date, "yyyy-MM-dd HH:mm:ss"));
bean.setReportStatus("0"); bean.setReportStatus("0");
log.info("report_source为:"+bean.getReportSource()); log.info("report_source为:" + bean.getReportSource());
log.info("token为:"+token); log.info("token为:" + token);
if (bean.getReportSource().contains("oa")){ if (bean.getReportSource().contains("oa")) {
try { try {
DefaultResourceLoader resourceLoader = new DefaultResourceLoader(); DefaultResourceLoader resourceLoader = new DefaultResourceLoader();
Resource resource = resourceLoader.getResource("LtpaToken.properties"); Resource resource = resourceLoader.getResource("LtpaToken.properties");
...@@ -69,6 +70,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn ...@@ -69,6 +70,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
LtpaToken ltpaToken = new LtpaToken(token); LtpaToken ltpaToken = new LtpaToken(token);
username = ltpaToken.getUsername(); username = ltpaToken.getUsername();
bean.setOaName(username); bean.setOaName(username);
bean.setReportPersonName(bean.getReportPersonName() + "-融创OA帐号:" + username);
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
...@@ -77,7 +79,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn ...@@ -77,7 +79,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
// 查询管理员 // 查询管理员
User user = dao.getUser(new User()); User user = dao.getUser(new User());
if(user!= null){ if (user != null) {
bean.setExchangeBeforeUser(user.getId()); bean.setExchangeBeforeUser(user.getId());
} }
bean.setCreateBy(user.getId()); bean.setCreateBy(user.getId());
...@@ -86,7 +88,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn ...@@ -86,7 +88,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
bean.setCreateDate(d); bean.setCreateDate(d);
bean.setUpdateDate(d); bean.setUpdateDate(d);
int port =request.getRemotePort();//返回发出请求的客户机的端口号。 int port = request.getRemotePort();//返回发出请求的客户机的端口号。
// logger.info("port:"+port); // logger.info("port:"+port);
// String ip = StringUtils.getRemoteAddr(Servlets.getRequest()); // String ip = StringUtils.getRemoteAddr(Servlets.getRequest());
// /** 根据ip获得城市 */ // /** 根据ip获得城市 */
...@@ -100,19 +102,19 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn ...@@ -100,19 +102,19 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
// bean.setReportIp(ip); // bean.setReportIp(ip);
// //
// bean.setExchangeBeforeUser(""); // bean.setExchangeBeforeUser("");
// 添加举报信息表 // 添加举报信息表
int row = 0; int row = 0;
try { try {
row = dao.insertReport(bean); row = dao.insertReport(bean);
}catch (Exception e){ } catch (Exception e) {
row = dao.insertReport(bean); row = dao.insertReport(bean);
} }
if(row == 1){ // 添加成功 if (row == 1) { // 添加成功
List<String> attachmentIds = bean.getIds(); List<String> attachmentIds = bean.getIds();
if(attachmentIds != null && attachmentIds.size() > 0){ // 添加举报附件 if (attachmentIds != null && attachmentIds.size() > 0) { // 添加举报附件
for(String attachmentId:attachmentIds){ for (String attachmentId : attachmentIds) {
ReportAttachmentUtils.addReportId(attachmentId,reportId); ReportAttachmentUtils.addReportId(attachmentId, reportId);
} }
} }
......
...@@ -210,6 +210,22 @@ public interface ReportDao extends CrudDao<ReportEntity> { ...@@ -210,6 +210,22 @@ public interface ReportDao extends CrudDao<ReportEntity> {
public int updateConclusion(ReportEntity reportEntity); public int updateConclusion(ReportEntity reportEntity);
/** /**
* 重新跟踪
*
* @param reportEntity
* @return
*/
public int againUpdateConclusion(ReportEntity reportEntity);
/**
* 转为线索
*
* @param reportEntity
* @return
*/
public int cluesUpdateConclusion(ReportEntity reportEntity);
/**
* 总数 * 总数
*/ */
public int getTotalNum(WorkbenchBean bean); public int getTotalNum(WorkbenchBean bean);
...@@ -230,5 +246,15 @@ public interface ReportDao extends CrudDao<ReportEntity> { ...@@ -230,5 +246,15 @@ public interface ReportDao extends CrudDao<ReportEntity> {
*/ */
public int deleteNotice(ReportEntity reportEntity); public int deleteNotice(ReportEntity reportEntity);
/**
* 查询有效用户
* @return
*/
public List<User> findAllUserList();
/**
* 查询移交给那位用户
* @return
*/
public String selectExchangeAfterUser(String report); public String selectExchangeAfterUser(String report);
} }
...@@ -25,7 +25,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -25,7 +25,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String reportPersonTel; //举报人电话 private String reportPersonTel; //举报人电话
private String reportPersonEmail; //举报人邮箱 private String reportPersonEmail; //举报人邮箱
private String reportSource; //举报途径 web:官网 oa:融创OA系统 supplier:供应商系统 wechat:微信公众号 sunacE:融E offline:线下扫码 tel:电话 email:邮件 visit:来访 private String reportSource; //举报途径 web:官网 oa:融创OA系统 supplier:供应商系统 wechat:微信公众号 sunacE:融E offline:线下扫码 tel:电话 email:邮件 visit:来访
private String reportStatus; //举报状态 0 未处理 1 处理中 2 已处理 private String reportStatus; //举报状态 0 未处理 1 处理中 2 已处理 3已关闭 4 待处理
private String supplementCompany; //被举报公司 private String supplementCompany; //被举报公司
private String supplementDepartment; //被举报部门 private String supplementDepartment; //被举报部门
private String supplementInformant; //被举报人 private String supplementInformant; //被举报人
...@@ -53,7 +53,99 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -53,7 +53,99 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String dealPerson; private String dealPerson;
private String lStatus; //关闭修改状态 private String lStatus; //关闭修改状态
private String isAdmin; //是否管理员 private String isAdmin; //是否管理员
private String isFzAdmin; //是否輔助管理员
private String oaarea; //账号区域 private String oaarea; //账号区域
private String participants; //参与人
private String insider; //知情人
private String suggestion; //调查建议
private String reportDate; //事件时间
private String site; //发生地点
private String qq; //qq
private String weixin; //微信号
private String ifClue; //联系人是否可见
public String getIfClue() {
return ifClue;
}
public void setIfClue(String ifClue) {
this.ifClue = ifClue;
}
public String getSelectExchangeAfterUser() {
return selectExchangeAfterUser;
}
public void setSelectExchangeAfterUser(String selectExchangeAfterUser) {
this.selectExchangeAfterUser = selectExchangeAfterUser;
}
private String selectExchangeAfterUser; //查询移交人
public String getIsFzAdmin() {
return isFzAdmin;
}
public void setIsFzAdmin(String isFzAdmin) {
this.isFzAdmin = isFzAdmin;
}
public String getParticipants() {
return participants;
}
public void setParticipants(String participants) {
this.participants = participants;
}
public String getInsider() {
return insider;
}
public void setInsider(String insider) {
this.insider = insider;
}
public String getSuggestion() {
return suggestion;
}
public void setSuggestion(String suggestion) {
this.suggestion = suggestion;
}
public String getReportDate() {
return reportDate;
}
public void setReportDate(String reportDate) {
this.reportDate = reportDate;
}
public String getSite() {
return site;
}
public void setSite(String site) {
this.site = site;
}
public String getQq() {
return qq;
}
public void setQq(String qq) {
this.qq = qq;
}
public String getWeixin() {
return weixin;
}
public void setWeixin(String weixin) {
this.weixin = weixin;
}
public String getOaarea() { public String getOaarea() {
return oaarea; return oaarea;
......
package com.ejweb.modules.report.service; package com.ejweb.modules.report.service;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ejweb.core.persistence.Page; import com.ejweb.core.persistence.Page;
import com.ejweb.core.service.CrudService; import com.ejweb.core.service.CrudService;
import com.ejweb.core.utils.IdGen; import com.ejweb.core.utils.IdGen;
...@@ -18,6 +19,7 @@ import com.ejweb.modules.sys.entity.Role; ...@@ -18,6 +19,7 @@ import com.ejweb.modules.sys.entity.Role;
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;
import com.ejweb.modules.workbench.entity.ReportNotice; import com.ejweb.modules.workbench.entity.ReportNotice;
import com.google.common.collect.Lists;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -88,19 +90,23 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -88,19 +90,23 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportEntity.setReportTime(reportTime); reportEntity.setReportTime(reportTime);
reportEntity.setReportStatus("0"); reportEntity.setReportStatus("0");
reportEntity.setExchangeBeforeUser(reportEntity.getCreateBy().getId()); reportEntity.setExchangeBeforeUser(reportEntity.getCreateBy().getId());
if (!this.checkRole(user)) { if (!this.checkRole(user).equals("1")) {
reportEntity.setExchangeAfterUser(reportEntity.getCreateBy().getId()); reportEntity.setExchangeAfterUser(reportEntity.getCreateBy().getId());
} }
String ip = user.getLoginIp(); String ip = user.getLoginIp();
int port = request.getRemotePort();//返回发出请求的客户机的端口号。 int port = request.getRemotePort();//返回发出请求的客户机的端口号。
// logger.info("port:"+port); // logger.info("port:"+port);
// ip = "183.129.142.154"; // ip = "183.129.142.154";&ip=" + ip
String url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=" + ip; String url = "http://pv.sohu.com/cityjson?ie=utf-8";
String ipResult = IpUtils.getURLContent(url).replace(";", ""); String ipResult = IpUtils.getURLContent(url).replace(";", "");
if (ipResult != "-2") { if (StringUtils.isNotBlank(ipResult)) {
IP2Regions json = JSON.parseObject(ipResult.split("=")[1], IP2Regions.class);
String city = json.getCity(); // String[] ipCity = ipResult.split("=");
JSONObject json = JSON.parseObject(ipResult.split("=")[1]);
String city = json.getString("cname");
reportEntity.setIpCity(city); reportEntity.setIpCity(city);
} }
reportEntity.setReportIp(ip); reportEntity.setReportIp(ip);
dao.addReport(reportEntity); dao.addReport(reportEntity);
...@@ -300,6 +306,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -300,6 +306,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} }
} }
reportDao.updateReportNotice(reportNotice); reportDao.updateReportNotice(reportNotice);
// if (updateCheckRole(reportEntity.getExchangeBeforeUser()).equals("辅助管理员")){
// reportNotice.setSendToId(reportEntity.getExchangeBeforeUser());
// reportDao.updateReportNotice(reportNotice);
// }
return 1; return 1;
} else { } else {
//消息表中不存在该条举报的信息,新增记录 //消息表中不存在该条举报的信息,新增记录
...@@ -502,6 +512,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -502,6 +512,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
dealResult = "举报不实"; dealResult = "举报不实";
} else if (dealResult.equals("6")) { } else if (dealResult.equals("6")) {
dealResult = "移交其他部门"; dealResult = "移交其他部门";
} else if (dealResult.equals("7")) {
dealResult = "转为线索";
} }
} else { } else {
...@@ -536,7 +548,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -536,7 +548,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
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();
if (this.checkRole(user)) { if (this.checkRole(user).equals("1")) {
if (StringUtils.isBlank(report.getTransferName()) || StringUtils.isBlank(report.getExchangeType())) { if (StringUtils.isBlank(report.getTransferName()) || StringUtils.isBlank(report.getExchangeType())) {
report.setTransferName("--"); report.setTransferName("--");
} else if (StringUtils.isNotBlank(report.getTransferName()) && StringUtils.isNotBlank(report.getExchangeType())) { } else if (StringUtils.isNotBlank(report.getTransferName()) && StringUtils.isNotBlank(report.getExchangeType())) {
...@@ -569,8 +581,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -569,8 +581,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
public List<ReportEntity> getReportQyList(ReportEntity reportEntity) { public List<ReportEntity> getReportQyList(ReportEntity reportEntity) {
List<ReportEntity> reportList = reportDao.findQyList(reportEntity); List<ReportEntity> reportList = reportDao.findQyList(reportEntity);
String exchangeAfterUser = ""; String exchangeAfterUser = "";
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 = ""; String typeStr = "";
...@@ -706,6 +717,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -706,6 +717,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
dealResult = "举报不实"; dealResult = "举报不实";
} else if (dealResult.equals("6")) { } else if (dealResult.equals("6")) {
dealResult = "移交其他部门"; dealResult = "移交其他部门";
} else if (dealResult.equals("7")) {
dealResult = "转为线索";
} }
} else { } else {
...@@ -740,7 +753,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -740,7 +753,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
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();
if (this.checkRole(user)) { if (this.checkRole(user).equals("1")) {
if (StringUtils.isBlank(report.getTransferName()) || StringUtils.isBlank(report.getExchangeType())) { if (StringUtils.isBlank(report.getTransferName()) || StringUtils.isBlank(report.getExchangeType())) {
report.setTransferName("--"); report.setTransferName("--");
} else if (StringUtils.isNotBlank(report.getTransferName()) && StringUtils.isNotBlank(report.getExchangeType())) { } else if (StringUtils.isNotBlank(report.getTransferName()) && StringUtils.isNotBlank(report.getExchangeType())) {
...@@ -801,25 +814,52 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -801,25 +814,52 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
} }
/** /**
* 判断当前用户是否为管理员 * 判断当前用户角色 1管理员 2辅助管理员
* *
* @param user * @param user
* @return * @return
*/ */
public boolean checkRole(User user) { public String checkRole(User user) {
boolean isAdmin = false; String roleNum = "";
Role roleEntity = new Role(); Role roleEntity = new Role();
roleEntity.setUser(user); roleEntity.setUser(user);
List<Role> roleList = roleDao.findList(roleEntity); List<Role> roleList = roleDao.findList(roleEntity);
if (roleList != null && roleList.size() != 0) { if (roleList != null && roleList.size() != 0) {
for (Role role : roleList) { for (Role role : roleList) {
if (role.getName().equals("系统管理员")) { if (role.getName().equals("系统管理员")) {
isAdmin = true; roleNum = "1";
break;
} else if (role.getName().equals("辅助管理员")) {
roleNum = "2";
break;
}
}
}
return roleNum;
}
/**
* 判断当前用户角色 1管理员 2辅助管理员
*
* @param
* @return
*/
public String updateCheckRole(String transferUser) {
String roleName = "";
User user = UserUtils.get(transferUser);
Role roleEntity = new Role();
roleEntity.setUser(user);
List<Role> roleList = roleDao.findList(roleEntity);
if (roleList != null && roleList.size() != 0) {
for (Role role : roleList) {
if (role.getName().equals("辅助管理员")) {
roleName = "辅助管理员";
break; break;
} }
} }
} }
return isAdmin; return roleName;
} }
public String findExchangeUser(String id) { public String findExchangeUser(String id) {
...@@ -858,9 +898,40 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -858,9 +898,40 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
return reportDao.deleteConclusion(reportEntity); return reportDao.deleteConclusion(reportEntity);
} }
/**
* 重新跟踪
*
* @param reportEntity
* @return
*/
@Transactional(readOnly = false)
public int againUpdateConclusion(ReportEntity reportEntity) {
return reportDao.againUpdateConclusion(reportEntity);
}
/**
* 转为线索
*
* @param reportEntity
* @return
*/
@Transactional(readOnly = false)
public int cluesUpdateConclusion(ReportEntity reportEntity) {
return reportDao.cluesUpdateConclusion(reportEntity);
}
/**
* 区域查询列表
*
* @param page
* @param reportEntity
* @return
*/
public Page<ReportEntity> findQyList(Page<ReportEntity> page, ReportEntity reportEntity) { public Page<ReportEntity> findQyList(Page<ReportEntity> page, ReportEntity reportEntity) {
reportEntity.setPage(page); reportEntity.setPage(page);
page.setList(reportDao.findQyList(reportEntity)); page.setList(reportDao.findQyList(reportEntity));
return page; return page;
} }
} }
...@@ -421,6 +421,8 @@ public class ReportToWordController { ...@@ -421,6 +421,8 @@ public class ReportToWordController {
deal_result = "举报不实"; deal_result = "举报不实";
} else if (deal_result.equals("6")) { } else if (deal_result.equals("6")) {
deal_result = "移交其他部门"; deal_result = "移交其他部门";
}else if (dealResult.equals("7")) {
deal_result = "转为线索";
} }
} else { } else {
deal_result = ""; deal_result = "";
......
...@@ -57,6 +57,24 @@ public class User extends DataEntity<User> { ...@@ -57,6 +57,24 @@ public class User extends DataEntity<User> {
private Position position; //职位 private Position position; //职位
private String devision; //组织 private String devision; //组织
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
private String label;//
private String value;//
public String getArea() { public String getArea() {
return area; return area;
} }
......
...@@ -26,7 +26,7 @@ public class WorkbenchBean { ...@@ -26,7 +26,7 @@ public class WorkbenchBean {
private int processed = 0; private int processed = 0;
private int closed = 0; private int closed = 0;
//举报结果 //处理结论
private int repResultTotal = 0; private int repResultTotal = 0;
private int invalid = 0; private int invalid = 0;
private int complainNum = 0; private int complainNum = 0;
...@@ -35,6 +35,7 @@ public class WorkbenchBean { ...@@ -35,6 +35,7 @@ public class WorkbenchBean {
private int unsettled = 0; private int unsettled = 0;
private int unreaListic = 0; private int unreaListic = 0;
private int transfer = 0; private int transfer = 0;
private int clue = 0;
//总体 //总体
private int total = 0; private int total = 0;
...@@ -67,6 +68,28 @@ public class WorkbenchBean { ...@@ -67,6 +68,28 @@ public class WorkbenchBean {
private int Other = 0; private int Other = 0;
private int land = 0; private int land = 0;
//区域
private String area;
//角色
private String userRoleName="";
public String getUserRoleName() {
return userRoleName;
}
public void setUserRoleName(String userRoleName) {
this.userRoleName = userRoleName;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public int getLand() { public int getLand() {
return land; return land;
} }
...@@ -448,4 +471,13 @@ public class WorkbenchBean { ...@@ -448,4 +471,13 @@ public class WorkbenchBean {
public void setOther(int other) { public void setOther(int other) {
Other = other; Other = other;
} }
public int getClue() {
return clue;
}
public void setClue(int clue) {
this.clue = clue;
}
} }
...@@ -62,8 +62,10 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> { ...@@ -62,8 +62,10 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
} else if ("6".equals((String) res.get("DEAL_RESULT"))) { } else if ("6".equals((String) res.get("DEAL_RESULT"))) {
//移交其他部门 //移交其他部门
workbench.setTransfer(Integer.valueOf(String.valueOf(res.get("COUNT(DEAL_RESULT)")))); workbench.setTransfer(Integer.valueOf(String.valueOf(res.get("COUNT(DEAL_RESULT)"))));
} else if ("7".equals((String) res.get("DEAL_RESULT"))) {
//转为线索
workbench.setClue(Integer.valueOf(String.valueOf(res.get("COUNT(DEAL_RESULT)"))));
} }
} }
} }
......
...@@ -33,10 +33,13 @@ public class WorkbenchController extends BaseController { ...@@ -33,10 +33,13 @@ public class WorkbenchController extends BaseController {
@Autowired @Autowired
private ReportService reportService; private ReportService reportService;
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) {
WorkbenchBean workbench; WorkbenchBean workbench;
selAreaTemp=bean.getArea();
try { try {
User user = UserUtils.getUser(); User user = UserUtils.getUser();
bean = getWorkbenchByUser(user, bean); bean = getWorkbenchByUser(user, bean);
...@@ -62,6 +65,8 @@ public class WorkbenchController extends BaseController { ...@@ -62,6 +65,8 @@ public class WorkbenchController extends BaseController {
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("unProcess", bean.getUnProcess()); res.put("unProcess", bean.getUnProcess());
res.put("processing", bean.getProcessing()); res.put("processing", bean.getProcessing());
...@@ -76,6 +81,7 @@ public class WorkbenchController extends BaseController { ...@@ -76,6 +81,7 @@ public class WorkbenchController extends BaseController {
res.put("unreaListic", bean.getUnreaListic()); res.put("unreaListic", bean.getUnreaListic());
res.put("reportWeichuli", bean.getTotalCount() - bean.getInvalid() - bean.getComplainNum() - bean.getVerified() - bean.getConfirmed() - bean.getUnreaListic() - bean.getTransfer()); res.put("reportWeichuli", bean.getTotalCount() - bean.getInvalid() - bean.getComplainNum() - bean.getVerified() - bean.getConfirmed() - bean.getUnreaListic() - bean.getTransfer());
res.put("transfer", bean.getTransfer()); res.put("transfer", bean.getTransfer());
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());
//举报类型 //举报类型
...@@ -96,6 +102,16 @@ public class WorkbenchController extends BaseController { ...@@ -96,6 +102,16 @@ 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());
//举报途径
res.put("weChat", bean.getWeChat());
res.put("web", bean.getWeb());
res.put("sunacE", bean.getSunacE());
res.put("oa", bean.getOa());
res.put("offline", bean.getOffline());
res.put("phone", bean.getPhone());
res.put("supplier", bean.getSupplier());
res.put("email", bean.getEmail());
res.put("visit", bean.getVisit());
String jsonStr = res.toJSONString(); String jsonStr = res.toJSONString();
PrintWriter out = response.getWriter(); PrintWriter out = response.getWriter();
response.setContentType("application/json;charset=utf-8"); response.setContentType("application/json;charset=utf-8");
...@@ -112,10 +128,12 @@ public class WorkbenchController extends BaseController { ...@@ -112,10 +128,12 @@ public class WorkbenchController extends BaseController {
//判断登录人的角色 //判断登录人的角色
String roleName = reportService.findRole(user); String roleName = reportService.findRole(user);
if (StringUtils.isNotBlank(roleName)) { if (StringUtils.isNotBlank(roleName)) {
bean.setUserRoleName(roleName);
if (!roleName.equals("系统管理员")) { if (!roleName.equals("系统管理员")) {
bean.setIsAdmin(user.getId()); bean.setIsAdmin(user.getId());
} }
} }
bean.setArea(selAreaTemp);
bean = workbenchService.getWorkbench(bean); bean = workbenchService.getWorkbench(bean);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
...@@ -41,9 +41,9 @@ oa.notify.remind.interval=60000 ...@@ -41,9 +41,9 @@ oa.notify.remind.interval=60000
#============================# #============================#
#\u4f1a\u8bdd\u8d85\u65f6\uff0c \u5355\u4f4d\uff1a\u6beb\u79d2\uff0c 20m=1200000ms, 30m=1800000ms, 60m=3600000ms #\u4f1a\u8bdd\u8d85\u65f6\uff0c \u5355\u4f4d\uff1a\u6beb\u79d2\uff0c 20m=1200000ms, 30m=1800000ms, 60m=3600000ms
session.sessionTimeout=1800000 session.sessionTimeout=2800000
#\u4f1a\u8bdd\u6e05\u7406\u95f4\u9694\u65f6\u95f4\uff0c \u5355\u4f4d\uff1a\u6beb\u79d2\uff0c2m=120000ms\u3002 #\u4f1a\u8bdd\u6e05\u7406\u95f4\u9694\u65f6\u95f4\uff0c \u5355\u4f4d\uff1a\u6beb\u79d2\uff0c2m=120000ms\u3002
session.sessionTimeoutClean=120000 session.sessionTimeoutClean=220000
#\u7f13\u5b58\u8bbe\u7f6e #\u7f13\u5b58\u8bbe\u7f6e
ehcache.configFile=cache/ehcache-local.xml ehcache.configFile=cache/ehcache-local.xml
...@@ -100,7 +100,7 @@ file.image.thumb.height=640 ...@@ -100,7 +100,7 @@ file.image.thumb.height=640
#file.prefix.url=http://192.168.7.210:8081/ #file.prefix.url=http://192.168.7.210:8081/
#ڴʽ #ڴʽ
#file.prefix.url=http://192.168.2.62:8082/ #file.prefix.url=http://192.168.2.62:8082/
file.prefix.url=http://221.239.118.251:8899/static/report/ file.prefix.url=http://report.sunac.com.cn:8899/static/report/
# The Prefix separator # The Prefix separator
file.upload.path.separator = / file.upload.path.separator = /
......
...@@ -7,27 +7,22 @@ db.table.prefix=sunac_ ...@@ -7,27 +7,22 @@ db.table.prefix=sunac_
#jdbc.username=reportuser #jdbc.username=reportuser
#jdbc.password=$R@20$7 #jdbc.password=$R@20$7
#融创测试数据库
jdbc.type=oracle
jdbc.driver.class=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@192.168.2.53:1521:eas
jdbc.username=eas7531
jdbc.password=sunac
##融创测试数据库
#jdbc.type=oracle
#jdbc.driver.class=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@192.168.7.207:1521:eas
#jdbc.username= easdba
#jdbc.password= oracle
#正式数据库 #融创测试数据库
#jdbc.type=oracle #jdbc.type=oracle
#jdbc.driver.class=oracle.jdbc.driver.OracleDriver #jdbc.driver.class=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@192.168.2.24:1521:eas #jdbc.url=jdbc:oracle:thin:@192.168.7.16:1521:EASUAT
#jdbc.username= easdba #jdbc.username= eas7533
#jdbc.password= Sunac_1918 #jdbc.password= sunac
#正式数据库
jdbc.type=oracle
jdbc.driver.class=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@192.168.2.24:1521:eas1
jdbc.username= easdba
jdbc.password= Sunac_1918
#
#初始化连接 #初始化连接
jdbc.initialSize=0 jdbc.initialSize=0
......
...@@ -51,7 +51,14 @@ ...@@ -51,7 +51,14 @@
update_date, update_date,
oa_name, oa_name,
report_ip, report_ip,
ip_city ip_city,
report_participants,
report_insider,
report_suggestion,
report_Date,
report_site,
report_qq,
report_weixin
) VALUES( ) VALUES(
#{id}, #{id},
#{reportProject}, #{reportProject},
...@@ -73,7 +80,14 @@ ...@@ -73,7 +80,14 @@
#{updateDate}, #{updateDate},
#{oaName}, #{oaName},
#{reportIp}, #{reportIp},
#{ipCity} #{ipCity},
#{participants},
#{insider},
#{suggestion},
#{reportDate},
#{site},
#{qq},
#{weixin}
) )
</insert> </insert>
......
...@@ -35,7 +35,15 @@ ...@@ -35,7 +35,15 @@
r.report_ip AS "reportIp", r.report_ip AS "reportIp",
r.ip_city AS "ipCity", r.ip_city AS "ipCity",
r.is_send_email AS "isSendEmail", r.is_send_email AS "isSendEmail",
su.area AS "oaarea" su.area AS "oaarea",
r.report_participants AS "participants",
r.report_insider AS "insider",
r.report_suggestion AS "suggestion",
r.report_Date AS "reportDate",
r.report_site AS "site",
r.report_qq AS "qq",
r.report_weixin AS "weixin",
r.report_ifClue AS "ifClue"
</sql> </sql>
...@@ -61,11 +69,18 @@ ...@@ -61,11 +69,18 @@
ON r.create_by = SU.ID ON r.create_by = SU.ID
<where> <where>
1 = 1 1 = 1
<if test="isAdmin == null"> <if test="isAdmin == null and isFzAdmin == null">
AND r.exchange_after_user = #{exchangeAfterUser} AND r.create_by != #{exchangeAfterUser} AND r.exchange_after_user = #{exchangeAfterUser} AND r.create_by != #{exchangeAfterUser}
</if> </if>
<if test="isAdmin != null"> <if test="isAdmin != null">
AND su.role_id='1' AND (su.role_id='1'or su.role_id='2')
</if>
<if test="isFzAdmin != null">
AND (R.EXCHANGE_BEFORE_USER = #{exchangeBeforeUser} OR
R.EXCHANGE_AFTER_USER = #{exchangeBeforeUser}
OR R.CREATE_BY = #{exchangeBeforeUser}) AND
su.role_id='1'or su.role_id='2'
</if> </if>
<if test="reportStatus != null and reportStatus != ''"> <if test="reportStatus != null and reportStatus != ''">
AND r.report_status = #{reportStatus} AND r.report_status = #{reportStatus}
...@@ -123,6 +138,15 @@ ...@@ -123,6 +138,15 @@
<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="reportSource != null and reportSource != ''">
AND r.report_source = #{reportSource}
</if>
<if test="selectExchangeAfterUser != null and selectExchangeAfterUser != ''">
AND r.exchange_after_user = #{selectExchangeAfterUser}
</if>
<if test="oaname != null and oaname != ''">
AND r.oa_name = #{oaname}
</if>
</where> </where>
ORDER BY r.update_date DESC ORDER BY r.update_date DESC
</select> </select>
...@@ -133,9 +157,12 @@ ...@@ -133,9 +157,12 @@
,su.name AS "transferName" ,su.name AS "transferName"
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_ROLE R
ON R.ID = UR.ROLE_ID
<where> <where>
1 = 1 1 = 1
<if test="isAdmin == null"> <if test="isAdmin == null and isFzAdmin == null">
AND r.exchange_after_user = #{exchangeAfterUser} AND r.create_by = #{exchangeAfterUser} AND r.exchange_after_user = #{exchangeAfterUser} AND r.create_by = #{exchangeAfterUser}
</if> </if>
<if test="isAdmin != null"> <if test="isAdmin != null">
...@@ -150,6 +177,20 @@ ...@@ -150,6 +177,20 @@
'Group', 'Group',
'PropertyGroup') 'PropertyGroup')
</if> </if>
<if test="isFzAdmin != null">
AND r.exchange_before_user = #{exchangeBeforeUser}
AND r.create_by != #{exchangeBeforeUser}
AND su.area IN ('North China',
'BeiJing',
'ShangHai',
'SouthWest',
'SouthEast',
'Central China',
'GuangShen',
'Hainan',
'Group',
'PropertyGroup')
</if>
<if test="reportStatus != null and reportStatus != ''"> <if test="reportStatus != null and reportStatus != ''">
AND r.report_status = #{reportStatus} AND r.report_status = #{reportStatus}
</if> </if>
...@@ -206,6 +247,15 @@ ...@@ -206,6 +247,15 @@
<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="reportSource != null and reportSource != ''">
AND r.report_source = #{reportSource}
</if>
<if test="selectExchangeAfterUser != null and selectExchangeAfterUser != ''">
AND r.exchange_after_user = #{selectExchangeAfterUser}
</if>
<if test="oaname != null and oaname != ''">
AND r.oa_name = #{oaname}
</if>
</where> </where>
ORDER BY r.update_date DESC ORDER BY r.update_date DESC
</select> </select>
...@@ -265,7 +315,15 @@ ...@@ -265,7 +315,15 @@
update_date, update_date,
oa_name, oa_name,
report_ip, report_ip,
ip_city ip_city,
report_participants,
report_insider,
report_suggestion,
report_Date,
report_site,
report_qq,
report_weixin
) VALUES ( ) VALUES (
#{id}, #{id},
#{reportProject}, #{reportProject},
...@@ -288,7 +346,14 @@ ...@@ -288,7 +346,14 @@
#{updateDate}, #{updateDate},
#{oaname}, #{oaname},
#{reportIp}, #{reportIp},
#{ipCity} #{ipCity},
#{participants},
#{insider},
#{suggestion},
#{reportDate},
#{site},
#{qq},
#{weixin}
) )
</insert> </insert>
...@@ -319,8 +384,10 @@ ...@@ -319,8 +384,10 @@
supplement_project = #{supplementProject}, supplement_project = #{supplementProject},
supplement_content = #{supplementContent}, supplement_content = #{supplementContent},
deal_person_name = #{dealPersonName}, deal_person_name = #{dealPersonName},
exchange_before_user = #{exchangeBeforeUser},
exchange_after_user = #{exchangeAfterUser}, exchange_after_user = #{exchangeAfterUser},
exchange_type = #{exchangeType}, exchange_type = #{exchangeType},
report_ifClue = #{ifClue},
deal_result = #{dealResult}, deal_result = #{dealResult},
update_by = #{updateBy.id}, update_by = #{updateBy.id},
update_date = #{updateDate} update_date = #{updateDate}
...@@ -523,6 +590,9 @@ ...@@ -523,6 +590,9 @@
</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="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
GROUP BY report_status GROUP BY report_status
</select> </select>
...@@ -544,6 +614,9 @@ ...@@ -544,6 +614,9 @@
</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="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
GROUP BY deal_result GROUP BY deal_result
</select> </select>
...@@ -564,6 +637,9 @@ ...@@ -564,6 +637,9 @@
</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="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
GROUP BY report_source GROUP BY report_source
</select> </select>
...@@ -615,6 +691,9 @@ ...@@ -615,6 +691,9 @@
</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="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</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="ReportEntity">
...@@ -662,6 +741,9 @@ ...@@ -662,6 +741,9 @@
</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="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
order by r.create_date desc order by r.create_date desc
) )
WHERE WHERE
...@@ -734,6 +816,18 @@ ...@@ -734,6 +816,18 @@
WHERE id = #{id} WHERE id = #{id}
</update> </update>
<update id="againUpdateConclusion">
UPDATE ct_bbtc_report SET
report_status= '1'
WHERE id = #{id}
</update>
<update id="cluesUpdateConclusion">
UPDATE ct_bbtc_report SET
report_status= '4'
WHERE id = #{id}
</update>
<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
...@@ -751,6 +845,9 @@ ...@@ -751,6 +845,9 @@
</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="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
</select> </select>
<delete id="deleteConclusion"> <delete id="deleteConclusion">
...@@ -772,4 +869,15 @@ ...@@ -772,4 +869,15 @@
WHERE WHERE
su.id=#{report} su.id=#{report}
</select> </select>
<select id="findAllUserList" resultType="User">
SELECT id AS ID,
id AS value,
name AS label
from ct_bbtc_sys_user
where del_flag = 0
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -243,5 +243,11 @@ ...@@ -243,5 +243,11 @@
<function-signature>java.lang.String toJsonString(java.lang.Object)</function-signature> <function-signature>java.lang.String toJsonString(java.lang.Object)</function-signature>
<example>${fns:toJson(object)}</example> <example>${fns:toJson(object)}</example>
</function> </function>
<function>
<description>获取系统有效用户</description>
<name>getTransferName</name>
<function-class>com.ejweb.modules.report.web.ReportController</function-class>
<function-signature>java.util.List getTransferName()</function-signature>
<example>${fnc:getTransferName()}</example>
</function>
</taglib> </taglib>
...@@ -170,6 +170,30 @@ ...@@ -170,6 +170,30 @@
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">参与人:</label>
<div class="controls">
<form:input path="participants" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">知情人:</label>
<div class="controls">
<form:input path="insider" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">发生时间:</label>
<div class="controls">
<form:input path="reportDate" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">地点:</label>
<div class="controls">
<form:input path="site" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</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="reportContent" htmlEscape="true" path="reportContent" rows="6" maxlength="3000" <form:textarea id="reportContent" htmlEscape="true" path="reportContent" rows="6" maxlength="3000"
...@@ -179,6 +203,12 @@ ...@@ -179,6 +203,12 @@
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">调查建议:</label>
<div class="controls">
<form:input path="suggestion" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">附件:</label> <label class="control-label">附件:</label>
<div class="controls"> <div class="controls">
<form:hidden id="nameFile" path="reportAttachment" htmlEscape="false" <form:hidden id="nameFile" path="reportAttachment" htmlEscape="false"
...@@ -207,6 +237,18 @@ ...@@ -207,6 +237,18 @@
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">QQ号:</label>
<div class="controls">
<form:input path="qq" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">微信号:</label>
<div class="controls">
<form:input path="weixin" htmlEscape="false" maxlength="200" class="input-xlarge"/>
</div>
</div>
<div class="control-group">
<label class="control-label">举报途径:</label> <label class="control-label">举报途径:</label>
<div class="controls"> <div class="controls">
<form:radiobutton path="reportSource" value="tel" checked="true"/>电话&emsp; <form:radiobutton path="reportSource" value="tel" checked="true"/>电话&emsp;
......
...@@ -166,6 +166,9 @@ ...@@ -166,6 +166,9 @@
showDiv.style.display = 'none'; showDiv.style.display = 'none';
showDiv.innerHTML = ''; showDiv.innerHTML = '';
} }
</script> </script>
<style type="text/css"> <style type="text/css">
...@@ -264,10 +267,10 @@ ...@@ -264,10 +267,10 @@
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li <c:if test="${flag eq null or flag eq ''}">class="active"</c:if>><a href="${ctx}/report/list">跟踪中举报列表</a></li> <li <c:if test="${flag eq '1'}">class="active"</c:if>><a href="${ctx}/report/list?flag=1">跟踪中举报列表</a></li>
<li <c:if test="${flag eq '0'}">class="active"</c:if>><a href="${ctx}/report/list?flag=0">未处理举报列表</a></li> <li <c:if test="${flag eq '0'}">class="active"</c:if>><a href="${ctx}/report/list?flag=0">未处理举报列表</a></li>
<li <c:if test="${flag eq '2'}">class="active"</c:if>><a href="${ctx}/report/list?flag=2">已处理举报列表</a></li> <li <c:if test="${flag eq '4'}">class="active"</c:if>><a href="${ctx}/report/list?flag=4">线索列表</a></li>
<li <c:if test="${flag eq '1'}">class="active"</c:if>><a href="${ctx}/report/list?flag=1">举报列表</a></li> <li <c:if test="${flag eq null or flag eq ''}">class="active"</c:if>><a href="${ctx}/report/list">举报列表</a></li>
<%--<li style="float: right;"><input id="btnAdd" class="btn btn-primary" type="button" value="举报录入"/></li>--%> <%--<li style="float: right;"><input id="btnAdd" class="btn btn-primary" type="button" value="举报录入"/></li>--%>
</ul> </ul>
...@@ -316,9 +319,23 @@ ...@@ -316,9 +319,23 @@
<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></li> htmlEscape="false"/></form:select></li>
<li class="clearfix"></li> <li><label>举报途径:</label><form:select onchange="resetPageNo();" path="reportSource" class="input-small">
<li class="btns"> <form:option value=" ">请选择</form:option>
<%--<label style="width:auto;">--%>&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" <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'}">
<li><label>移交给:</label><form:select onchange="resetPageNo();" path="selectExchangeAfterUser" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${fns:getTransferName()}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li></c:if>
<c:if test="${isAdmin eq '1' || isAdmin eq '2'}">
<li><label>录入人:</label><form:select onchange="resetPageNo();" path="oaname" class="input-small">
<form:option value=" ">请选择</form:option>
<form:options items="${fns:getTransferName()}" itemLabel="label" itemValue="label"
htmlEscape="false"/></form:select></li></c:if>
<li class="clearfix"></li>
<li class="btns">
<%-- <label style="width:auto;">--%>&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary"
type="submit" value="筛选"/>&nbsp;&nbsp; type="submit" value="筛选"/>&nbsp;&nbsp;
<input id="btnReset" class="btn btn-primary" type="button" value="重置"/>&nbsp;&nbsp; <input id="btnReset" class="btn btn-primary" type="button" value="重置"/>&nbsp;&nbsp;
<input id="btnExport" class="btn btn-primary" type="button" value="导出"/></label> <input id="btnExport" class="btn btn-primary" type="button" value="导出"/></label>
...@@ -363,7 +380,7 @@ ...@@ -363,7 +380,7 @@
<tr> <tr>
<th style="width:10%">业务类型</th> <th style="width:10%">业务类型</th>
<th>被举报项目/部门</th> <th>被举报项目/部门</th>
<th>OA账号</th> <th>录入人</th>
<th>举报人</th> <th>举报人</th>
<th>举报人电话</th> <th>举报人电话</th>
<th>举报途径</th> <th>举报途径</th>
...@@ -374,7 +391,7 @@ ...@@ -374,7 +391,7 @@
<th>处理结论</th> <th>处理结论</th>
<th>移交部门</th> <th>移交部门</th>
<th>处理人</th> <th>处理人</th>
<c:if test="${isAdmin eq true}"> <c:if test="${isAdmin eq '1'||isAdmin eq '2'}">
<th>移交给</th> <th>移交给</th>
</c:if> </c:if>
<th>内容</th> <th>内容</th>
...@@ -405,6 +422,7 @@ ...@@ -405,6 +422,7 @@
<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"> <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 'North China'}">华北区域公司</c:if>
<c:if test="${report.supplementArea eq 'BeiJing'}">北京区域公司</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 'ShangHai'}">上海区域公司</c:if>
...@@ -426,7 +444,7 @@ ...@@ -426,7 +444,7 @@
<c:if test="${report.reportStatus eq '1'}">跟踪中</c:if> <c:if test="${report.reportStatus eq '1'}">跟踪中</c:if>
<c:if test="${report.reportStatus eq '2'}">已处理</c:if> <c:if test="${report.reportStatus eq '2'}">已处理</c:if>
<c:if test="${report.reportStatus eq '3'}">已关闭</c:if> <c:if test="${report.reportStatus eq '3'}">已关闭</c:if>
<%--<c:if test="${report.reportStatus eq '3'}">受理中</c:if>--%> <c:if test="${report.reportStatus eq '4'}">待处理</c:if>
</td> </td>
<td align="center"> <td align="center">
<c:if test="${report.dealResult eq null}">--</c:if> <c:if test="${report.dealResult eq null}">--</c:if>
...@@ -459,9 +477,9 @@ ...@@ -459,9 +477,9 @@
<c:if test="${report.dealPersonName eq null}">--</c:if> <c:if test="${report.dealPersonName eq null}">--</c:if>
<c:if test="${report.dealPersonName ne null}">${report.dealPersonName}</c:if> <c:if test="${report.dealPersonName ne null}">${report.dealPersonName}</c:if>
</td> </td>
<c:if test="${isAdmin eq true}"> <c:if test="${isAdmin eq '1'||isAdmin eq '2'}">
<td align="center"> <td align="center">
<c:if test="${report.transferName eq null || report.exchangeType eq null}">--</c:if> <c:if test="${report.transferName eq null && report.exchangeType eq null}">--</c:if>
<c:if test="${report.transferName ne null && report.exchangeType ne null}">${report.transferName}</c:if> <c:if test="${report.transferName ne null && report.exchangeType ne null}">${report.transferName}</c:if>
</td> </td>
</c:if> </c:if>
...@@ -480,7 +498,7 @@ ...@@ -480,7 +498,7 @@
<a href="${ctx}/report/view?id=${report.id}">查看</a> <a href="${ctx}/report/view?id=${report.id}">查看</a>
<c:if test="${report.reportStatus ne '2' && report.reportStatus ne '3'}"><a <c:if test="${report.reportStatus ne '2' && report.reportStatus ne '3'}"><a
href="${ctx}/report/track?id=${report.id}">跟踪</a></c:if> href="${ctx}/report/track?id=${report.id}">跟踪</a></c:if>
<c:if test="${isAdmin eq true }"> <c:if test="${isAdmin eq '1'}">
<a href="#" onclick="del('${report.id}')">删除</a></c:if> <a href="#" onclick="del('${report.id}')">删除</a></c:if>
<a href="#" onclick="openDownloadDialog('${report.id}')">转为文档</a> <a href="#" onclick="openDownloadDialog('${report.id}')">转为文档</a>
......
...@@ -41,9 +41,9 @@ oa.notify.remind.interval=60000 ...@@ -41,9 +41,9 @@ oa.notify.remind.interval=60000
#============================# #============================#
#\u4f1a\u8bdd\u8d85\u65f6\uff0c \u5355\u4f4d\uff1a\u6beb\u79d2\uff0c 20m=1200000ms, 30m=1800000ms, 60m=3600000ms #\u4f1a\u8bdd\u8d85\u65f6\uff0c \u5355\u4f4d\uff1a\u6beb\u79d2\uff0c 20m=1200000ms, 30m=1800000ms, 60m=3600000ms
session.sessionTimeout=1800000 session.sessionTimeout=2800000
#\u4f1a\u8bdd\u6e05\u7406\u95f4\u9694\u65f6\u95f4\uff0c \u5355\u4f4d\uff1a\u6beb\u79d2\uff0c2m=120000ms\u3002 #\u4f1a\u8bdd\u6e05\u7406\u95f4\u9694\u65f6\u95f4\uff0c \u5355\u4f4d\uff1a\u6beb\u79d2\uff0c2m=120000ms\u3002
session.sessionTimeoutClean=120000 session.sessionTimeoutClean=220000
#\u7f13\u5b58\u8bbe\u7f6e #\u7f13\u5b58\u8bbe\u7f6e
ehcache.configFile=cache/ehcache-local.xml ehcache.configFile=cache/ehcache-local.xml
...@@ -100,7 +100,7 @@ file.image.thumb.height=640 ...@@ -100,7 +100,7 @@ file.image.thumb.height=640
#file.prefix.url=http://192.168.7.210:8081/ #file.prefix.url=http://192.168.7.210:8081/
#ڴʽ #ڴʽ
#file.prefix.url=http://192.168.2.62:8082/ #file.prefix.url=http://192.168.2.62:8082/
file.prefix.url=http://221.239.118.251:8899/static/report/ file.prefix.url=http://report.sunac.com.cn:8899/static/report/
# The Prefix separator # The Prefix separator
file.upload.path.separator = / file.upload.path.separator = /
......
...@@ -7,27 +7,22 @@ db.table.prefix=sunac_ ...@@ -7,27 +7,22 @@ db.table.prefix=sunac_
#jdbc.username=reportuser #jdbc.username=reportuser
#jdbc.password=$R@20$7 #jdbc.password=$R@20$7
#融创测试数据库
jdbc.type=oracle
jdbc.driver.class=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@192.168.2.53:1521:eas
jdbc.username=eas7531
jdbc.password=sunac
##融创测试数据库
#jdbc.type=oracle
#jdbc.driver.class=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@192.168.7.207:1521:eas
#jdbc.username= easdba
#jdbc.password= oracle
#正式数据库 #融创测试数据库
#jdbc.type=oracle #jdbc.type=oracle
#jdbc.driver.class=oracle.jdbc.driver.OracleDriver #jdbc.driver.class=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@192.168.2.24:1521:eas #jdbc.url=jdbc:oracle:thin:@192.168.7.16:1521:EASUAT
#jdbc.username= easdba #jdbc.username= eas7533
#jdbc.password= Sunac_1918 #jdbc.password= sunac
#正式数据库
jdbc.type=oracle
jdbc.driver.class=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@192.168.2.24:1521:eas1
jdbc.username= easdba
jdbc.password= Sunac_1918
#
#初始化连接 #初始化连接
jdbc.initialSize=0 jdbc.initialSize=0
......
...@@ -243,5 +243,11 @@ ...@@ -243,5 +243,11 @@
<function-signature>java.lang.String toJsonString(java.lang.Object)</function-signature> <function-signature>java.lang.String toJsonString(java.lang.Object)</function-signature>
<example>${fns:toJson(object)}</example> <example>${fns:toJson(object)}</example>
</function> </function>
<function>
<description>获取系统有效用户</description>
<name>getTransferName</name>
<function-class>com.ejweb.modules.report.web.ReportController</function-class>
<function-signature>java.util.List getTransferName()</function-signature>
<example>${fnc:getTransferName()}</example>
</function>
</taglib> </taglib>
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