| | |
| | | if (Boolean.TRUE.equals(reqVO.getApproved())) { |
| | | wrapper.apply("id IN (SELECT supplier_id FROM srm_supplier_apply WHERE apply_status = 40 AND supplier_id IS NOT NULL AND deleted = 0)"); |
| | | } |
| | | if (Boolean.TRUE.equals(reqVO.getExcludeApproved())) { |
| | | wrapper.apply("id NOT IN (SELECT supplier_id FROM srm_supplier_apply WHERE apply_status = 40 AND supplier_id IS NOT NULL AND deleted = 0)"); |
| | | } |
| | | return selectPage(reqVO, wrapper); |
| | | } |
| | | |
| | |
| | | return selectOne(SrmSupplierDO::getCode, code); |
| | | } |
| | | |
| | | default SrmSupplierDO selectByName(String name) { |
| | | return selectOne(SrmSupplierDO::getName, name); |
| | | } |
| | | |
| | | default List<SrmSupplierDO> selectListByStatus(Integer status) { |
| | | return selectList(SrmSupplierDO::getStatus, status); |
| | | } |