| | |
| | | import cn.iocoder.yudao.module.crm.enums.common.CrmSceneTypeEnum; |
| | | import cn.iocoder.yudao.module.crm.util.CrmPermissionUtils; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | return selectOne(CrmReceivableDO::getNo, no); |
| | | } |
| | | |
| | | default int updateByIdAndStatus(Long id, Integer status, CrmReceivableDO updateObj) { |
| | | return update(updateObj, new LambdaUpdateWrapper<CrmReceivableDO>() |
| | | .eq(CrmReceivableDO::getId, id).eq(CrmReceivableDO::getAuditStatus, status)); |
| | | } |
| | | |
| | | default PageResult<CrmReceivableDO> selectPageByCustomerId(CrmReceivablePageReqVO reqVO) { |
| | | return selectPage(reqVO, new LambdaQueryWrapperX<CrmReceivableDO>() |
| | | .eq(CrmReceivableDO::getCustomerId, reqVO.getCustomerId()) // 必须传递 |