dearlin 2024-02-26 15:38:25 +08:00
commit 516f34f769
6 changed files with 32 additions and 14 deletions

View File

@ -534,19 +534,25 @@ public class AppKeyprojectCheckController extends BaseController {
return map; return map;
} }
/** /**
*
*
* @param * @param
* @throws Exception * @throws Exception
*/ */
@RequestMapping(value = "/keyProjectCount") @RequestMapping(value="/keyProjectCount")
@ResponseBody @ResponseBody
public Object keyProjectCount() throws Exception { public Object keyProjectCount() throws Exception{
Map<String, Object> map = new HashMap<String, Object>(); Map<String,Object> map = new HashMap<String,Object>();
String errInfo = "success"; String errInfo = "success";
PageData pd = new PageData(); PageData pd = new PageData();
pd = this.getPageData(); pd = this.getPageData();
String UserId = pd.getString("UserId");
if(!StringUtils.equals("1",UserId)){
String CORPINFO_ID = pd.getString("CORPINFO_ID");
if(!StringUtils.equals(CORPINFO_ID,"1e6dbbe16004402f8d2c0e52afd9a676")&&!StringUtils.equals(CORPINFO_ID,"3a854eefa7894e06aaa1a2611bca80f6")&&
!StringUtils.equals(CORPINFO_ID,"020578a4c1f04bc692ee25145c2efbe5")&&!StringUtils.equals(CORPINFO_ID,"90966974de3c4b83aca6f8fd6432d5c2")){
pd.put("DeptId",outsourcedService.getDeptId(UserId));
}
}
pd = keyprojectHiddenService.keyprojectcount(pd); //根据ID读取 pd = keyprojectHiddenService.keyprojectcount(pd); //根据ID读取
map.put("pd", pd); map.put("pd", pd);
map.put("result", errInfo); map.put("result", errInfo);

View File

@ -187,9 +187,6 @@ public class Node {
buffer.append("<br/>"); buffer.append("<br/>");
buffer.append("指派人:"); buffer.append("指派人:");
buffer.append(hiddeny.getString("YINNAME")); buffer.append(hiddeny.getString("YINNAME"));
buffer.append("<br/>(");
buffer.append(hiddeny.getString("CREATTIME"));
buffer.append(")");
} }
this.text = buffer.toString(); this.text = buffer.toString();

View File

@ -153,7 +153,7 @@ public class SafetyEnvironmentalServiceImpl implements SafetyEnvironmentalServic
hidden.put("HIDDENDESCR", json.getString("HIDDENDESCR")); //隐患描述 hidden.put("HIDDENDESCR", json.getString("HIDDENDESCR")); //隐患描述
hidden.put("HIDDENPART", json.getString("HIDDENPART")); //隐患部位 hidden.put("HIDDENPART", json.getString("HIDDENPART")); //隐患部位
hidden.put("HIDDENLEVEL", json.getString("HIDDENLEVEL")); //隐患级别 hidden.put("HIDDENLEVEL", json.getString("HIDDENLEVEL")); //隐患级别
hidden.put("HIDDENTYPE_NAME", json.getString("HIDDENTYPE_NAME"));//隐患类型名称 hidden.put("HIDDENTYPE_NAME", StringUtils.isNotBlank(json.getString("HIDDENTYPENAME")) ? json.getString("HIDDENTYPENAME") : json.getString("HIDDENTYPE_NAME"));//隐患类型名称
hidden.put("LONGITUDE", json.getString("LONGITUDE")); //隐患位置经度 hidden.put("LONGITUDE", json.getString("LONGITUDE")); //隐患位置经度
hidden.put("LATITUDE", json.getString("LATITUDE")); //隐患位置纬度 hidden.put("LATITUDE", json.getString("LATITUDE")); //隐患位置纬度
hidden.put("DISCOVERYTIME", json.getString("DISCOVERYTIME")); //隐患发现时间 hidden.put("DISCOVERYTIME", json.getString("DISCOVERYTIME")); //隐患发现时间

View File

@ -129,7 +129,7 @@
<include refid="tableName"></include> f <include refid="tableName"></include> f
left join sys_user u on u.USER_ID = f.USER_ID left join sys_user u on u.USER_ID = f.USER_ID
left join oa_department d on d.DEPARTMENT_ID = f.DEPARTMENT_ID left join oa_department d on d.DEPARTMENT_ID = f.DEPARTMENT_ID
where 1=1 where 1=1 and f.USER_ID is not null and f.USER_ID !=''
<if test="HIDDEN_ID != null and HIDDEN_ID != ''"><!-- 关键词检索 --> <if test="HIDDEN_ID != null and HIDDEN_ID != ''"><!-- 关键词检索 -->
and and
f.HIDDEN_ID=#{HIDDEN_ID} f.HIDDEN_ID=#{HIDDEN_ID}

View File

@ -1533,6 +1533,7 @@
f.ISDELETE = '0' f.ISDELETE = '0'
AND f.SOURCE IN ( '4', '5', '1' ) AND f.SOURCE IN ( '4', '5', '1' )
AND ifnull(bo.OUTSOURCED_ID,boai.OUTSOURCED_ID) IS NOT NULL AND ifnull(bo.OUTSOURCED_ID,boai.OUTSOURCED_ID) IS NOT NULL
AND (bo.ISDELETE = '0' or boai.ISDELETE = '0')
and f.ISPUNISH is null and f.ISPUNISH is null
and ( and (
bo.PUNISH_THE_PERSON LIKE CONCAT( CONCAT( '%', #{loginUserId} ), '%' ) bo.PUNISH_THE_PERSON LIKE CONCAT( CONCAT( '%', #{loginUserId} ), '%' )
@ -1554,7 +1555,21 @@
AND f.STATE = '2' AND f.STATE = '2'
AND f.CREATOR = #{loginUserId} AND f.CREATOR = #{loginUserId}
AND ifnull(bo.OUTSOURCED_ID,boai.OUTSOURCED_ID) IS NOT NULL AND ifnull(bo.OUTSOURCED_ID,boai.OUTSOURCED_ID) IS NOT NULL
) t)CF_COUNT AND (bo.ISDELETE = '0' or boai.ISDELETE = '0')
) t)CF_COUNT,
(SELECT
COUNT( DISTINCT t.OUTSOURCED_ID )
FROM
(
SELECT
b.OUTSOURCED_ID
FROM
BUS_OUTSOURCED b
WHERE
b.ISDELETE = '0'
AND ( b.STATE = '-1' OR b.STATE = '-2' )
AND b.CREATOR = #{loginUserId}
) t) GC_COUNT
from bus_aiwarning f from bus_aiwarning f
where f.ISDELETE = '0' where f.ISDELETE = '0'
and f.STATUS = 0 and f.STATUS = 0

View File

@ -184,7 +184,7 @@
left join sys_dictionaries o on o.DICTIONARIES_ID = f.OPERATIONITEM left join sys_dictionaries o on o.DICTIONARIES_ID = f.OPERATIONITEM
left join bus_corp_info b on b.CORPINFO_ID = f.CORPINFO_ID left join bus_corp_info b on b.CORPINFO_ID = f.CORPINFO_ID
left join bus_units r on r.UNITS_ID = f.UNITS_ID left join bus_units r on r.UNITS_ID = f.UNITS_ID
LEFT JOIN sys_user u on f.CREATOR = u.USERNAME LEFT JOIN sys_user u on f.CREATOR = u.USERNAME and u.ISDELETE = '0'
LEFT JOIN bus_corp_info c on u.CORPINFO_ID = c.CORPINFO_ID LEFT JOIN bus_corp_info c on u.CORPINFO_ID = c.CORPINFO_ID
where f.ISDELETE = '0' where f.ISDELETE = '0'
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 --> <if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->