Commit 343f5597 by Java-刘铮

ReportController:修改发送消息方法。

reportDetaol:添加dealResult=4为“举报属实”。
reportTrack:修改举报属性个状态可见“是否完成”。
parent fd891241
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/report_sunac.iml" filepath="$PROJECT_DIR$/report_sunac.iml" /> <module fileurl="file://$PROJECT_DIR$/report_sunac.iml" filepath="$PROJECT_DIR$/report_sunac.iml" />
<module fileurl="file://E:/sunac_report/report_sunac (1).iml" filepath="E:/sunac_report/report_sunac (1).iml" />
</modules> </modules>
</component> </component>
</project> </project>
\ No newline at end of file
...@@ -172,6 +172,14 @@ public interface ReportDao extends CrudDao<ReportEntity> { ...@@ -172,6 +172,14 @@ public interface ReportDao extends CrudDao<ReportEntity> {
public List<ReportEntity> getChooseReportList(ReportEntity reportEntity); public List<ReportEntity> getChooseReportList(ReportEntity reportEntity);
/** /**
* 区域列表查询
*
* @param reportEntity
* @return
*/
public List<ReportEntity> findQyList(ReportEntity reportEntity);
/**
* 工作转交 更改转交人 * 工作转交 更改转交人
* *
* @param reportEntity * @param reportEntity
...@@ -208,8 +216,10 @@ public interface ReportDao extends CrudDao<ReportEntity> { ...@@ -208,8 +216,10 @@ public interface ReportDao extends CrudDao<ReportEntity> {
/** /**
* 删除举报信息 * 删除举报信息
*
* @param reportEntity * @param reportEntity
* @return * @return
*/ */
public int deleteConclusion(ReportEntity reportEntity); public int deleteConclusion(ReportEntity reportEntity);
} }
...@@ -3,17 +3,20 @@ package com.ejweb.modules.report.entity; ...@@ -3,17 +3,20 @@ package com.ejweb.modules.report.entity;
import com.ejweb.core.persistence.DataEntity; import com.ejweb.core.persistence.DataEntity;
import com.ejweb.core.utils.excel.annotation.ExcelField; import com.ejweb.core.utils.excel.annotation.ExcelField;
import com.ejweb.modules.sys.entity.User;
import java.util.List; import java.util.List;
/** /**
* 举报Entity * 举报Entity
*
* @author lixy * @author lixy
* @version 2017-09-06 * @version 2017-09-06
*/ */
public class ReportEntity extends DataEntity<ReportEntity> { public class ReportEntity extends DataEntity<ReportEntity> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private User user;//用户
private String reportProject; //被举报项目 private String reportProject; //被举报项目
private String reportCity; //所在城市 private String reportCity; //所在城市
private String reportTime; //举报时间 private String reportTime; //举报时间
...@@ -27,7 +30,8 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -27,7 +30,8 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String supplementDepartment; //被举报部门 private String supplementDepartment; //被举报部门
private String supplementInformant; //被举报人 private String supplementInformant; //被举报人
private String supplementTitle; //标题 private String supplementTitle; //标题
private String supplementType; //业务类型 1 营销 2 工程 3 成本 4 招采 5人力 6物业 7投诉 private String supplementType; //业务类型地产 物业 酒店 商业
private String transferDepartment;//移交部门 1 营销 2 工程 3 成本 4 招采 5人力 6物业 7投诉
private String supplementArea; //被举报区域 private String supplementArea; //被举报区域
private String supplementProject; //被举报项目 private String supplementProject; //被举报项目
private String supplementContent; // private String supplementContent; //
...@@ -45,21 +49,37 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -45,21 +49,37 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String reportIp; //记录ip地址 private String reportIp; //记录ip地址
private String ipCity; //ip地址对应城市 private String ipCity; //ip地址对应城市
private String isSendEmail; //是否已经发送过邮件 0未发送 1已发送 private String isSendEmail; //是否已经发送过邮件 0未发送 1已发送
private String transferName; //移交给 private String transferName; //移交给
private String dealPerson; private String dealPerson;
private String lStatus; //关闭修改状态 private String lStatus; //关闭修改状态
public String getlStatus() { //是否管理员
return lStatus; private String isAdmin;
public String getIsAdmin() {
return isAdmin;
} }
public void setlStatus(String lStatus) { public void setIsAdmin(String isAdmin) {
this.lStatus = lStatus; this.isAdmin = isAdmin;
} }
public String getTransferDepartment() {
return transferDepartment;
}
public void setTransferDepartment(String transferDepartment) {
this.transferDepartment = transferDepartment;
}
public String getlStatus() {
return lStatus;
}
public void setlStatus(String lStatus) {
this.lStatus = lStatus;
}
public String getOaname() { public String getOaname() {
...@@ -69,7 +89,8 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -69,7 +89,8 @@ public class ReportEntity extends DataEntity<ReportEntity> {
public void setOaname(String oaname) { public void setOaname(String oaname) {
this.oaname = oaname; this.oaname = oaname;
} }
// private String ifDone; //是否完成
// private String ifDone; //是否完成
// //
// //
// public String getIfDone() { // public String getIfDone() {
...@@ -83,7 +104,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -83,7 +104,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String[] types;//新业务类型 private String[] types;//新业务类型
@ExcelField(title="被举报项目/部门", align=2, sort=24) @ExcelField(title = "被举报项目/部门", align = 2, sort = 24)
public String getReportProject() { public String getReportProject() {
return reportProject; return reportProject;
} }
...@@ -100,7 +121,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -100,7 +121,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportCity = reportCity; this.reportCity = reportCity;
} }
@ExcelField(title="举报时间", align=2, sort=34) @ExcelField(title = "举报时间", align = 2, sort = 34)
public String getReportTime() { public String getReportTime() {
return reportTime; return reportTime;
} }
...@@ -108,7 +129,8 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -108,7 +129,8 @@ public class ReportEntity extends DataEntity<ReportEntity> {
public void setReportTime(String reportTime) { public void setReportTime(String reportTime) {
this.reportTime = reportTime; this.reportTime = reportTime;
} }
@ExcelField(title = "举报内容",align = 2,sort = 44)
@ExcelField(title = "举报内容", align = 2, sort = 44)
public String getReportContent() { public String getReportContent() {
return reportContent; return reportContent;
} }
...@@ -117,7 +139,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -117,7 +139,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportContent = reportContent; this.reportContent = reportContent;
} }
@ExcelField(title="举报人", align=2, sort=26) @ExcelField(title = "举报人", align = 2, sort = 26)
public String getReportPersonName() { public String getReportPersonName() {
return reportPersonName; return reportPersonName;
} }
...@@ -126,7 +148,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -126,7 +148,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportPersonName = reportPersonName; this.reportPersonName = reportPersonName;
} }
@ExcelField(title="举报人电话", align=2, sort=28) @ExcelField(title = "举报人电话", align = 2, sort = 28)
public String getReportPersonTel() { public String getReportPersonTel() {
return reportPersonTel; return reportPersonTel;
} }
...@@ -151,7 +173,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -151,7 +173,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportSource = reportSource; this.reportSource = reportSource;
} }
@ExcelField(title="状态", align=2, sort=36) @ExcelField(title = "状态", align = 2, sort = 36)
public String getReportStatus() { public String getReportStatus() {
return reportStatus; return reportStatus;
} }
...@@ -176,7 +198,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -176,7 +198,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementDepartment = supplementDepartment; this.supplementDepartment = supplementDepartment;
} }
@ExcelField(title="被举报人", align=2, sort=32) @ExcelField(title = "被举报人", align = 2, sort = 32)
public String getSupplementInformant() { public String getSupplementInformant() {
return supplementInformant; return supplementInformant;
} }
...@@ -185,7 +207,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -185,7 +207,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementInformant = supplementInformant; this.supplementInformant = supplementInformant;
} }
@ExcelField(title="标题", align=2, sort=20) @ExcelField(title = "标题", align = 2, sort = 20)
public String getSupplementTitle() { public String getSupplementTitle() {
return supplementTitle; return supplementTitle;
} }
...@@ -194,7 +216,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -194,7 +216,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementTitle = supplementTitle; this.supplementTitle = supplementTitle;
} }
@ExcelField(title="业务类型", align=2, sort=22) @ExcelField(title = "业务类型", align = 2, sort = 22)
public String getSupplementType() { public String getSupplementType() {
return supplementType; return supplementType;
} }
...@@ -203,7 +225,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -203,7 +225,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementType = supplementType; this.supplementType = supplementType;
} }
@ExcelField(title="区域", align=2, sort=30) @ExcelField(title = "区域", align = 2, sort = 30)
public String getSupplementArea() { public String getSupplementArea() {
return supplementArea; return supplementArea;
} }
...@@ -219,7 +241,8 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -219,7 +241,8 @@ public class ReportEntity extends DataEntity<ReportEntity> {
public void setSupplementProject(String supplementProject) { public void setSupplementProject(String supplementProject) {
this.supplementProject = supplementProject; this.supplementProject = supplementProject;
} }
@ExcelField(title = "举报信息补充内容",align = 2,sort = 46)
@ExcelField(title = "举报信息补充内容", align = 2, sort = 46)
public String getSupplementContent() { public String getSupplementContent() {
return supplementContent; return supplementContent;
} }
...@@ -228,7 +251,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -228,7 +251,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.supplementContent = supplementContent; this.supplementContent = supplementContent;
} }
@ExcelField(title="处理人", align=2, sort=40) @ExcelField(title = "处理人", align = 2, sort = 40)
public String getDealPersonName() { public String getDealPersonName() {
return dealPersonName; return dealPersonName;
} }
...@@ -237,7 +260,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -237,7 +260,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.dealPersonName = dealPersonName; this.dealPersonName = dealPersonName;
} }
@ExcelField(title="处理结论", align=2, sort=38) @ExcelField(title = "处理结论", align = 2, sort = 38)
public String getDealResult() { public String getDealResult() {
return dealResult; return dealResult;
} }
...@@ -326,7 +349,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -326,7 +349,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.types = types; this.types = types;
} }
@ExcelField(title="移交给", align=2, sort=42) @ExcelField(title = "移交给", align = 2, sort = 42)
public String getTransferName() { public String getTransferName() {
return transferName; return transferName;
} }
...@@ -335,7 +358,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -335,7 +358,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.transferName = transferName; this.transferName = transferName;
} }
@ExcelField(title="IP来源", align=2, sort=48) @ExcelField(title = "IP来源", align = 2, sort = 48)
public String getReportIp() { public String getReportIp() {
return reportIp; return reportIp;
} }
...@@ -344,7 +367,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -344,7 +367,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportIp = reportIp; this.reportIp = reportIp;
} }
@ExcelField(title="IP所属城市", align=2, sort=50) @ExcelField(title = "IP所属城市", align = 2, sort = 50)
public String getIpCity() { public String getIpCity() {
return ipCity; return ipCity;
} }
...@@ -353,7 +376,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -353,7 +376,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.ipCity = ipCity; this.ipCity = ipCity;
} }
@ExcelField(title="邮件发送", align=2, sort=48) @ExcelField(title = "邮件发送", align = 2, sort = 48)
public String getIsSendEmail() { public String getIsSendEmail() {
return isSendEmail; return isSendEmail;
} }
...@@ -369,4 +392,13 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -369,4 +392,13 @@ public class ReportEntity extends DataEntity<ReportEntity> {
public void setDealPerson(String dealPerson) { public void setDealPerson(String dealPerson) {
this.dealPerson = dealPerson; this.dealPerson = dealPerson;
} }
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
} }
...@@ -573,4 +573,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -573,4 +573,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
return reportDao.deleteConclusion(reportEntity); return reportDao.deleteConclusion(reportEntity);
} }
public Page<ReportEntity> findQyList(Page<ReportEntity> page, ReportEntity reportEntity) {
reportEntity.setPage(page);
page.setList(reportDao.findQyList(reportEntity));
return page;
}
} }
...@@ -21,6 +21,7 @@ import java.util.List; ...@@ -21,6 +21,7 @@ import java.util.List;
/** /**
* 用户Entity * 用户Entity
*
* @author ThinkGem * @author ThinkGem
* @version 2013-12-05 * @version 2013-12-05
*/ */
...@@ -44,7 +45,7 @@ public class User extends DataEntity<User> { ...@@ -44,7 +45,7 @@ public class User extends DataEntity<User> {
private String officeName; // 部门长名称 private String officeName; // 部门长名称
private String oldLoginName;// 原登录名 private String oldLoginName;// 原登录名
private String newPassword; // 新密码 private String newPassword; // 新密码
private String area;//所属区域
private String oldLoginIp; // 上次登陆IP private String oldLoginIp; // 上次登陆IP
private Date oldLoginDate; // 上次登陆日期 private Date oldLoginDate; // 上次登陆日期
private String roleId; private String roleId;
...@@ -56,21 +57,29 @@ public class User extends DataEntity<User> { ...@@ -56,21 +57,29 @@ public class User extends DataEntity<User> {
private Position position; //职位 private Position position; //职位
private String devision; //组织 private String devision; //组织
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public User() { public User() {
super(); super();
this.loginFlag = GConstants.YES; this.loginFlag = GConstants.YES;
} }
public User(String id){ public User(String id) {
super(id); super(id);
} }
public User(String id, String loginName){ public User(String id, String loginName) {
super(id); super(id);
this.loginName = loginName; this.loginName = loginName;
} }
public User(Role role){ public User(Role role) {
super(); super();
this.role = role; this.role = role;
} }
...@@ -91,15 +100,15 @@ public class User extends DataEntity<User> { ...@@ -91,15 +100,15 @@ public class User extends DataEntity<User> {
this.loginFlag = loginFlag; this.loginFlag = loginFlag;
} }
@SupCol(isUnique="true", isHide="true") @SupCol(isUnique = "true", isHide = "true")
@ExcelField(title="ID", type=1, align=2, sort=1) @ExcelField(title = "ID", type = 1, align = 2, sort = 1)
public String getId() { public String getId() {
return id; return id;
} }
@JsonIgnore @JsonIgnore
@NotNull(message="归属公司不能为空") @NotNull(message = "归属公司不能为空")
@ExcelField(title="归属公司", align=2, sort=20) @ExcelField(title = "归属公司", align = 2, sort = 20)
public Office getCompany() { public Office getCompany() {
return company; return company;
} }
...@@ -109,8 +118,8 @@ public class User extends DataEntity<User> { ...@@ -109,8 +118,8 @@ public class User extends DataEntity<User> {
} }
@JsonIgnore @JsonIgnore
@NotNull(message="归属部门不能为空") @NotNull(message = "归属部门不能为空")
@ExcelField(title="归属部门", align=2, sort=25) @ExcelField(title = "归属部门", align = 2, sort = 25)
public Office getOffice() { public Office getOffice() {
return office; return office;
} }
...@@ -119,8 +128,8 @@ public class User extends DataEntity<User> { ...@@ -119,8 +128,8 @@ public class User extends DataEntity<User> {
this.office = office; this.office = office;
} }
@Length(min=1, max=100, message="登录名长度必须介于 1 和 100 之间") @Length(min = 1, max = 100, message = "登录名长度必须介于 1 和 100 之间")
@ExcelField(title="登录名", align=2, sort=30) @ExcelField(title = "登录名", align = 2, sort = 30)
public String getLoginName() { public String getLoginName() {
return loginName; return loginName;
} }
...@@ -130,7 +139,7 @@ public class User extends DataEntity<User> { ...@@ -130,7 +139,7 @@ public class User extends DataEntity<User> {
} }
@JsonIgnore @JsonIgnore
@Length(min=1, max=100, message="密码长度必须介于 1 和 100 之间") @Length(min = 1, max = 100, message = "密码长度必须介于 1 和 100 之间")
public String getPassword() { public String getPassword() {
return password; return password;
} }
...@@ -139,14 +148,14 @@ public class User extends DataEntity<User> { ...@@ -139,14 +148,14 @@ public class User extends DataEntity<User> {
this.password = password; this.password = password;
} }
@Length(min=1, max=100, message="姓名长度必须介于 1 和 100 之间") @Length(min = 1, max = 100, message = "姓名长度必须介于 1 和 100 之间")
@ExcelField(title="姓名", align=2, sort=40) @ExcelField(title = "姓名", align = 2, sort = 40)
public String getName() { public String getName() {
return name; return name;
} }
@Length(min=1, max=100, message="工号长度必须介于 1 和 100 之间") @Length(min = 1, max = 100, message = "工号长度必须介于 1 和 100 之间")
@ExcelField(title="工号", align=2, sort=45) @ExcelField(title = "工号", align = 2, sort = 45)
public String getNo() { public String getNo() {
return no; return no;
} }
...@@ -159,9 +168,9 @@ public class User extends DataEntity<User> { ...@@ -159,9 +168,9 @@ public class User extends DataEntity<User> {
this.name = name; this.name = name;
} }
@Email(message="邮箱格式不正确") @Email(message = "邮箱格式不正确")
@Length(min=0, max=200, message="邮箱长度必须介于 1 和 200 之间") @Length(min = 0, max = 200, message = "邮箱长度必须介于 1 和 200 之间")
@ExcelField(title="邮箱", align=1, sort=50) @ExcelField(title = "邮箱", align = 1, sort = 50)
public String getEmail() { public String getEmail() {
return email; return email;
} }
...@@ -170,8 +179,8 @@ public class User extends DataEntity<User> { ...@@ -170,8 +179,8 @@ public class User extends DataEntity<User> {
this.email = email; this.email = email;
} }
@Length(min=0, max=200, message="电话长度必须介于 1 和 200 之间") @Length(min = 0, max = 200, message = "电话长度必须介于 1 和 200 之间")
@ExcelField(title="电话", align=2, sort=60) @ExcelField(title = "电话", align = 2, sort = 60)
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
...@@ -180,8 +189,8 @@ public class User extends DataEntity<User> { ...@@ -180,8 +189,8 @@ public class User extends DataEntity<User> {
this.phone = phone; this.phone = phone;
} }
@Length(min=0, max=200, message="手机长度必须介于 1 和 200 之间") @Length(min = 0, max = 200, message = "手机长度必须介于 1 和 200 之间")
@ExcelField(title="手机", align=2, sort=70) @ExcelField(title = "手机", align = 2, sort = 70)
public String getMobile() { public String getMobile() {
return mobile; return mobile;
} }
...@@ -190,13 +199,13 @@ public class User extends DataEntity<User> { ...@@ -190,13 +199,13 @@ public class User extends DataEntity<User> {
this.mobile = mobile; this.mobile = mobile;
} }
@ExcelField(title="备注", align=1, sort=900) @ExcelField(title = "备注", align = 1, sort = 900)
public String getRemarks() { public String getRemarks() {
return remarks; return remarks;
} }
@Length(min=0, max=100, message="用户类型长度必须介于 1 和 100 之间") @Length(min = 0, max = 100, message = "用户类型长度必须介于 1 和 100 之间")
@ExcelField(title="用户类型", align=2, sort=80, dictType="sys_user_type") @ExcelField(title = "用户类型", align = 2, sort = 80, dictType = "sys_user_type")
public String getUserType() { public String getUserType() {
return userType; return userType;
} }
...@@ -205,12 +214,12 @@ public class User extends DataEntity<User> { ...@@ -205,12 +214,12 @@ public class User extends DataEntity<User> {
this.userType = userType; this.userType = userType;
} }
@ExcelField(title="创建时间", type=0, align=1, sort=90) @ExcelField(title = "创建时间", type = 0, align = 1, sort = 90)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
@ExcelField(title="最后登录IP", type=1, align=1, sort=100) @ExcelField(title = "最后登录IP", type = 1, align = 1, sort = 100)
public String getLoginIp() { public String getLoginIp() {
return loginIp; return loginIp;
} }
...@@ -220,7 +229,7 @@ public class User extends DataEntity<User> { ...@@ -220,7 +229,7 @@ public class User extends DataEntity<User> {
} }
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ExcelField(title="最后登录日期", type=1, align=1, sort=110) @ExcelField(title = "最后登录日期", type = 1, align = 1, sort = 110)
public Date getLoginDate() { public Date getLoginDate() {
return loginDate; return loginDate;
} }
...@@ -246,7 +255,7 @@ public class User extends DataEntity<User> { ...@@ -246,7 +255,7 @@ public class User extends DataEntity<User> {
} }
public String getOldLoginIp() { public String getOldLoginIp() {
if (oldLoginIp == null){ if (oldLoginIp == null) {
return loginIp; return loginIp;
} }
return oldLoginIp; return oldLoginIp;
...@@ -258,7 +267,7 @@ public class User extends DataEntity<User> { ...@@ -258,7 +267,7 @@ public class User extends DataEntity<User> {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getOldLoginDate() { public Date getOldLoginDate() {
if (oldLoginDate == null){ if (oldLoginDate == null) {
return loginDate; return loginDate;
} }
return oldLoginDate; return oldLoginDate;
...@@ -285,7 +294,7 @@ public class User extends DataEntity<User> { ...@@ -285,7 +294,7 @@ public class User extends DataEntity<User> {
} }
@JsonIgnore @JsonIgnore
@ExcelField(title="拥有角色", align=1, sort=800, fieldType=RoleListType.class) @ExcelField(title = "拥有角色", align = 1, sort = 800, fieldType = RoleListType.class)
public List<Role> getRoleList() { public List<Role> getRoleList() {
return roleList; return roleList;
} }
...@@ -311,6 +320,7 @@ public class User extends DataEntity<User> { ...@@ -311,6 +320,7 @@ public class User extends DataEntity<User> {
roleList.add(role); roleList.add(role);
} }
} }
/** /**
* 获取数据库名称 * 获取数据库名称
*/ */
...@@ -318,6 +328,7 @@ public class User extends DataEntity<User> { ...@@ -318,6 +328,7 @@ public class User extends DataEntity<User> {
public String getDbName() { public String getDbName() {
return GConstants.getValue("jdbc.type", "mysql"); return GConstants.getValue("jdbc.type", "mysql");
} }
public Position getPosition() { public Position getPosition() {
return position; return position;
} }
...@@ -341,11 +352,11 @@ public class User extends DataEntity<User> { ...@@ -341,11 +352,11 @@ public class User extends DataEntity<User> {
return Collections3.extractToString(roleList, "name", ","); return Collections3.extractToString(roleList, "name", ",");
} }
public boolean isAdmin(){ public boolean isAdmin() {
return isAdmin(this.id); return isAdmin(this.id);
} }
public static boolean isAdmin(String id){ public static boolean isAdmin(String id) {
return id != null && "1".equals(id); return id != null && "1".equals(id);
} }
......
...@@ -33,6 +33,8 @@ public class WorkbenchBean { ...@@ -33,6 +33,8 @@ public class WorkbenchBean {
private int confirmed = 0; private int confirmed = 0;
private int verified = 0; private int verified = 0;
private int unsettled = 0; private int unsettled = 0;
private int unreaListic = 0;
private int transfer = 0;
//总体 //总体
private int total = 0; private int total = 0;
...@@ -59,6 +61,29 @@ public class WorkbenchBean { ...@@ -59,6 +61,29 @@ public class WorkbenchBean {
private int businessManagement = 0; private int businessManagement = 0;
private int rAndD = 0; private int rAndD = 0;
private int iAndD = 0; private int iAndD = 0;
private int propertyManagement = 0;
private int hotelManagement = 0;
private int development = 0;
private int Other = 0;
private int land = 0;
public int getLand() {
return land;
}
public void setLand(int land) {
this.land = land;
}
public int getForensic() {
return forensic;
}
public void setForensic(int forensic) {
this.forensic = forensic;
}
private int forensic = 0;
public WorkbenchBean() { public WorkbenchBean() {
} }
...@@ -374,4 +399,53 @@ public class WorkbenchBean { ...@@ -374,4 +399,53 @@ public class WorkbenchBean {
public void setUnsettled(int unsettled) { public void setUnsettled(int unsettled) {
this.unsettled = unsettled; this.unsettled = unsettled;
} }
public int getUnreaListic() {
return unreaListic;
}
public void setUnreaListic(int unreaListic) {
this.unreaListic = unreaListic;
}
public int getTransfer() {
return transfer;
}
public void setTransfer(int transfer) {
this.transfer = transfer;
}
public int getPropertyManagement() {
return propertyManagement;
}
public void setPropertyManagement(int propertyManagement) {
this.propertyManagement = propertyManagement;
}
public int getHotelManagement() {
return hotelManagement;
}
public void setHotelManagement(int hotelManagement) {
this.hotelManagement = hotelManagement;
}
public int getDevelopment() {
return development;
}
public void setDevelopment(int development) {
this.development = development;
}
public int getOther() {
return Other;
}
public void setOther(int other) {
Other = other;
}
} }
...@@ -34,20 +34,20 @@ public class WorkbenchController extends BaseController { ...@@ -34,20 +34,20 @@ public class WorkbenchController extends BaseController {
private ReportService reportService; private ReportService reportService;
@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;
try { try {
User user = UserUtils.getUser(); User user = UserUtils.getUser();
bean = getWorkbenchByUser(user, bean); bean = getWorkbenchByUser(user, bean);
if(StringUtils.isBlank(bean.getProcessStatus()) || "0".equals(bean.getProcessStatus())){ if (StringUtils.isBlank(bean.getProcessStatus()) || "0".equals(bean.getProcessStatus())) {
bean.setProcessStatus("0"); bean.setProcessStatus("0");
}else if("1".equals(bean.getProcessStatus())){ } else if ("1".equals(bean.getProcessStatus())) {
bean.setProcessStatus("1"); bean.setProcessStatus("1");
} }
List<ReportEntity> repList = workbenchService.getRepList(bean); List<ReportEntity> repList = workbenchService.getRepList(bean);
model.addAttribute("workbench",bean); model.addAttribute("workbench", bean);
model.addAttribute("repList",repList); model.addAttribute("repList", repList);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
...@@ -56,41 +56,45 @@ public class WorkbenchController extends BaseController { ...@@ -56,41 +56,45 @@ public class WorkbenchController extends BaseController {
@RequestMapping("/getHighcharts") @RequestMapping("/getHighcharts")
@ResponseBody @ResponseBody
public void getHighcharts(WorkbenchBean bean,HttpServletResponse response){ public void getHighcharts(WorkbenchBean bean, HttpServletResponse response) {
JSONObject res = new JSONObject(); JSONObject res = new JSONObject();
try { try {
User user = UserUtils.getUser(); User user = UserUtils.getUser();
bean = getWorkbenchByUser(user, bean); bean = getWorkbenchByUser(user, bean);
res.put("bench",bean); res.put("bench", bean);
//举报状态 //举报状态
res.put("unProcess",bean.getUnProcess()); res.put("unProcess", bean.getUnProcess());
res.put("processing",bean.getProcessing()); res.put("processing", bean.getProcessing());
res.put("processed",bean.getProcessed()); res.put("processed", bean.getProcessed());
res.put("closed",bean.getClosed()); res.put("closed", bean.getClosed());
//举报结果 //举报结果
res.put("unsettled",bean.getUnsettled()); res.put("unsettled", bean.getUnsettled());
res.put("invalid",bean.getInvalid()); res.put("invalid", bean.getInvalid());
res.put("complainNum",bean.getComplainNum()); res.put("complainNum", bean.getComplainNum());
res.put("verified",bean.getVerified()); res.put("verified", bean.getVerified());
res.put("confirmed",bean.getConfirmed()); res.put("confirmed", bean.getConfirmed());
res.put("startDate",bean.getStartDate()); res.put("unreaListic", bean.getConfirmed());
res.put("endDate",bean.getEndDate()); res.put("transfer", bean.getConfirmed());
res.put("startDate", bean.getStartDate());
res.put("endDate", bean.getEndDate());
//举报类型 //举报类型
res.put("sale",bean.getSale()); res.put("land", bean.getLand());
res.put("project",bean.getProject()); // res.put("project", bean.getProject());
res.put("cost",bean.getCost()); // res.put("cost", bean.getCost());
res.put("forMining",bean.getForMining()); // res.put("forMining", bean.getForMining());
res.put("manpower",bean.getManpower()); // res.put("finance", bean.getFinance());
res.put("tenement",bean.getTenement()); // res.put("forensic", bean.getForensic());
res.put("complain",bean.getComplain()); // res.put("administration", bean.getAdministration());
res.put("administration",bean.getAdministration()); // res.put("manpower", bean.getManpower());
res.put("finance",bean.getFinance()); // res.put("development", bean.getDevelopment());
res.put("businessManagement",bean.getBusinessManagement()); // res.put("rAndD", bean.getrAndD());
res.put("rAndD",bean.getrAndD()); // res.put("iAndD", bean.getiAndD());
res.put("iAndD",bean.getiAndD()); // res.put("Other", bean.getOther());
res.put("propertyManagement", bean.getPropertyManagement());
res.put("startDate",bean.getStartDate()); res.put("hotelManagement", bean.getHotelManagement());
res.put("endDate",bean.getEndDate()); res.put("businessManagement", bean.getBusinessManagement());
res.put("startDate", bean.getStartDate());
res.put("endDate", bean.getEndDate());
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");
...@@ -101,8 +105,8 @@ public class WorkbenchController extends BaseController { ...@@ -101,8 +105,8 @@ public class WorkbenchController extends BaseController {
} }
} }
public WorkbenchBean getWorkbenchByUser(User user,WorkbenchBean bean){ public WorkbenchBean getWorkbenchByUser(User user, WorkbenchBean bean) {
if(user != null) { if (user != null) {
try { try {
//判断登录人的角色 //判断登录人的角色
String roleName = reportService.findRole(user); String roleName = reportService.findRole(user);
......
...@@ -14,6 +14,13 @@ jdbc.url=jdbc:oracle:thin:@192.168.2.53:1521:eas ...@@ -14,6 +14,13 @@ jdbc.url=jdbc:oracle:thin:@192.168.2.53:1521:eas
jdbc.username=eas7531 jdbc.username=eas7531
jdbc.password=sunac 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
......
...@@ -234,6 +234,7 @@ ...@@ -234,6 +234,7 @@
password, password,
no, no,
name, name,
area,
email, email,
phone, phone,
mobile, mobile,
...@@ -254,6 +255,7 @@ ...@@ -254,6 +255,7 @@
#{password}, #{password},
#{no}, #{no},
#{name}, #{name},
#{area},
#{email}, #{email},
#{phone}, #{phone},
#{mobile}, #{mobile},
...@@ -288,6 +290,7 @@ ...@@ -288,6 +290,7 @@
password = #{password}, password = #{password},
no = #{no}, no = #{no},
name = #{name}, name = #{name},
area=#{area},
email = #{email}, email = #{email},
phone = #{phone}, phone = #{phone},
mobile = #{mobile}, mobile = #{mobile},
......
...@@ -191,7 +191,6 @@ ...@@ -191,7 +191,6 @@
<form:input id="supplementType" <form:input id="supplementType"
path="supplementType" path="supplementType"
htmlEscape="false" maxlength="200" class="input-xlarge required"/> htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
......
...@@ -219,13 +219,13 @@ ...@@ -219,13 +219,13 @@
/*t_r_content和cl_freeze高度相差20px, 高度为外观显示高度,可根据情况调整*/ /*t_r_content和cl_freeze高度相差20px, 高度为外观显示高度,可根据情况调整*/
.t_r_content { .t_r_content {
width: 100%; width: 100%;
height: 358px; height: 410px;
background: #fff; background: #fff;
overflow: auto; overflow: auto;
} }
.cl_freeze { .cl_freeze {
height: 341px; height: 410px;
overflow: hidden; overflow: hidden;
width: 101%; width: 101%;
} }
...@@ -268,7 +268,9 @@ ...@@ -268,7 +268,9 @@
<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 null or flag eq ''}">class="active"</c:if>><a href="${ctx}/report/list">跟踪中举报列表</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 '1'}">class="active"</c:if>><a href="${ctx}/report/list?flag=1">举报列表</a></li> <li <c:if test="${flag eq '1'}">class="active"</c:if>><a href="${ctx}/report/list?flag=1">举报列表</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>
<form:form id="searchForm" modelAttribute="report" action="${ctx}/report/list" method="post" <form:form id="searchForm" modelAttribute="report" action="${ctx}/report/list" method="post"
...@@ -300,7 +302,7 @@ ...@@ -300,7 +302,7 @@
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>业务类型:</label><form:select onchange="resetPageNo();" path="supplementType" class="input-small"> <li><label>业务类型:</label><form:select onchange="resetPageNo();" path="supplementType" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('business_type')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>状态:</label><form:select onchange="resetPageNo();" path="reportStatus" class="input-small"> <li><label>状态:</label><form:select onchange="resetPageNo();" path="reportStatus" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
...@@ -334,7 +336,7 @@ ...@@ -334,7 +336,7 @@
<thead> <thead>
<tr> <tr>
<th style="width:5%">ID</th> <th style="width:5%">ID</th>
<th style="width:15%">标题</th> <th style="width:15%" align="center">标题</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -342,7 +344,7 @@ ...@@ -342,7 +344,7 @@
<c:forEach items="${page.list}" var="report" varStatus="vs"> <c:forEach items="${page.list}" var="report" varStatus="vs">
<tr class="reportList"> <tr class="reportList">
<td style="width:5%"></td> <td style="width:5%"></td>
<td style="width:15%">${report.supplementTitle}</td> <td style="width:15%" align="left">${report.supplementTitle}</td>
</c:forEach> </c:forEach>
</c:if> </c:if>
</tr> </tr>
...@@ -369,6 +371,7 @@ ...@@ -369,6 +371,7 @@
<th>举报时间</th> <th>举报时间</th>
<th>状态</th> <th>状态</th>
<th>处理结论</th> <th>处理结论</th>
<th>移交部门</th>
<th>处理人</th> <th>处理人</th>
<c:if test="${isAdmin eq true}"> <c:if test="${isAdmin eq true}">
<th>移交给</th> <th>移交给</th>
...@@ -430,7 +433,10 @@ ...@@ -430,7 +433,10 @@
<c:if test="${report.dealResult eq '2'}">举报无效</c:if> <c:if test="${report.dealResult eq '2'}">举报无效</c:if>
<c:if test="${report.dealResult eq '3'}">举报受理</c:if> <c:if test="${report.dealResult eq '3'}">举报受理</c:if>
<c:if test="${report.dealResult eq '4'}">举报属实</c:if> <c:if test="${report.dealResult eq '4'}">举报属实</c:if>
<c:if test="${report.dealResult eq '5'}">举报不实</c:if>
<c:if test="${report.dealResult eq '6'}">移交其他部门</c:if>
</td> </td>
<td>${report.transferDepartment}</td>
<td><c:if test="${report.dealPersonName eq null}">--</c:if> <td><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>
......
<%@ page contentType="text/html;charset=UTF-8" %> <%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%> <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html> <html>
<head> <head>
<title>用户管理</title> <title>用户管理</title>
<meta name="decorator" content="default"/> <meta name="decorator" content="default"/>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function () {
$("#no").focus(); $("#no").focus();
$("#inputForm").validate({ $("#inputForm").validate({
rules: { rules: {
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
loginName: {remote: "用户登录名已存在"}, loginName: {remote: "用户登录名已存在"},
confirmNewPassword: {equalTo: "输入与上面相同的密码"} confirmNewPassword: {equalTo: "输入与上面相同的密码"}
}, },
submitHandler: function(form){ submitHandler: function (form) {
loading('正在提交,请稍等...'); loading('正在提交,请稍等...');
form.submit(); form.submit();
}, },
errorContainer: "#messageBox", errorContainer: "#messageBox",
errorPlacement: function(error, element) { errorPlacement: function (error, element) {
$("#messageBox").text("输入有误,请先更正。"); $("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){ if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
error.appendTo(element.parent().parent()); error.appendTo(element.parent().parent());
} else { } else {
error.insertAfter(element); error.insertAfter(element);
...@@ -33,11 +33,14 @@ ...@@ -33,11 +33,14 @@
</script> </script>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li><a href="${ctx}/sys/user/list">用户列表</a></li> <li><a href="${ctx}/sys/user/list">用户列表</a></li>
<li class="active"><a href="${ctx}/sys/user/form?id=${user.id}">用户<shiro:hasPermission name="sys:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:user:edit">查看</shiro:lacksPermission></a></li> <li class="active"><a href="${ctx}/sys/user/form?id=${user.id}">用户<shiro:hasPermission
</ul><br/> name="sys:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission
<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/save" method="post" class="form-horizontal"> name="sys:user:edit">查看</shiro:lacksPermission></a></li>
</ul>
<br/>
<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/save" method="post" class="form-horizontal">
<form:hidden path="id"/> <form:hidden path="id"/>
<sys:message content="${message}"/> <sys:message content="${message}"/>
<%--<div class="control-group"> <%--<div class="control-group">
...@@ -83,6 +86,16 @@ ...@@ -83,6 +86,16 @@
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label">所属区域:</label>
<div class="controls">
<form:select id="supplementArea" path="area" class="input-small required">
<form:option value=" "></form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<%--<div class="control-group"> <%--<div class="control-group">
<label class="control-label">密码:</label> <label class="control-label">密码:</label>
<div class="controls"> <div class="controls">
...@@ -137,7 +150,8 @@ ...@@ -137,7 +150,8 @@
<div class="control-group"> <div class="control-group">
<label class="control-label">用户角色:</label> <label class="control-label">用户角色:</label>
<div class="controls"> <div class="controls">
<form:checkboxes path="roleIdList" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false" class="required"/> <form:checkboxes path="roleIdList" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false"
class="required"/>
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
...@@ -162,9 +176,10 @@ ...@@ -162,9 +176,10 @@
</div> </div>
</c:if>--%> </c:if>--%>
<div class="form-actions"> <div class="form-actions">
<shiro:hasPermission name="sys:user:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission> <shiro:hasPermission name="sys:user:edit"><input id="btnSubmit" class="btn btn-primary" type="submit"
value="保 存"/>&nbsp;</shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/> <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div> </div>
</form:form> </form:form>
</body> </body>
</html> </html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %> <%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%> <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html> <html>
<head> <head>
<title>用户管理</title> <title>用户管理</title>
<meta name="decorator" content="default"/> <meta name="decorator" content="default"/>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function () {
$("#no").focus(); $("#no").focus();
$("#inputForm").validate({ $("#inputForm").validate({
rules: { rules: {
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
loginName: {remote: "用户登录名已存在"}, loginName: {remote: "用户登录名已存在"},
confirmNewPassword: {equalTo: "输入与上面相同的密码"} confirmNewPassword: {equalTo: "输入与上面相同的密码"}
}, },
submitHandler: function(form){ submitHandler: function (form) {
loading('正在提交,请稍等...'); loading('正在提交,请稍等...');
form.submit(); form.submit();
}, },
errorContainer: "#messageBox", errorContainer: "#messageBox",
errorPlacement: function(error, element) { errorPlacement: function (error, element) {
$("#messageBox").text("输入有误,请先更正。"); $("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){ if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
error.appendTo(element.parent().parent()); error.appendTo(element.parent().parent());
} else { } else {
error.insertAfter(element); error.insertAfter(element);
...@@ -33,11 +33,14 @@ ...@@ -33,11 +33,14 @@
</script> </script>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li><a href="${ctx}/sys/user/list">用户列表</a></li> <li><a href="${ctx}/sys/user/list">用户列表</a></li>
<li class="active"><a href="${ctx}/sys/user/form?id=${user.id}">用户<shiro:hasPermission name="sys:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:user:edit">查看</shiro:lacksPermission></a></li> <li class="active"><a href="${ctx}/sys/user/form?id=${user.id}">用户<shiro:hasPermission
</ul><br/> name="sys:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission
<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/save" method="post" class="form-horizontal"> name="sys:user:edit">查看</shiro:lacksPermission></a></li>
</ul>
<br/>
<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/save" method="post" class="form-horizontal">
<form:hidden path="id"/> <form:hidden path="id"/>
<sys:message content="${message}"/> <sys:message content="${message}"/>
<%--<div class="control-group"> <%--<div class="control-group">
...@@ -83,6 +86,16 @@ ...@@ -83,6 +86,16 @@
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label">所属区域:</label>
<div class="controls">
<form:select id="supplementArea" path="area" class="input-small required">
<form:option value=" "></form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<%--<div class="control-group"> <%--<div class="control-group">
<label class="control-label">密码:</label> <label class="control-label">密码:</label>
<div class="controls"> <div class="controls">
...@@ -137,7 +150,8 @@ ...@@ -137,7 +150,8 @@
<div class="control-group"> <div class="control-group">
<label class="control-label">用户角色:</label> <label class="control-label">用户角色:</label>
<div class="controls"> <div class="controls">
<form:checkboxes path="roleIdList" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false" class="required"/> <form:checkboxes path="roleIdList" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false"
class="required"/>
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
...@@ -162,9 +176,10 @@ ...@@ -162,9 +176,10 @@
</div> </div>
</c:if>--%> </c:if>--%>
<div class="form-actions"> <div class="form-actions">
<shiro:hasPermission name="sys:user:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission> <shiro:hasPermission name="sys:user:edit"><input id="btnSubmit" class="btn btn-primary" type="submit"
value="保 存"/>&nbsp;</shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/> <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div> </div>
</form:form> </form:form>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -14,6 +14,13 @@ jdbc.url=jdbc:oracle:thin:@192.168.2.53:1521:eas ...@@ -14,6 +14,13 @@ jdbc.url=jdbc:oracle:thin:@192.168.2.53:1521:eas
jdbc.username=eas7531 jdbc.username=eas7531
jdbc.password=sunac 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
......
...@@ -234,6 +234,7 @@ ...@@ -234,6 +234,7 @@
password, password,
no, no,
name, name,
area,
email, email,
phone, phone,
mobile, mobile,
...@@ -254,6 +255,7 @@ ...@@ -254,6 +255,7 @@
#{password}, #{password},
#{no}, #{no},
#{name}, #{name},
#{area},
#{email}, #{email},
#{phone}, #{phone},
#{mobile}, #{mobile},
...@@ -288,6 +290,7 @@ ...@@ -288,6 +290,7 @@
password = #{password}, password = #{password},
no = #{no}, no = #{no},
name = #{name}, name = #{name},
area=#{area},
email = #{email}, email = #{email},
phone = #{phone}, phone = #{phone},
mobile = #{mobile}, mobile = #{mobile},
......
<%@ page contentType="text/html;charset=UTF-8" %> <%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%> <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html> <html>
<head> <head>
<title>用户管理</title> <title>用户管理</title>
<meta name="decorator" content="default"/> <meta name="decorator" content="default"/>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function () {
$("#no").focus(); $("#no").focus();
$("#inputForm").validate({ $("#inputForm").validate({
rules: { rules: {
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
loginName: {remote: "用户登录名已存在"}, loginName: {remote: "用户登录名已存在"},
confirmNewPassword: {equalTo: "输入与上面相同的密码"} confirmNewPassword: {equalTo: "输入与上面相同的密码"}
}, },
submitHandler: function(form){ submitHandler: function (form) {
loading('正在提交,请稍等...'); loading('正在提交,请稍等...');
form.submit(); form.submit();
}, },
errorContainer: "#messageBox", errorContainer: "#messageBox",
errorPlacement: function(error, element) { errorPlacement: function (error, element) {
$("#messageBox").text("输入有误,请先更正。"); $("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){ if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
error.appendTo(element.parent().parent()); error.appendTo(element.parent().parent());
} else { } else {
error.insertAfter(element); error.insertAfter(element);
...@@ -33,11 +33,14 @@ ...@@ -33,11 +33,14 @@
</script> </script>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li><a href="${ctx}/sys/user/list">用户列表</a></li> <li><a href="${ctx}/sys/user/list">用户列表</a></li>
<li class="active"><a href="${ctx}/sys/user/form?id=${user.id}">用户<shiro:hasPermission name="sys:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:user:edit">查看</shiro:lacksPermission></a></li> <li class="active"><a href="${ctx}/sys/user/form?id=${user.id}">用户<shiro:hasPermission
</ul><br/> name="sys:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission
<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/save" method="post" class="form-horizontal"> name="sys:user:edit">查看</shiro:lacksPermission></a></li>
</ul>
<br/>
<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/save" method="post" class="form-horizontal">
<form:hidden path="id"/> <form:hidden path="id"/>
<sys:message content="${message}"/> <sys:message content="${message}"/>
<%--<div class="control-group"> <%--<div class="control-group">
...@@ -83,6 +86,16 @@ ...@@ -83,6 +86,16 @@
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label">所属区域:</label>
<div class="controls">
<form:select id="supplementArea" path="area" class="input-small required">
<form:option value=" "></form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<%--<div class="control-group"> <%--<div class="control-group">
<label class="control-label">密码:</label> <label class="control-label">密码:</label>
<div class="controls"> <div class="controls">
...@@ -137,7 +150,8 @@ ...@@ -137,7 +150,8 @@
<div class="control-group"> <div class="control-group">
<label class="control-label">用户角色:</label> <label class="control-label">用户角色:</label>
<div class="controls"> <div class="controls">
<form:checkboxes path="roleIdList" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false" class="required"/> <form:checkboxes path="roleIdList" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false"
class="required"/>
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
...@@ -162,9 +176,10 @@ ...@@ -162,9 +176,10 @@
</div> </div>
</c:if>--%> </c:if>--%>
<div class="form-actions"> <div class="form-actions">
<shiro:hasPermission name="sys:user:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission> <shiro:hasPermission name="sys:user:edit"><input id="btnSubmit" class="btn btn-primary" type="submit"
value="保 存"/>&nbsp;</shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/> <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div> </div>
</form:form> </form:form>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -14,6 +14,13 @@ jdbc.url=jdbc:oracle:thin:@192.168.2.53:1521:eas ...@@ -14,6 +14,13 @@ jdbc.url=jdbc:oracle:thin:@192.168.2.53:1521:eas
jdbc.username=eas7531 jdbc.username=eas7531
jdbc.password=sunac 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
......
...@@ -234,6 +234,7 @@ ...@@ -234,6 +234,7 @@
password, password,
no, no,
name, name,
area,
email, email,
phone, phone,
mobile, mobile,
...@@ -254,6 +255,7 @@ ...@@ -254,6 +255,7 @@
#{password}, #{password},
#{no}, #{no},
#{name}, #{name},
#{area},
#{email}, #{email},
#{phone}, #{phone},
#{mobile}, #{mobile},
...@@ -288,6 +290,7 @@ ...@@ -288,6 +290,7 @@
password = #{password}, password = #{password},
no = #{no}, no = #{no},
name = #{name}, name = #{name},
area=#{area},
email = #{email}, email = #{email},
phone = #{phone}, phone = #{phone},
mobile = #{mobile}, mobile = #{mobile},
......
<%@ page contentType="text/html;charset=UTF-8" %> <%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%> <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html> <html>
<head> <head>
<title>用户管理</title> <title>用户管理</title>
<meta name="decorator" content="default"/> <meta name="decorator" content="default"/>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function () {
$("#no").focus(); $("#no").focus();
$("#inputForm").validate({ $("#inputForm").validate({
rules: { rules: {
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
loginName: {remote: "用户登录名已存在"}, loginName: {remote: "用户登录名已存在"},
confirmNewPassword: {equalTo: "输入与上面相同的密码"} confirmNewPassword: {equalTo: "输入与上面相同的密码"}
}, },
submitHandler: function(form){ submitHandler: function (form) {
loading('正在提交,请稍等...'); loading('正在提交,请稍等...');
form.submit(); form.submit();
}, },
errorContainer: "#messageBox", errorContainer: "#messageBox",
errorPlacement: function(error, element) { errorPlacement: function (error, element) {
$("#messageBox").text("输入有误,请先更正。"); $("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){ if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
error.appendTo(element.parent().parent()); error.appendTo(element.parent().parent());
} else { } else {
error.insertAfter(element); error.insertAfter(element);
...@@ -33,11 +33,14 @@ ...@@ -33,11 +33,14 @@
</script> </script>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li><a href="${ctx}/sys/user/list">用户列表</a></li> <li><a href="${ctx}/sys/user/list">用户列表</a></li>
<li class="active"><a href="${ctx}/sys/user/form?id=${user.id}">用户<shiro:hasPermission name="sys:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:user:edit">查看</shiro:lacksPermission></a></li> <li class="active"><a href="${ctx}/sys/user/form?id=${user.id}">用户<shiro:hasPermission
</ul><br/> name="sys:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission
<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/save" method="post" class="form-horizontal"> name="sys:user:edit">查看</shiro:lacksPermission></a></li>
</ul>
<br/>
<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/save" method="post" class="form-horizontal">
<form:hidden path="id"/> <form:hidden path="id"/>
<sys:message content="${message}"/> <sys:message content="${message}"/>
<%--<div class="control-group"> <%--<div class="control-group">
...@@ -83,6 +86,16 @@ ...@@ -83,6 +86,16 @@
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label">所属区域:</label>
<div class="controls">
<form:select id="supplementArea" path="area" class="input-small required">
<form:option value=" "></form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<%--<div class="control-group"> <%--<div class="control-group">
<label class="control-label">密码:</label> <label class="control-label">密码:</label>
<div class="controls"> <div class="controls">
...@@ -137,7 +150,8 @@ ...@@ -137,7 +150,8 @@
<div class="control-group"> <div class="control-group">
<label class="control-label">用户角色:</label> <label class="control-label">用户角色:</label>
<div class="controls"> <div class="controls">
<form:checkboxes path="roleIdList" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false" class="required"/> <form:checkboxes path="roleIdList" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false"
class="required"/>
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
...@@ -162,9 +176,10 @@ ...@@ -162,9 +176,10 @@
</div> </div>
</c:if>--%> </c:if>--%>
<div class="form-actions"> <div class="form-actions">
<shiro:hasPermission name="sys:user:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission> <shiro:hasPermission name="sys:user:edit"><input id="btnSubmit" class="btn btn-primary" type="submit"
value="保 存"/>&nbsp;</shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/> <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div> </div>
</form:form> </form:form>
</body> </body>
</html> </html>
\ No newline at end of file
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