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"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
<facet type="web" name="Web">
<configuration>
<descriptors>
......@@ -11,9 +14,6 @@
</webroots>
</configuration>
</facet>
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/classes" />
......@@ -21,9 +21,6 @@
<content url="file://$MODULE_DIR$">
<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/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$/target" />
</content>
......
......@@ -90,7 +90,7 @@ public class ExportExcel {
* @param title 表格标题,传“空值”,表示无标题
* @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);
}
......@@ -180,7 +180,7 @@ public class ExportExcel {
* @param type 导出类型(1:导出数据;2:导出模板)
* @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
Field[] fs = cls.getDeclaredFields();
for (Field f : fs){
......@@ -225,7 +225,7 @@ public class ExportExcel {
}
}
}else{
if (isAdmin){
if (isAdmin.equals("1")){
annotationList.add(new Object[]{ef, m});
}else {
if (!m.getName().equals("getTransferName")){
......
......@@ -40,9 +40,71 @@ public class FrontReportBean extends BaseBean{
private String updateBy; //更新人\
private Timestamp updateDate; //更新时间
private List<String> ids;
private String code;// 验证码返回的code
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; // 附件
......
......@@ -37,22 +37,23 @@ import java.util.List;
@Service
@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);
// 添加举报信息
@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();
String reportId = IdWorker.getNextId("R");
bean.setId(reportId);
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");
log.info("report_source为:"+bean.getReportSource());
log.info("token为:"+token);
if (bean.getReportSource().contains("oa")){
log.info("report_source为:" + bean.getReportSource());
log.info("token为:" + token);
if (bean.getReportSource().contains("oa")) {
try {
DefaultResourceLoader resourceLoader = new DefaultResourceLoader();
Resource resource = resourceLoader.getResource("LtpaToken.properties");
......@@ -69,6 +70,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
LtpaToken ltpaToken = new LtpaToken(token);
username = ltpaToken.getUsername();
bean.setOaName(username);
bean.setReportPersonName(bean.getReportPersonName() + "-融创OA帐号:" + username);
}
} catch (Exception e) {
e.printStackTrace();
......@@ -77,7 +79,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
// 查询管理员
User user = dao.getUser(new User());
if(user!= null){
if (user != null) {
bean.setExchangeBeforeUser(user.getId());
}
bean.setCreateBy(user.getId());
......@@ -86,7 +88,7 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
bean.setCreateDate(d);
bean.setUpdateDate(d);
int port =request.getRemotePort();//返回发出请求的客户机的端口号。
int port = request.getRemotePort();//返回发出请求的客户机的端口号。
// logger.info("port:"+port);
// String ip = StringUtils.getRemoteAddr(Servlets.getRequest());
// /** 根据ip获得城市 */
......@@ -105,14 +107,14 @@ public class FrontReportService extends CrudService<FrontReportDao,FrontReportEn
int row = 0;
try {
row = dao.insertReport(bean);
}catch (Exception e){
} catch (Exception e) {
row = dao.insertReport(bean);
}
if(row == 1){ // 添加成功
if (row == 1) { // 添加成功
List<String> attachmentIds = bean.getIds();
if(attachmentIds != null && attachmentIds.size() > 0){ // 添加举报附件
for(String attachmentId:attachmentIds){
ReportAttachmentUtils.addReportId(attachmentId,reportId);
if (attachmentIds != null && attachmentIds.size() > 0) { // 添加举报附件
for (String attachmentId : attachmentIds) {
ReportAttachmentUtils.addReportId(attachmentId, reportId);
}
}
......
......@@ -210,6 +210,22 @@ public interface ReportDao extends CrudDao<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);
......@@ -230,5 +246,15 @@ public interface ReportDao extends CrudDao<ReportEntity> {
*/
public int deleteNotice(ReportEntity reportEntity);
/**
* 查询有效用户
* @return
*/
public List<User> findAllUserList();
/**
* 查询移交给那位用户
* @return
*/
public String selectExchangeAfterUser(String report);
}
......@@ -25,7 +25,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String reportPersonTel; //举报人电话
private String reportPersonEmail; //举报人邮箱
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 supplementDepartment; //被举报部门
private String supplementInformant; //被举报人
......@@ -53,7 +53,99 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String dealPerson;
private String lStatus; //关闭修改状态
private String isAdmin; //是否管理员
private String isFzAdmin; //是否輔助管理员
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() {
return oaarea;
......
package com.ejweb.modules.report.service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ejweb.core.persistence.Page;
import com.ejweb.core.service.CrudService;
import com.ejweb.core.utils.IdGen;
......@@ -18,6 +19,7 @@ import com.ejweb.modules.sys.entity.Role;
import com.ejweb.modules.sys.entity.User;
import com.ejweb.modules.sys.utils.UserUtils;
import com.ejweb.modules.workbench.entity.ReportNotice;
import com.google.common.collect.Lists;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -88,19 +90,23 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportEntity.setReportTime(reportTime);
reportEntity.setReportStatus("0");
reportEntity.setExchangeBeforeUser(reportEntity.getCreateBy().getId());
if (!this.checkRole(user)) {
if (!this.checkRole(user).equals("1")) {
reportEntity.setExchangeAfterUser(reportEntity.getCreateBy().getId());
}
String ip = user.getLoginIp();
int port = request.getRemotePort();//返回发出请求的客户机的端口号。
// logger.info("port:"+port);
// ip = "183.129.142.154";
String url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=" + ip;
// ip = "183.129.142.154";&ip=" + ip
String url = "http://pv.sohu.com/cityjson?ie=utf-8";
String ipResult = IpUtils.getURLContent(url).replace(";", "");
if (ipResult != "-2") {
IP2Regions json = JSON.parseObject(ipResult.split("=")[1], IP2Regions.class);
String city = json.getCity();
if (StringUtils.isNotBlank(ipResult)) {
// String[] ipCity = ipResult.split("=");
JSONObject json = JSON.parseObject(ipResult.split("=")[1]);
String city = json.getString("cname");
reportEntity.setIpCity(city);
}
reportEntity.setReportIp(ip);
dao.addReport(reportEntity);
......@@ -300,6 +306,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
}
}
reportDao.updateReportNotice(reportNotice);
// if (updateCheckRole(reportEntity.getExchangeBeforeUser()).equals("辅助管理员")){
// reportNotice.setSendToId(reportEntity.getExchangeBeforeUser());
// reportDao.updateReportNotice(reportNotice);
// }
return 1;
} else {
//消息表中不存在该条举报的信息,新增记录
......@@ -502,6 +512,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
dealResult = "举报不实";
} else if (dealResult.equals("6")) {
dealResult = "移交其他部门";
} else if (dealResult.equals("7")) {
dealResult = "转为线索";
}
} else {
......@@ -536,7 +548,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
report.setSupplementInformant(report.getSupplementInformant() == null ? "--" : report.getSupplementInformant());
report.setDealPersonName(report.getDealPersonName() == null ? "--" : report.getDealPersonName());
User user = UserUtils.getUser();
if (this.checkRole(user)) {
if (this.checkRole(user).equals("1")) {
if (StringUtils.isBlank(report.getTransferName()) || StringUtils.isBlank(report.getExchangeType())) {
report.setTransferName("--");
} else if (StringUtils.isNotBlank(report.getTransferName()) && StringUtils.isNotBlank(report.getExchangeType())) {
......@@ -569,8 +581,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
public List<ReportEntity> getReportQyList(ReportEntity reportEntity) {
List<ReportEntity> reportList = reportDao.findQyList(reportEntity);
String exchangeAfterUser = "";
for (ReportEntity report : reportList)
{
for (ReportEntity report : reportList) {
exchangeAfterUser = reportDao.selectExchangeAfterUser(report.getExchangeAfterUser());
report.setTransferName(exchangeAfterUser);
String typeStr = "";
......@@ -706,6 +717,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
dealResult = "举报不实";
} else if (dealResult.equals("6")) {
dealResult = "移交其他部门";
} else if (dealResult.equals("7")) {
dealResult = "转为线索";
}
} else {
......@@ -740,7 +753,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
report.setSupplementInformant(report.getSupplementInformant() == null ? "--" : report.getSupplementInformant());
report.setDealPersonName(report.getDealPersonName() == null ? "--" : report.getDealPersonName());
User user = UserUtils.getUser();
if (this.checkRole(user)) {
if (this.checkRole(user).equals("1")) {
if (StringUtils.isBlank(report.getTransferName()) || StringUtils.isBlank(report.getExchangeType())) {
report.setTransferName("--");
} else if (StringUtils.isNotBlank(report.getTransferName()) && StringUtils.isNotBlank(report.getExchangeType())) {
......@@ -801,25 +814,52 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
}
/**
* 判断当前用户是否为管理员
* 判断当前用户角色 1管理员 2辅助管理员
*
* @param user
* @return
*/
public boolean checkRole(User user) {
boolean isAdmin = false;
public String checkRole(User user) {
String roleNum = "";
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("系统管理员")) {
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;
}
}
}
return isAdmin;
return roleName;
}
public String findExchangeUser(String id) {
......@@ -858,9 +898,40 @@ public class ReportService extends CrudService<ReportDao, 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) {
reportEntity.setPage(page);
page.setList(reportDao.findQyList(reportEntity));
return page;
}
}
......@@ -421,6 +421,8 @@ public class ReportToWordController {
deal_result = "举报不实";
} else if (deal_result.equals("6")) {
deal_result = "移交其他部门";
}else if (dealResult.equals("7")) {
deal_result = "转为线索";
}
} else {
deal_result = "";
......
......@@ -57,6 +57,24 @@ public class User extends DataEntity<User> {
private Position position; //职位
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() {
return area;
}
......
......@@ -26,7 +26,7 @@ public class WorkbenchBean {
private int processed = 0;
private int closed = 0;
//举报结果
//处理结论
private int repResultTotal = 0;
private int invalid = 0;
private int complainNum = 0;
......@@ -35,6 +35,7 @@ public class WorkbenchBean {
private int unsettled = 0;
private int unreaListic = 0;
private int transfer = 0;
private int clue = 0;
//总体
private int total = 0;
......@@ -67,6 +68,28 @@ public class WorkbenchBean {
private int Other = 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() {
return land;
}
......@@ -448,4 +471,13 @@ public class WorkbenchBean {
public void setOther(int 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> {
} else if ("6".equals((String) res.get("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 {
@Autowired
private ReportService reportService;
private String selAreaTemp;//所选择的区域
@RequiresPermissions("workbench:view")
@RequestMapping(value = {"list", ""})
public String getWorkbench(Model model, WorkbenchBean bean) {
WorkbenchBean workbench;
selAreaTemp=bean.getArea();
try {
User user = UserUtils.getUser();
bean = getWorkbenchByUser(user, bean);
......@@ -62,6 +65,8 @@ public class WorkbenchController extends BaseController {
User user = UserUtils.getUser();
bean = getWorkbenchByUser(user, bean);
res.put("bench", bean);
//区域
res.put("area",bean.getArea());
//举报状态
res.put("unProcess", bean.getUnProcess());
res.put("processing", bean.getProcessing());
......@@ -76,6 +81,7 @@ public class WorkbenchController extends BaseController {
res.put("unreaListic", bean.getUnreaListic());
res.put("reportWeichuli", bean.getTotalCount() - bean.getInvalid() - bean.getComplainNum() - bean.getVerified() - bean.getConfirmed() - bean.getUnreaListic() - bean.getTransfer());
res.put("transfer", bean.getTransfer());
res.put("clue", bean.getClue());
res.put("startDate", bean.getStartDate());
res.put("endDate", bean.getEndDate());
//举报类型
......@@ -96,6 +102,16 @@ public class WorkbenchController extends BaseController {
res.put("businessManagement", bean.getBusinessManagement());
res.put("startDate", bean.getStartDate());
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();
PrintWriter out = response.getWriter();
response.setContentType("application/json;charset=utf-8");
......@@ -112,10 +128,12 @@ public class WorkbenchController extends BaseController {
//判断登录人的角色
String roleName = reportService.findRole(user);
if (StringUtils.isNotBlank(roleName)) {
bean.setUserRoleName(roleName);
if (!roleName.equals("系统管理员")) {
bean.setIsAdmin(user.getId());
}
}
bean.setArea(selAreaTemp);
bean = workbenchService.getWorkbench(bean);
} catch (Exception e) {
e.printStackTrace();
......
......@@ -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
session.sessionTimeout=1800000
session.sessionTimeout=2800000
#\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
ehcache.configFile=cache/ehcache-local.xml
......@@ -100,7 +100,7 @@ file.image.thumb.height=640
#file.prefix.url=http://192.168.7.210:8081/
#ڴʽ
#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
file.upload.path.separator = /
......
......@@ -7,27 +7,22 @@ db.table.prefix=sunac_
#jdbc.username=reportuser
#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.driver.class=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@192.168.2.24:1521:eas
#jdbc.username= easdba
#jdbc.password= Sunac_1918
#jdbc.url=jdbc:oracle:thin:@192.168.7.16:1521:EASUAT
#jdbc.username= eas7533
#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
......
......@@ -51,7 +51,14 @@
update_date,
oa_name,
report_ip,
ip_city
ip_city,
report_participants,
report_insider,
report_suggestion,
report_Date,
report_site,
report_qq,
report_weixin
) VALUES(
#{id},
#{reportProject},
......@@ -73,7 +80,14 @@
#{updateDate},
#{oaName},
#{reportIp},
#{ipCity}
#{ipCity},
#{participants},
#{insider},
#{suggestion},
#{reportDate},
#{site},
#{qq},
#{weixin}
)
</insert>
......
......@@ -35,7 +35,15 @@
r.report_ip AS "reportIp",
r.ip_city AS "ipCity",
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>
......@@ -61,11 +69,18 @@
ON r.create_by = SU.ID
<where>
1 = 1
<if test="isAdmin == null">
<if test="isAdmin == null and isFzAdmin == null">
AND r.exchange_after_user = #{exchangeAfterUser} AND r.create_by != #{exchangeAfterUser}
</if>
<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 test="reportStatus != null and reportStatus != ''">
AND r.report_status = #{reportStatus}
......@@ -123,6 +138,15 @@
<if test="supplementArea != null and supplementArea != ''">
AND r.supplement_area = #{supplementArea}
</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>
ORDER BY r.update_date DESC
</select>
......@@ -133,9 +157,12 @@
,su.name AS "transferName"
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 R
ON R.ID = UR.ROLE_ID
<where>
1 = 1
<if test="isAdmin == null">
<if test="isAdmin == null and isFzAdmin == null">
AND r.exchange_after_user = #{exchangeAfterUser} AND r.create_by = #{exchangeAfterUser}
</if>
<if test="isAdmin != null">
......@@ -150,6 +177,20 @@
'Group',
'PropertyGroup')
</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 != ''">
AND r.report_status = #{reportStatus}
</if>
......@@ -206,6 +247,15 @@
<if test="supplementArea != null and supplementArea != ''">
AND r.supplement_area = #{supplementArea}
</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>
ORDER BY r.update_date DESC
</select>
......@@ -265,7 +315,15 @@
update_date,
oa_name,
report_ip,
ip_city
ip_city,
report_participants,
report_insider,
report_suggestion,
report_Date,
report_site,
report_qq,
report_weixin
) VALUES (
#{id},
#{reportProject},
......@@ -288,7 +346,14 @@
#{updateDate},
#{oaname},
#{reportIp},
#{ipCity}
#{ipCity},
#{participants},
#{insider},
#{suggestion},
#{reportDate},
#{site},
#{qq},
#{weixin}
)
</insert>
......@@ -319,8 +384,10 @@
supplement_project = #{supplementProject},
supplement_content = #{supplementContent},
deal_person_name = #{dealPersonName},
exchange_before_user = #{exchangeBeforeUser},
exchange_after_user = #{exchangeAfterUser},
exchange_type = #{exchangeType},
report_ifClue = #{ifClue},
deal_result = #{dealResult},
update_by = #{updateBy.id},
update_date = #{updateDate}
......@@ -523,6 +590,9 @@
</if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if>
<if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
GROUP BY report_status
</select>
......@@ -544,6 +614,9 @@
</if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if>
<if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
GROUP BY deal_result
</select>
......@@ -564,6 +637,9 @@
</if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if>
<if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
GROUP BY report_source
</select>
......@@ -615,6 +691,9 @@
</if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if>
<if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
</select>
<select id="getRepList" parameterType="com.ejweb.modules.workbench.Bean.WorkbenchBean" resultType="ReportEntity">
......@@ -662,6 +741,9 @@
</if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if>
<if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
order by r.create_date desc
)
WHERE
......@@ -734,6 +816,18 @@
WHERE id = #{id}
</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 count(*) AS "totalCount"
FROM ct_bbtc_report
......@@ -751,6 +845,9 @@
</if>
<if test="dbName == 'mysql'">AND DATE(create_date) &lt;= #{endDate}</if>
</if>
<if test="area != null and area !=''">
and SUPPLEMENT_AREA=#{area}
</if>
</select>
<delete id="deleteConclusion">
......@@ -772,4 +869,15 @@
WHERE
su.id=#{report}
</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>
\ No newline at end of file
......@@ -243,5 +243,11 @@
<function-signature>java.lang.String toJsonString(java.lang.Object)</function-signature>
<example>${fns:toJson(object)}</example>
</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>
......@@ -6,6 +6,16 @@
<meta name="decorator" content="default"/>
<script type="text/javascript">
$(document).ready(function () {
var ifClue = "${report.ifClue}";
if (ifClue == '1') {
$("#ifClue").prop("checked", true);
$('#ifClue').attr("disabled","disabled");
} else {
$("#ifClue").prop("checked", false);
$('#ifClue').attr("disabled","disabled");
}
var count = "${result}";
parent.refreshPromt(count);
$("input[type='text']").attr("disabled", true);
......@@ -33,6 +43,8 @@
supplementArea = "海南区域公司";
} else if (supplementArea == "Group") {
supplementArea = "集团本部";
} else if (supplementArea == "PropertyGroup") {
supplementArea = "物业集团";
}
$("#supplementArea").val(supplementArea);
......@@ -49,6 +61,8 @@
dealResult = "举报不实";
} else if (dealResult == "6") {
dealResult = "移交其他部门";
} else if (dealResult == "7") {
dealResult = "转为线索";
}
$("#dealResult").val(dealResult);
});
......@@ -89,6 +103,40 @@
}
}
function again(id) {
var msg = "您真的确定要重新跟踪吗?\n\n请确认!";
if (confirm(msg) == true) {
$.ajax({
type: "post",
url: "${ctx}/report/again",
data: {"id": id},
dataType: "json",
});
location.reload();
alert("重新跟踪成功")
} else {
return false;
}
}
function clues(id) {
var msg = "您真的确定要转为线索吗?\n\n请确认!";
if (confirm(msg) == true) {
$.ajax({
type: "post",
url: "${ctx}/report/clues",
data: {"id": id},
dataType: "json",
});
location.reload();
alert("转为线索成功")
} else {
return false;
}
}
</script>
<style type="text/css">
.title {
......@@ -126,6 +174,30 @@
</div>
</div>
<div class="control-group">
<label class="control-label">参与人:</label>
<div class="controls">
<form:input path="participants" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</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 required"/>
</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 required"/>
</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 required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">举报时间:</label>
<div class="controls">
<form:input path="reportTime" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
......@@ -163,6 +235,12 @@
</div>
</div>
<div class="control-group">
<label class="control-label">调查建议:</label>
<div class="controls">
<form:input path="suggestion" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">附件:</label>
<div class="controls">
<c:forEach items="${reportAttachmentList}" var="reportAttachment" varStatus="vs">
......@@ -171,7 +249,8 @@
</div>
</div>
<span class="title">举报人信息</span>
<div class="control-group">
<c:if test="${ifClue eq true}">
<div class=" control-group">
<label class="control-label">姓名:</label>
<div class="controls">
<form:input path="reportPersonName" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
......@@ -190,6 +269,27 @@
</div>
</div>
<div class="control-group">
<label class="control-label">QQ号:</label>
<div class="controls">
<form:input path="qq" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</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 required"/>
</div>
</div>
</c:if>
<c:if test="${isAdmin eq '1'|| isAdmin eq '2'}">
<div class="control-group">
<label class="control-label">是否显示举报人信息:</label>
<div class="controls" >
<input type="checkbox" id="ifClue" name="ifClue" Value="" />
</div>
</div>
</c:if>
<div class="control-group">
<label class="control-label">举报途径:</label>
<div class="controls">
<form:radiobuttons path="reportSource" items="${fns:getDictList('report_source')}" itemLabel="label"
......@@ -248,16 +348,18 @@
${vs.count}.<a href="${dealAttachment.attachmentPath}" target="_blank">${dealAttachment.attachmentName}</a><br>
</c:forEach>
</div>
</div>
<div class="control-group">
<label class="control-label">处理结论:</label>
<div class="controls">
<c:if test="${isAdmin eq true && report.reportStatus eq '2'}"><form:select path="dealResult"
<c:if test="${(isAdmin eq '1' ||isAdmin eq '2')&& report.reportStatus eq '2'}"><form:select
path="dealResult"
class="input-small"
onchange="showDone();">
<form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></c:if>
<c:if test="${isAdmin eq false || report.reportStatus != '2'}"><form:input id="dealResult" path=""
<c:if test="${isAdmin != '1' || report.reportStatus != '2'}"><form:input id="dealResult" path=""
value="${report.dealResult}"
htmlEscape="false" maxlength="200"
class="input-xlarge required"/></c:if>
......@@ -265,7 +367,8 @@
<div id="selectType" class="control-group" style="display:none">
<label class="control-label">移交部门:</label>
<div class="controls">
<c:if test="${isAdmin eq true && report.reportStatus eq '2'}"><form:select id="" path="transferDepartment"
<c:if test="${(isAdmin eq '1' ||isAdmin eq '2') && report.reportStatus eq '2'}"><form:select id=""
path="transferDepartment"
class="input-small required">
<form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"
......@@ -273,6 +376,8 @@
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<c:if test="${report.dealResult eq '6'}">
<div id="transferDepartmentid" class="control-group">
<label class="control-label">移交部门:</label>
......@@ -295,8 +400,19 @@
<input id="btnDocument" class="btn btn-primary" type="button" value="转为文档"
onclick="openDownloadDialog('${report.id}')"/>&nbsp;&nbsp;
<input id="btnReturn" class="btn btn-primary" type="button" value="返回" onclick="history.go(-1)"/>&nbsp;&nbsp;
<c:if test="${isAdmin eq true && report.reportStatus eq '2'}"><input id="btnClose" class="btn btn-primary"
type="submit" value="关闭"/></c:if>
<c:if test="${(isAdmin eq '1'|| isAdmin eq '2')&& report.reportStatus eq '2'}"><input id="btnClose"
class="btn btn-primary"
type="submit"
value="关闭"/>&nbsp;&nbsp;</c:if>
<c:if test="${isAdmin eq '1'&&(report.reportStatus eq '3'||report.reportStatus eq '2') }"><input id="btnClose"
class="btn btn-primary"
type="button"
onclick="again('${report.id}')"
value="重新跟踪"/> &nbsp;&nbsp;</c:if>
<%--<c:if test="${report.reportStatus eq '0' || report.reportStatus eq '1'}"><input id="btnClose" class="btn btn-primary"--%>
<%--type="button"--%>
<%--onclick="clues('${report.id}')"--%>
<%--value="转为线索"/></c:if>--%>
</label>
</li>
</form:form>
......
......@@ -170,6 +170,30 @@
</div>
</div>
<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>
<div class="controls">
<form:textarea id="reportContent" htmlEscape="true" path="reportContent" rows="6" maxlength="3000"
......@@ -179,6 +203,12 @@
</div>
</div>
<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>
<div class="controls">
<form:hidden id="nameFile" path="reportAttachment" htmlEscape="false"
......@@ -207,6 +237,18 @@
</div>
</div>
<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>
<div class="controls">
<form:radiobutton path="reportSource" value="tel" checked="true"/>电话&emsp;
......
......@@ -166,6 +166,9 @@
showDiv.style.display = 'none';
showDiv.innerHTML = '';
}
</script>
<style type="text/css">
......@@ -264,10 +267,10 @@
</head>
<body>
<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 '2'}">class="active"</c:if>><a href="${ctx}/report/list?flag=2">已处理举报列表</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 '4'}">class="active"</c:if>><a href="${ctx}/report/list?flag=4">线索列表</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>--%>
</ul>
......@@ -316,9 +319,23 @@
<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">
<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'}">
<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"
<%-- <label style="width:auto;">--%>&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary"
type="submit" 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>
......@@ -363,7 +380,7 @@
<tr>
<th style="width:10%">业务类型</th>
<th>被举报项目/部门</th>
<th>OA账号</th>
<th>录入人</th>
<th>举报人</th>
<th>举报人电话</th>
<th>举报途径</th>
......@@ -374,7 +391,7 @@
<th>处理结论</th>
<th>移交部门</th>
<th>处理人</th>
<c:if test="${isAdmin eq true}">
<c:if test="${isAdmin eq '1'||isAdmin eq '2'}">
<th>移交给</th>
</c:if>
<th>内容</th>
......@@ -405,6 +422,7 @@
<c:if test="${report.reportSource eq 'visit'}">来访</c:if>
<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>
......@@ -426,7 +444,7 @@
<c:if test="${report.reportStatus eq '1'}">跟踪中</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 '4'}">待处理</c:if>
</td>
<td align="center">
<c:if test="${report.dealResult eq null}">--</c:if>
......@@ -459,9 +477,9 @@
<c:if test="${report.dealPersonName eq null}">--</c:if>
<c:if test="${report.dealPersonName ne null}">${report.dealPersonName}</c:if>
</td>
<c:if test="${isAdmin eq true}">
<c:if test="${isAdmin eq '1'||isAdmin eq '2'}">
<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>
</td>
</c:if>
......@@ -480,7 +498,7 @@
<a href="${ctx}/report/view?id=${report.id}">查看</a>
<c:if test="${report.reportStatus ne '2' && report.reportStatus ne '3'}"><a
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="openDownloadDialog('${report.id}')">转为文档</a>
......
......@@ -7,6 +7,17 @@
<meta name="decorator" content="default"/>
<script type="text/javascript">
window.onload = function () {
var ifClue = "${report.ifClue}";
if (ifClue == '1') {
$("#ifClue").prop("checked", true);
} else {
$("#ifClue").prop("checked", false);
}
var dealResult = $("#dealResult").val();
if (dealResult != null && dealResult != ' ') {
if (dealResult == "6") {
......@@ -355,6 +366,8 @@
supplementArea = "海南区域公司";
} else if (supplementArea == "Group") {
supplementArea = "集团本部";
} else if (supplementArea == "PropertyGroup") {
supplementArea = "物业集团";
}
path2 += "被举报区域:" + supplementArea + "%0D%0A";
supplementContent = $("#supplementContent").val();
......@@ -555,28 +568,47 @@
</div>
</div>
<span class="title">举报人信息</span>
<c:if test="${ifClue eq true}">
<div class="control-group">
<label class="control-label">姓名:</label>
<div class="controls">
<form:input path="reportPersonName" htmlEscape="false" maxlength="200" disabled="true"
class="input-xlarge required"/>
<form:input path="reportPersonName" htmlEscape="false" maxlength="200" class="input-xlarge "/>
</div>
</div>
<div class="control-group">
<label class="control-label">手机号:</label>
<div class="controls">
<form:input path="reportPersonTel" htmlEscape="false" maxlength="200" disabled="true"
class="input-xlarge required"/>
<form:input path="reportPersonTel" htmlEscape="false" maxlength="200" class="input-xlarge "/>
</div>
</div>
<div class="control-group">
<label class="control-label">Email:</label>
<div class="controls">
<form:input path="reportPersonEmail" htmlEscape="false" maxlength="200" disabled="true"
class="input-xlarge required"/>
<form:input path="reportPersonEmail" htmlEscape="false" maxlength="200" class="input-xlarge "/>
</div>
</div>
<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>
</c:if>
<c:if test="${isAdmin eq '1'|| isAdmin eq '2'}">
<div class="control-group">
<label class="control-label">是否显示信息:</label>
<div class="controls" >
<input type="checkbox" id="ifClue" name="ifClue" Value="ifClue" />
</div>
</div>
</c:if>
<div class="control-group">
<label class="control-label">举报途径:</label>
<div class="controls">
<form:radiobuttons path="reportSource" items="${fns:getDictList('report_source')}" itemLabel="label"
......@@ -595,6 +627,7 @@
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">被举报区域:</label>
<div class="controls">
......@@ -683,7 +716,8 @@
<input id="chooseUser" type="text"
<c:if test="${report.exchangeType eq null}">value="选择移交人员" </c:if>
<c:if test="${report.exchangeAfterUser ne null && report.exchangeType ne null}">value="${report.transferName}" </c:if>
<c:if test="${isAdmin eq false}">disabled="true" style="color:#888"</c:if> htmlEscape="false"
<c:if test="${isAdmin ne '1' && isAdmin ne '2'}">disabled="true" style="color:#888"</c:if>
htmlEscape="false"
maxlength="200" class="input-xlarge"/>
</div>
</div>
......@@ -766,7 +800,7 @@
}
</script>
<span class="title">选择移交人员</span>
<form:form id="searchForm" modelAttribute="user" action="#" method="post" class="breadcrumb form-search">
<%-- <form:form id="searchForm" modelAttribute="user" action="#" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<ul class="ul-form">
......@@ -796,7 +830,7 @@
</li>
<li class="clearfix"></li>
</ul>
</form:form>
</form:form>--%>
<div id="userList">
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
......
......@@ -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
session.sessionTimeout=1800000
session.sessionTimeout=2800000
#\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
ehcache.configFile=cache/ehcache-local.xml
......@@ -100,7 +100,7 @@ file.image.thumb.height=640
#file.prefix.url=http://192.168.7.210:8081/
#ڴʽ
#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
file.upload.path.separator = /
......
......@@ -7,27 +7,22 @@ db.table.prefix=sunac_
#jdbc.username=reportuser
#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.driver.class=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@192.168.2.24:1521:eas
#jdbc.username= easdba
#jdbc.password= Sunac_1918
#jdbc.url=jdbc:oracle:thin:@192.168.7.16:1521:EASUAT
#jdbc.username= eas7533
#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
......
......@@ -243,5 +243,11 @@
<function-signature>java.lang.String toJsonString(java.lang.Object)</function-signature>
<example>${fns:toJson(object)}</example>
</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>
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