1.管理能查看到员工今日建联数量
This commit is contained in:
@@ -12,6 +12,54 @@
|
||||
|
||||
|
||||
<!-- 使用 IGNORE 关键字忽略重复插入 -->
|
||||
<sql id="Base_Column_List">
|
||||
id,
|
||||
hosts_id,
|
||||
user_id,
|
||||
hosts_level,
|
||||
hosts_coins,
|
||||
invitation_type,
|
||||
online_fans,
|
||||
fans,
|
||||
fllowernum,
|
||||
yesterday_coins,
|
||||
country,
|
||||
hosts_kind,
|
||||
operation_status,
|
||||
remake,
|
||||
`uid`,
|
||||
tenant_id,
|
||||
flag,
|
||||
create_time,
|
||||
update_time,
|
||||
creator,
|
||||
updater,
|
||||
deleted
|
||||
</sql>
|
||||
<resultMap id="BaseResultMap" type="cn.iocoder.yudao.module.tkdata.dal.dataobject.employeehosts.EmployeeHostsDO">
|
||||
<result column="id" property="id"/>
|
||||
<result column="hosts_id" property="hostsId"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="hosts_level" property="hostsLevel"/>
|
||||
<result column="hosts_coins" property="hostsCoins"/>
|
||||
<result column="invitation_type" property="invitationType"/>
|
||||
<result column="online_fans" property="onlineFans"/>
|
||||
<result column="fans" property="fans"/>
|
||||
<result column="fllowernum" property="fllowernum"/>
|
||||
<result column="yesterday_coins" property="yesterdayCoins"/>
|
||||
<result column="country" property="country"/>
|
||||
<result column="hosts_kind" property="hostsKind"/>
|
||||
<result column="operation_status" property="operationStatus"/>
|
||||
<result column="remake" property="remake"/>
|
||||
<result column="uid" property="uid"/>
|
||||
<result column="tenant_id" property="tenantId"/>
|
||||
<result column="flag" property="flag"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="creator" property="creator"/>
|
||||
<result column="updater" property="updater"/>
|
||||
<result column="deleted" property="deleted"/>
|
||||
</resultMap>
|
||||
<insert id="insertIgnore" parameterType="cn.iocoder.yudao.module.tkdata.dal.dataobject.employeehosts.EmployeeHostsDO">
|
||||
INSERT IGNORE INTO server_employee_hosts
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -364,4 +412,23 @@
|
||||
</if>
|
||||
GROUP BY user_id
|
||||
</select>
|
||||
|
||||
<select id="selectEmployeeHostsCompleteBarChart"
|
||||
resultType="cn.iocoder.yudao.module.tkdata.controller.admin.employeehosts.vo.CompletedRateVO">
|
||||
SELECT
|
||||
user_id as userId,
|
||||
SUM(CASE WHEN operation_status = 1 THEN 1 ELSE 0 END) AS finishedNum
|
||||
FROM
|
||||
server_employee_hosts
|
||||
WHERE
|
||||
deleted = 0
|
||||
AND operation_status = 1
|
||||
AND DATE(update_time) = CURDATE()
|
||||
<if test="list != null and list.size() != 0">
|
||||
AND user_id IN
|
||||
<foreach collection="list" item="user_id" open="(" separator="," close=")">
|
||||
#{user_id}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user