| | |
| | | |
| | | List<EnforceOrderVo> selectScanList(@Param("companyCode") String companyCode,@Param("userId") Long userId); |
| | | |
| | | @Select("SELECT COUNT(DISTINCT company_id) FROM enforce_order and check_status>=2") |
| | | @Select("SELECT COUNT(DISTINCT company_id) FROM enforce_order where check_status>=2") |
| | | Integer getDistinctCompanyNum(); |
| | | |
| | | } |
| | |
| | | .eq(SysUser::getStatus,"0") |
| | | ); |
| | | int enforceOrderNum = orderService.count(); |
| | | int enforceOrderCheckedNum = orderService.count(orderService.lq().ge(EnforceOrder::getOrderStatus,2)); |
| | | int enforceOrderCheckedNum = orderService.count(orderService.lq().ge(EnforceOrder::getCheckStatus,2)); |
| | | int enforceOrderCompleteNum = orderService.count(orderService.lq().eq(EnforceOrder::getOrderStatus,4)); |
| | | int complaintNum = complaintLogService.count(); |
| | | int docNum = docService.count(docService.lq().eq(SysDoc::getDocStatus,0)); |
| | |
| | | IFNULL(count(order_id),0) as v |
| | | from enforce_order |
| | | where 1=1 |
| | | and check_status>=2 |
| | | <if test="deptId != null "> |
| | | AND check_dept_id = #{deptId} |
| | | </if> |
| | |
| | | IFNULL(count(order_id),0) as v |
| | | from enforce_order |
| | | where 1=1 |
| | | and check_status>=2 |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | AND apply_time >= #{beginTime} |
| | | </if> |
| | |
| | | from sys_company sc |
| | | left join enforce_order eo on sc.company_id=eo.company_id |
| | | where 1=1 |
| | | and sc.company_status=0 |
| | | and sc.check_status=2 |
| | | and eo.check_status>=2 |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | AND eo.apply_time >= #{beginTime} |
| | | </if> |
| | |
| | | IFNULL(count(order_id),0) as v |
| | | from enforce_order |
| | | where 1=1 |
| | | and check_status>=2 |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | AND apply_time >= #{beginTime} |
| | | </if> |