Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2023-01-10 18:19:35 +08:00
commit 07b5892265
10 changed files with 531 additions and 508 deletions

View File

@ -805,6 +805,12 @@ public class TAbilityApplicationController {
temp.put("system", index.getSystem()); temp.put("system", index.getSystem());
temp.put("resourceId", index.getResourceId()); temp.put("resourceId", index.getResourceId());
ResourceDTO resourceDTO = resourceService.get(Long.parseLong(index.getResourceId())); ResourceDTO resourceDTO = resourceService.get(Long.parseLong(index.getResourceId()));
try {
temp.put("resourceDept", sysDeptService.get(resourceDTO.getDeptId()).getName());
} catch (Exception exception) {
temp.put("resourceDept", "-");
}
temp.put("description", resourceDTO.getDescription());
if ("应用资源".equals(resourceDTO.getType())) { if ("应用资源".equals(resourceDTO.getType())) {
temp.put("resourceTYpe", "应用资源"); temp.put("resourceTYpe", "应用资源");
} else if ("组件服务".equals(resourceDTO.getType())) { } else if ("组件服务".equals(resourceDTO.getType())) {

View File

@ -85,9 +85,9 @@ public class TAbilityApplicationServiceImpl extends CrudServiceImpl<TAbilityAppl
String sql = "SELECT 1 FROM tb_resource_score t1 WHERE t1.user_id = t_ability_application.user_id AND t1.resource_id = t_ability_application.resource_id"; String sql = "SELECT 1 FROM tb_resource_score t1 WHERE t1.user_id = t_ability_application.user_id AND t1.resource_id = t_ability_application.resource_id";
String resource_sql = "SELECT 1 FROM tb_data_resource WHERE tb_data_resource.del_flag = 0 AND t_ability_application.resource_id = tb_data_resource.id"; String resource_sql = "SELECT 1 FROM tb_data_resource WHERE tb_data_resource.del_flag = 0 AND t_ability_application.resource_id = tb_data_resource.id";
if (score) { if (score) {
wrapper.exists(sql).exists(resource_sql).ne("approve_status", "通过"); wrapper.exists(sql).exists(resource_sql).eq("approve_status", "通过");
} else { } else {
wrapper.notExists(sql).exists(resource_sql).ne("approve_status", "通过"); wrapper.notExists(sql).exists(resource_sql).eq("approve_status", "通过");
} }
break; break;
} }

View File

@ -38,13 +38,13 @@
ahp.START_USER_ID_, ahp.START_USER_ID_,
arp.VERSION_ AS DEF_VERSION_ arp.VERSION_ AS DEF_VERSION_
FROM FROM
( SELECT DISTINCT PROC_DEF_ID_, PROC_INST_ID_, ASSIGNEE_ FROM ACT_HI_TASKINST ) aht ( SELECT DISTINCT PROC_DEF_ID_, PROC_INST_ID_, ASSIGNEE_ FROM ACT_HI_TASKINST ) aht
LEFT JOIN ACT_HI_PROCINST ahp ON aht.PROC_INST_ID_ = ahp.PROC_INST_ID_ LEFT JOIN ACT_HI_PROCINST ahp ON aht.PROC_INST_ID_ = ahp.PROC_INST_ID_
LEFT JOIN ACT_RE_PROCDEF arp ON aht.PROC_DEF_ID_ = arp.ID_ LEFT JOIN ACT_RE_PROCDEF arp ON aht.PROC_DEF_ID_ = arp.ID_
LEFT JOIN sys_user su ON ahp.START_USER_ID_ = su.id LEFT JOIN sys_user su ON ahp.START_USER_ID_ = su.id
WHERE WHERE
aht.ASSIGNEE_ = #{userId} aht.ASSIGNEE_ = #{userId}
<if test="userName != null and userName != ''" > <if test="userName != null and userName != ''">
and su.real_name like CONCAT('%', #{userName} ,'%') and su.real_name like CONCAT('%', #{userName} ,'%')
</if> </if>
<if test="processInstanceId != null"> <if test="processInstanceId != null">
@ -71,7 +71,7 @@
<if test="ended != null"> <if test="ended != null">
and ahp.END_TIME_ IS NOT NULL and ahp.END_TIME_ IS NOT NULL
</if> </if>
ORDER BY ORDER BY
ahp.START_TIME_ DESC ahp.START_TIME_ DESC
</select> </select>

View File

@ -23,7 +23,7 @@
<result property="approvalUserDeptName" column="approval_user_dept_name"/> <result property="approvalUserDeptName" column="approval_user_dept_name"/>
<result property="visits" column="visits"/> <result property="visits" column="visits"/>
<result property="applyNumber" column="apply_number"/> <result property="applyNumber" column="apply_number"/>
<result property="enclosureName" column="enclosure_name" /> <result property="enclosureName" column="enclosure_name"/>
</resultMap> </resultMap>
<update id="updateInstanceId"> <update id="updateInstanceId">

View File

@ -33,7 +33,8 @@
trc.user_id = #{userId})>0 , 'true', 'false') as isCollect trc.user_id = #{userId})>0 , 'true', 'false') as isCollect
FROM FROM
tb_fuse tf tb_fuse tf
LEFT JOIN ( SELECT id, resource_Id, user_id FROM tb_resource_collection WHERE 1 = 1 AND del_flag = 0 ) trc ON tf.id = trc.resource_id LEFT JOIN ( SELECT id, resource_Id, user_id FROM tb_resource_collection WHERE 1 = 1 AND del_flag = 0 ) trc ON
tf.id = trc.resource_id
WHERE WHERE
1 =1 1 =1
<if test="name != null and name != ''"> <if test="name != null and name != ''">

View File

@ -109,13 +109,13 @@
<update id="updateByDelProcinst"> <update id="updateByDelProcinst">
UPDATE tb_data_resource UPDATE tb_data_resource
SET del_flag = 0, SET del_flag = 0,
undercarriage_reason = NULL, undercarriage_reason = NULL,
undercarriage_user_name = NULL, undercarriage_user_name = NULL,
apply_number = NULL, apply_number = NULL,
undercarriage_enclosure = NULL, undercarriage_enclosure = NULL,
undercarriage_title = NULL, undercarriage_title = NULL,
undercarriage_phone = NULL, undercarriage_phone = NULL,
undercarriage_enclosure_name = NULL undercarriage_enclosure_name = NULL
WHERE id = #{resourceId} WHERE id = #{resourceId}
</update> </update>
@ -1517,8 +1517,8 @@
<select id="selectUsersApplyAndCount" resultMap="resourceDTO"> <select id="selectUsersApplyAndCount" resultMap="resourceDTO">
SELECT tdr.*, sd.name AS "deptName", count(taa.id) as applyCount SELECT tdr.*, sd.name AS "deptName", count(taa.id) as applyCount
FROM tb_data_resource tdr FROM tb_data_resource tdr
LEFT JOIN sys_dept sd ON tdr.dept_id = sd.id LEFT JOIN sys_dept sd ON tdr.dept_id = sd.id
LEFT JOIN t_ability_application taa on tdr.id=taa.resource_id LEFT JOIN t_ability_application taa on tdr.id=taa.resource_id
WHERE WHERE
1 = 1 1 = 1
AND tdr.del_flag = 0 AND tdr.del_flag = 0
@ -1922,31 +1922,31 @@
<select id="selectCensusResourceTable" resultType="java.util.Map"> <select id="selectCensusResourceTable" resultType="java.util.Map">
SELECT SELECT
sd.name AS deptName, sd.name AS deptName,
tdr.name AS resourceName, tdr.name AS resourceName,
tdr.type, tdr.type,
DATE_FORMAT(tdr.create_date,'%Y-%m-%d %T') AS createDate, DATE_FORMAT(tdr.create_date,'%Y-%m-%d %T') AS createDate,
CASE WHEN tdr.del_flag = 0 THEN '通过' WHEN tdr.del_flag = 6 THEN '不通过' ELSE '审核中' END AS approveStatus, CASE WHEN tdr.del_flag = 0 THEN '通过' WHEN tdr.del_flag = 6 THEN '不通过' ELSE '审核中' END AS approveStatus,
trma.instance_id AS applyNumber trma.instance_id AS applyNumber
FROM FROM
(SELECT (SELECT
IF(d.type = '组件服务', a.attr_value, d.type) AS type, IF(d.type = '组件服务', a.attr_value, d.type) AS type,
d.id, d.id,
d.del_flag, d.del_flag,
d.dept_id, d.dept_id,
d.create_date, d.create_date,
d.name d.name
FROM tb_data_resource d FROM tb_data_resource d
LEFT JOIN tb_data_attr a ON d.id = a.data_resource_id AND a.attr_type = '组件类型' AND a.del_flag = 0 LEFT JOIN tb_data_attr a ON d.id = a.data_resource_id AND a.attr_type = '组件类型' AND a.del_flag = 0
WHERE WHERE
1 = 1 1 = 1
AND d.del_flag NOT IN (1, 5) AND d.del_flag NOT IN (1, 5)
AND d.type IN ('应用资源','组件服务') AND d.type IN ('应用资源','组件服务')
) tdr ) tdr
LEFT JOIN t_resource_mount_apply trma on tdr.id = trma.resource_id, LEFT JOIN t_resource_mount_apply trma on tdr.id = trma.resource_id,
sys_dept sd sys_dept sd
WHERE 1 = 1 WHERE 1 = 1
AND tdr.dept_id = sd.id AND tdr.dept_id = sd.id
<choose> <choose>
<when test="approveStatus != null and approveStatus == '通过'"> <when test="approveStatus != null and approveStatus == '通过'">
AND tdr.del_flag = 0 AND tdr.del_flag = 0
@ -2042,7 +2042,7 @@
<if test="type == null or type == '' or type == '会客厅'"> <if test="type == null or type == '' or type == '会客厅'">
UNION ALL UNION ALL
SELECT SELECT
tmb.dept AS 'deptName', tmb.dept AS 'deptName',
tm.`name` AS 'resourceName', tm.`name` AS 'resourceName',
@ -2058,9 +2058,9 @@
sys_dept sd, sys_dept sd,
sys_region sr sys_region sr
WHERE WHERE
tmb.room_id = tm.id tmb.room_id = tm.id
AND tmb.dept = sd.name AND tmb.dept = sd.name
AND sd.district = sr.id AND sd.district = sr.id
<choose> <choose>
<when test="approveStatus != null and approveStatus == '通过'"> <when test="approveStatus != null and approveStatus == '通过'">
AND tmb.state=2 AND tmb.state=2
@ -2116,7 +2116,8 @@
tb_data_attr a tb_data_attr a
INNER JOIN mysql.help_topic b ON a.attr_type = '应用领域' INNER JOIN mysql.help_topic b ON a.attr_type = '应用领域'
AND a.del_flag = 0 AND a.del_flag = 0
AND b.help_topic_id &lt; ( length( a.attr_value ) - length( REPLACE ( a.attr_value, ';', '' )) + 1 )) tda ON tdr.id = tda.data_resource_id AND b.help_topic_id &lt; ( length( a.attr_value ) - length( REPLACE ( a.attr_value, ';', '' )) + 1 )) tda ON
tdr.id = tda.data_resource_id
LEFT JOIN ( LEFT JOIN (
SELECT SELECT
sdd.sort, sdd.sort,
@ -2394,40 +2395,41 @@
SELECT SELECT
DISTINCT '应用资源' AS "resourceType" DISTINCT '应用资源' AS "resourceType"
FROM FROM
tb_data_resource tdr tb_data_resource tdr
WHERE WHERE
tdr.del_flag = 0 tdr.del_flag = 0
AND tdr.id IN AND tdr.id IN
<foreach collection="resourceIds" item="id" open="(" separator="," close=")"> <foreach collection="resourceIds" item="id" open="(" separator="," close=")">
#{id} #{id}
</foreach> UNION ALL </foreach>
UNION ALL
SELECT DISTINCT SELECT DISTINCT
tda.attr_value tda.attr_value
FROM FROM
tb_data_resource tdr, tb_data_resource tdr,
tb_data_attr tda tb_data_attr tda
WHERE WHERE
tdr.id = tda.data_resource_id tdr.id = tda.data_resource_id
AND tdr.del_flag = 0 AND tdr.del_flag = 0
AND tda.del_flag = 0 AND tda.del_flag = 0
AND tda.attr_type = '组件类型' AND tda.attr_type = '组件类型'
AND tdr.id IN AND tdr.id IN
<foreach collection="resourceIds" item="id" open="(" separator="," close=")"> <foreach collection="resourceIds" item="id" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
</select> </select>
<select id="selectProvideDeptNameByIds" resultType="java.lang.String"> <select id="selectProvideDeptNameByIds" resultType="java.lang.String">
SELECT SELECT
DISTINCT sd.name AS "provideDept" DISTINCT sd.name AS "provideDept"
FROM FROM
tb_data_resource tdr, sys_dept sd tb_data_resource tdr, sys_dept sd
WHERE WHERE
tdr.del_flag = 0 tdr.del_flag = 0
AND tdr.dept_id = sd.id AND tdr.dept_id = sd.id
AND tdr.id IN AND tdr.id IN
<foreach collection="resourceIds" item="id" open="(" separator="," close=")"> <foreach collection="resourceIds" item="id" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
</select> </select>
<select id="selectPolicyCloudServiceCountByName" resultType="java.lang.Integer"> <select id="selectPolicyCloudServiceCountByName" resultType="java.lang.Integer">
@ -2435,7 +2437,7 @@
FROM policy_cloud_service FROM policy_cloud_service
WHERE 1 = 1 WHERE 1 = 1
<if test="keyWorld != null and keyWorld != ''"> <if test="keyWorld != null and keyWorld != ''">
and service_item_tier1 LIKE concat('%', #{keyWorld}, '%') and service_item_tier1 LIKE concat('%', #{keyWorld}, '%')
</if> </if>
</select> </select>

View File

@ -19,10 +19,10 @@
<where> <where>
1 = 1 1 = 1
<if test="type != null"> <if test="type != null">
and t1.type = #{type} and t1.type = #{type}
</if> </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and lang.field_value like CONCAT('%', #{name}, '%') and lang.field_value like CONCAT('%', #{name}, '%')
</if> </if>
and lang.table_name = 'sys_menu' and lang.table_name = 'sys_menu'
and lang.field_name = 'name' and lang.field_name = 'name'

View File

@ -261,22 +261,22 @@
LIMIT ${pageNum}, ${pageSize} LIMIT ${pageNum}, ${pageSize}
</select> </select>
<select id="getUserByRoleListCount" resultType="java.lang.Long"> <select id="getUserByRoleListCount" resultType="java.lang.Long">
<!-- SELECT--> <!-- SELECT-->
<!-- COUNT(DISTINCT sys_user.id )--> <!-- COUNT(DISTINCT sys_user.id )-->
<!-- FROM--> <!-- FROM-->
<!-- sys_role_user--> <!-- sys_role_user-->
<!-- LEFT JOIN sys_user ON sys_user.id = sys_role_user.user_id--> <!-- LEFT JOIN sys_user ON sys_user.id = sys_role_user.user_id-->
<!-- LEFT JOIN sys_dept ON sys_dept.id = sys_user.dept_id--> <!-- LEFT JOIN sys_dept ON sys_dept.id = sys_user.dept_id-->
<!-- WHERE--> <!-- WHERE-->
<!-- 1 = 1--> <!-- 1 = 1-->
<!-- AND sys_role_user.del_flag = 0--> <!-- AND sys_role_user.del_flag = 0-->
<!-- AND sys_user.id IS NOT NULL--> <!-- AND sys_user.id IS NOT NULL-->
<!-- <if test="null != roleIds">--> <!-- <if test="null != roleIds">-->
<!-- AND sys_role_user.role_id IN--> <!-- AND sys_role_user.role_id IN-->
<!-- <foreach item="roleId" collection="roleIds" open="(" separator="," close=")">--> <!-- <foreach item="roleId" collection="roleIds" open="(" separator="," close=")">-->
<!-- #{roleId}--> <!-- #{roleId}-->
<!-- </foreach>--> <!-- </foreach>-->
<!-- </if>--> <!-- </if>-->
SELECT SELECT
COUNT(temp.id) COUNT(temp.id)

View File

@ -3,7 +3,8 @@
<mapper namespace="io.renren.modules.sysnoticemanagement.dao.SysNoticeManagementDao"> <mapper namespace="io.renren.modules.sysnoticemanagement.dao.SysNoticeManagementDao">
<resultMap type="io.renren.modules.sysnoticemanagement.entity.SysNoticeManagementEntity" id="sysNoticeManagementMap"> <resultMap type="io.renren.modules.sysnoticemanagement.entity.SysNoticeManagementEntity"
id="sysNoticeManagementMap">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="content" column="content"/> <result property="content" column="content"/>
<result property="publishTime" column="publish_time"/> <result property="publishTime" column="publish_time"/>