Commit 39cfe4bc authored by litengwei's avatar litengwei

Merge remote-tracking branch 'origin/develop_dl_bugfix' into develop_dl_bugfix

parents 0cd3ddb3 d2212a9d
...@@ -380,6 +380,7 @@ public class CheckController extends AbstractBaseController { ...@@ -380,6 +380,7 @@ public class CheckController extends AbstractBaseController {
* 巡检计划查询 * 巡检计划查询
* *
* @param * @param
* @param param
* @return * @return
*/ */
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
...@@ -712,10 +713,10 @@ public class CheckController extends AbstractBaseController { ...@@ -712,10 +713,10 @@ public class CheckController extends AbstractBaseController {
req.put("orgCode", reginParams.getPersonIdentity().getCompanyBizOrgCode()); req.put("orgCode", reginParams.getPersonIdentity().getCompanyBizOrgCode());
// if (XJConstant.ROLE_NAME_ADMIN.equalsIgnoreCase(roleTypeName) // if (XJConstant.ROLE_NAME_ADMIN.equals(roleTypeName.toUpperCase())
// || XJConstant.ROLE_NAME_SUPERADMIN.equalsIgnoreCase(roleTypeName)) { // || XJConstant.ROLE_NAME_SUPERADMIN.equals(roleTypeName.toUpperCase())) {
// req.put("orgCode", loginOrgCode); // req.put("orgCode", loginOrgCode);
// } else if (XJConstant.ROLE_NAME_DEPTADMIN.equalsIgnoreCase(roleTypeName)) { // } else if (XJConstant.ROLE_NAME_DEPTADMIN.equals(roleTypeName.toUpperCase())) {
// req.put("departmentId",departmentId); // req.put("departmentId",departmentId);
// } else { // } else {
// if(StringUtil.isNotEmpty(req.get("userId"))&&req.get("userId")==null){ // if(StringUtil.isNotEmpty(req.get("userId"))&&req.get("userId")==null){
......
...@@ -645,6 +645,7 @@ ...@@ -645,6 +645,7 @@
s.equipment_id = e.`id` s.equipment_id = e.`id`
and e.category_id = c.id and e.category_id = c.id
and s.biz_org_code <![CDATA[<>]]> '' and s.biz_org_code <![CDATA[<>]]> ''
and e.category_id IN ( SELECT id FROM wl_equipment_category WHERE LEFT ( code, 6 ) = '210101' )
GROUP BY s.biz_org_code ,c.code GROUP BY s.biz_org_code ,c.code
</select> </select>
......
...@@ -2477,11 +2477,15 @@ ...@@ -2477,11 +2477,15 @@
<select id="selectListByPatrolCheck" resultType="map"> <select id="selectListByPatrolCheck" resultType="map">
SELECT SELECT
c.user_name, c.user_name,
c.a.point_name AS pointName,
wws.name address,
ci.* ci.*
FROM FROM
p_check_input ci p_check_input ci
left join p_check c on c.id = ci.check_id left join p_check c on c.id = ci.check_id
LEFT JOIN `p_point` `b` ON `c`.`point_id` = `b`.`id`
LEFT JOIN p_point_classify ppc on ci .point_classify_id = ppc.id LEFT JOIN p_point_classify ppc on ci .point_classify_id = ppc.id
LEFT JOIN wl_warehouse_structure wws on wws.id = b.risk_source_id
WHERE WHERE
ppc.equipment_id = #{id} ppc.equipment_id = #{id}
</select> </select>
......
...@@ -437,7 +437,7 @@ ...@@ -437,7 +437,7 @@
FROM FROM
`p_check` `a` `p_check` `a`
<trim prefix="WHERE" prefixOverrides="AND "> <trim prefix="WHERE" prefixOverrides="AND ">
<if test="userId!=null and userId!=''">and a.user_id = #{userId}</if> <if test="userId!=null and userId!=''">and find_in_set(#{userId}, a.user_id) > 0</if>
<if test="bizOrgCode != null and bizOrgCode != ''"> <if test="bizOrgCode != null and bizOrgCode != ''">
and a.org_code LIKE CONCAT(#{bizOrgCode},'%') and a.org_code LIKE CONCAT(#{bizOrgCode},'%')
</if> </if>
......
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