|
|
@@ -10,6 +10,7 @@ import com.gree.mall.miniapp.bean.user.SettleMonthWagesWorkerBean;
|
|
|
import com.gree.mall.miniapp.commonmapper.LockQueryMapper;
|
|
|
import com.gree.mall.miniapp.constant.Constant;
|
|
|
import com.gree.mall.miniapp.enums.TransactionTypeEnum;
|
|
|
+import com.gree.mall.miniapp.enums.UserCreditBillStatusEnum;
|
|
|
import com.gree.mall.miniapp.exception.RemoteServiceException;
|
|
|
import com.gree.mall.miniapp.helper.ResponseHelper;
|
|
|
import com.gree.mall.miniapp.logic.common.CommonLogic;
|
|
|
@@ -71,7 +72,7 @@ public class UserCompanyCreditLogic {
|
|
|
final Integer count = userCompanyCreditBillService.lambdaQuery()
|
|
|
.eq(UserCompanyCreditBill::getCompanyWechatId, orderInfo.getCompanyWechatId())
|
|
|
.eq(UserCompanyCreditBill::getUserId, orderInfo.getUserId())
|
|
|
- .eq(UserCompanyCreditBill::getIsPaid, false)
|
|
|
+ .in(UserCompanyCreditBill::getStatus, UserCreditBillStatusEnum.UNPAID.getKey(), UserCreditBillStatusEnum.REPAYMENT.getKey())
|
|
|
.eq(UserCompanyCreditBill::getDueDate, curDate)
|
|
|
.count();
|
|
|
|