Commit aeb825f8 by 3

添加OA账号列

parent a83eed6f
...@@ -44,6 +44,17 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -44,6 +44,17 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String reportAttachment; //举报提交文件 private String reportAttachment; //举报提交文件
private String supplementAttachment; //补充提交文件 private String supplementAttachment; //补充提交文件
private String dealAttachment; //处理成果文件 private String dealAttachment; //处理成果文件
private String oaname;//当前用户名
public String getOaname() {
return oaname;
}
public void setOaname(String oaname) {
this.oaname = oaname;
}
@ExcelField(title="被举报项目", align=2, sort=24) @ExcelField(title="被举报项目", align=2, sort=24)
public String getReportProject() { public String getReportProject() {
......
...@@ -71,6 +71,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -71,6 +71,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
public void saveReport(ReportEntity reportEntity) { public void saveReport(ReportEntity reportEntity) {
//保存举报信息 //保存举报信息
reportEntity.preInsert(); reportEntity.preInsert();
//保存填写人信息
User user = UserUtils.getUser();
String oaname = user.getName();
reportEntity.setOaname(oaname);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String reportTime = sdf.format(reportEntity.getCreateDate()); String reportTime = sdf.format(reportEntity.getCreateDate());
reportEntity.setReportTime(reportTime); reportEntity.setReportTime(reportTime);
......
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
r.create_by AS "createBy", r.create_by AS "createBy",
r.create_date AS "createDate", r.create_date AS "createDate",
r.update_by AS "updateBy", r.update_by AS "updateBy",
r.update_date AS "updateDate" r.update_date AS "updateDate",
r.OA_NAME AS "oaname"
</sql> </sql>
...@@ -155,7 +156,8 @@ ...@@ -155,7 +156,8 @@
create_by, create_by,
create_date, create_date,
update_by, update_by,
update_date update_date,
OA_NAME
) VALUES ( ) VALUES (
#{id}, #{id},
#{reportProject}, #{reportProject},
...@@ -173,7 +175,8 @@ ...@@ -173,7 +175,8 @@
#{createBy.id}, #{createBy.id},
#{createDate}, #{createDate},
#{updateBy.id}, #{updateBy.id},
#{updateDate} #{updateDate},
#{oaname}
) )
</insert> </insert>
...@@ -210,7 +213,8 @@ ...@@ -210,7 +213,8 @@
exchange_type = #{exchangeType}, exchange_type = #{exchangeType},
deal_result = #{dealResult}, deal_result = #{dealResult},
update_by = #{updateBy.id}, update_by = #{updateBy.id},
update_date = #{updateDate} update_date = #{updateDate},
OA_NAME = #{oaname}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
...@@ -489,7 +493,8 @@ ...@@ -489,7 +493,8 @@
r.create_by AS "createBy", r.create_by AS "createBy",
r.create_date AS "createDate", r.create_date AS "createDate",
r.update_by AS "updateBy", r.update_by AS "updateBy",
r.update_date AS "updateDate" r.update_date AS "updateDate",
r.OA_NAME AS "oaname"
FROM ct_bbtc_report r FROM ct_bbtc_report r
WHERE r.report_status = #{processStatus} WHERE r.report_status = #{processStatus}
<if test="isAdmin != null"> <if test="isAdmin != null">
......
...@@ -121,6 +121,7 @@ ...@@ -121,6 +121,7 @@
<th>标题</th> <th>标题</th>
<th>业务类型</th> <th>业务类型</th>
<th>被举报项目</th> <th>被举报项目</th>
<th>OA账号</th>
<th>举报人</th> <th>举报人</th>
<th>举报人电话</th> <th>举报人电话</th>
<th>区域</th> <th>区域</th>
...@@ -148,6 +149,7 @@ ...@@ -148,6 +149,7 @@
<c:if test="${report.supplementType eq '7'}">投诉</c:if> <c:if test="${report.supplementType eq '7'}">投诉</c:if>
</td> </td>
<td>${report.reportProject}</td> <td>${report.reportProject}</td>
<td>${report.oaname}</td>
<td>${report.reportPersonName}</td> <td>${report.reportPersonName}</td>
<td>${report.reportPersonTel}</td> <td>${report.reportPersonTel}</td>
<td> <td>
......
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