Commit dbfaafec by 18356073052

群组对象和mapper进行修改添加了userIds字段并加入搜索

1 parent 3c5e8638
......@@ -62,5 +62,8 @@ public class WeGroup {
@JsonFormat(pattern = "yyyy-MM-dd")
private String endTime;
/**员工id*/
private String userIds;
}
......@@ -27,6 +27,17 @@
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
AND date_format(wg.create_time,'%y%m%d') &lt;= date_format(#{endTime},'%y%m%d')
</if>
<if test="userIds != null and userIds !=''">
<if test="userIds.indexOf(',') != -1">
AND wg.`owner` in
<foreach item="item" index="index" collection="userIds.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="userIds.indexOf(',') == -1">
AND wg.`owner`=#{userIds}
</if>
</if>
</where>
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!