[修改] 保存到草稿 因dataId引起的偶现问题
This commit is contained in:
@@ -40,6 +40,12 @@ public class TtReportManageAct {
|
|||||||
@TableField("data_id")
|
@TableField("data_id")
|
||||||
private String dataId;
|
private String dataId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报告id
|
||||||
|
*/
|
||||||
|
@TableField("report_id")
|
||||||
|
private String reportId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 报告名
|
* 报告名
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
<result column="task_id" property="taskId" />
|
<result column="task_id" property="taskId" />
|
||||||
<result column="prc_id" property="prcId" />
|
<result column="prc_id" property="prcId" />
|
||||||
<result column="data_id" property="dataId" />
|
<result column="data_id" property="dataId" />
|
||||||
|
<result column="report_id" property="reportId" />
|
||||||
<result column="name" property="name" />
|
<result column="name" property="name" />
|
||||||
<result column="keycontent" property="keyContent" />
|
<result column="keycontent" property="keyContent" />
|
||||||
<result column="maincontent" property="mainContent" />
|
<result column="maincontent" property="mainContent" />
|
||||||
@@ -33,7 +34,8 @@
|
|||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="BaseColumnList">
|
<sql id="BaseColumnList">
|
||||||
id,
|
id,
|
||||||
task_id, prc_id, data_id, name, keycontent, maincontent, department, year, fileId, confidentialLevel, privacyLevel, createUserId, createDate, updateDate, del_flag
|
task_id, prc_id, data_id,report_id ,name, keycontent, maincontent, department, year, fileId, confidentialLevel,
|
||||||
|
privacyLevel, createUserId, createDate, updateDate, del_flag
|
||||||
,secrecy_last,file_name
|
,secrecy_last,file_name
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@@ -51,6 +53,9 @@
|
|||||||
<if test="pageVO.dataId !=null and pageVO.dataId !=''">
|
<if test="pageVO.dataId !=null and pageVO.dataId !=''">
|
||||||
AND data_id LIKE CONCAT(CONCAT('%',#{pageVO.dataId}),'%')
|
AND data_id LIKE CONCAT(CONCAT('%',#{pageVO.dataId}),'%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="pageVO.reportId !=null and pageVO.reportId !=''">
|
||||||
|
AND report_id LIKE CONCAT(CONCAT('%',#{pageVO.reportId}),'%')
|
||||||
|
</if>
|
||||||
<if test="pageVO.name !=null and pageVO.name !=''">
|
<if test="pageVO.name !=null and pageVO.name !=''">
|
||||||
AND name LIKE CONCAT(CONCAT('%',#{pageVO.name}),'%')
|
AND name LIKE CONCAT(CONCAT('%',#{pageVO.name}),'%')
|
||||||
</if>
|
</if>
|
||||||
@@ -128,7 +133,7 @@
|
|||||||
<select id="selectByDataId" resultMap="BaseResultMap">
|
<select id="selectByDataId" resultMap="BaseResultMap">
|
||||||
SELECT
|
SELECT
|
||||||
a.id,
|
a.id,
|
||||||
task_id, prc_id, data_id, name, keycontent, maincontent, department,
|
task_id, prc_id, data_id,report_id, name, keycontent, maincontent, department,
|
||||||
org.LONG_NAME as departmentName,
|
org.LONG_NAME as departmentName,
|
||||||
year, fileId, confidentialLevel, privacyLevel, createUserId, createDate, updateDate, del_flag
|
year, fileId, confidentialLevel, privacyLevel, createUserId, createDate, updateDate, del_flag
|
||||||
,secrecy_last,file_name
|
,secrecy_last,file_name
|
||||||
@@ -141,7 +146,7 @@
|
|||||||
<select id="selectByPrcId" resultMap="BaseResultMap">
|
<select id="selectByPrcId" resultMap="BaseResultMap">
|
||||||
SELECT
|
SELECT
|
||||||
a.id,
|
a.id,
|
||||||
task_id, prc_id, data_id, name, keycontent, maincontent, department,
|
task_id, prc_id, data_id,report_id, name, keycontent, maincontent, department,
|
||||||
org.LONG_NAME as departmentName,
|
org.LONG_NAME as departmentName,
|
||||||
year, fileId, confidentialLevel, privacyLevel, createUserId, createDate, updateDate, del_flag
|
year, fileId, confidentialLevel, privacyLevel, createUserId, createDate, updateDate, del_flag
|
||||||
,secrecy_last,file_name
|
,secrecy_last,file_name
|
||||||
|
|||||||
+7
@@ -51,6 +51,13 @@ public class ActivitDefineService {
|
|||||||
if (StringUtils.isBlank(reportId)){
|
if (StringUtils.isBlank(reportId)){
|
||||||
reportId = UUID.randomUUID().toString().replace("-","");
|
reportId = UUID.randomUUID().toString().replace("-","");
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* prcId为空时,是指保存到草稿 ,dataJson是有reportId的,
|
||||||
|
* 此时 给reportId一个唯一值,是为了付给 dataId
|
||||||
|
*/
|
||||||
|
if (StringUtils.isBlank(prcId)){
|
||||||
|
reportId = UUID.randomUUID().toString().replace("-","");
|
||||||
|
}
|
||||||
if ("".equals(prcType)){
|
if ("".equals(prcType)){
|
||||||
// 保存到草稿 ,没有选择 要申请的权限
|
// 保存到草稿 ,没有选择 要申请的权限
|
||||||
PowerApplyAct powerApplyAct = JSONObject.parseObject(dataJson, PowerApplyAct.class);
|
PowerApplyAct powerApplyAct = JSONObject.parseObject(dataJson, PowerApplyAct.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user