| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | return pledgeContractMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | | |
| | | public List<PledgeContract> getDateByUser(String userId) { |
| | | if(StringUtils.isBlank(userId)){ |
| | | return new ArrayList<PledgeContract>(); |
| | | } |
| | | QueryWrapper<PledgeContract> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("company_id", ContextUtil.getCompanyId()); |
| | | queryWrapper.eq("pledge_bank_user", userId); |
| | | return pledgeContractMapper.selectList(queryWrapper); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 根据条件查询 |
| | | * @param id |