|
|
@@ -50,9 +50,11 @@ public class FosterwxCashOasBoxServiceImpl extends ServiceImpl<FosterwxCashOasBo
|
|
|
* 获取一个有效的小程序
|
|
|
* @return
|
|
|
*/
|
|
|
- public FosterwxCashOasBox getRandBox() {
|
|
|
+ public FosterwxCashOasBox getRandBox(Integer groupId) {
|
|
|
List<FosterwxCashOasBox> list = this.list(new QueryWrapper<FosterwxCashOasBox>()
|
|
|
.eq("type", 1)
|
|
|
+ .eq("group_id",groupId)
|
|
|
+ .lt("send_text_cnt",90)
|
|
|
.eq("fobidden_status",1));
|
|
|
if (list == null || list.size() <= 0) {
|
|
|
return null;
|
|
|
@@ -68,9 +70,11 @@ public class FosterwxCashOasBoxServiceImpl extends ServiceImpl<FosterwxCashOasBo
|
|
|
* 获取一个有效的公众号
|
|
|
* @return
|
|
|
*/
|
|
|
- public FosterwxCashOasBox getRandOas() {
|
|
|
+ public FosterwxCashOasBox getRandOas(Integer groupId) {
|
|
|
List<FosterwxCashOasBox> list = this.list(new QueryWrapper<FosterwxCashOasBox>()
|
|
|
.eq("type", 2)
|
|
|
+ .eq("group_id",groupId)
|
|
|
+ .lt("send_text_cnt",90)
|
|
|
.eq("fobidden_status",1));
|
|
|
if (list == null || list.size() <= 0) {
|
|
|
return null;
|