| | |
| | | || record.getPreRecieveTime() == null)
|
| | | throw new ParamsException(1, "参数不完整");
|
| | |
|
| | | TeamEincomeRecord oldRecord = teamEincomeRecordMapper.selectByUidAndPreRecieveTimeAndType(record.getUid(),
|
| | | record.getPreRecieveTime(), record.getType());
|
| | | TeamEincomeRecord oldRecord = teamEincomeRecordMapper.selectByUidAndPreRecieveTimeAndTypeAndSourceType(record.getUid(),
|
| | | record.getPreRecieveTime(), record.getType(),record.getSourceType());
|
| | | if (oldRecord != null)
|
| | | throw new TeamEincomeRecordException(1, "已存在");
|
| | | if (record.getCreateTime() == null)
|
| | |
| | | public long countCanRecieveUid(Date preRecieveTime, List<Integer> typeList) {
|
| | | return teamEincomeRecordMapper.countCanRecieveUid(preRecieveTime, typeList);
|
| | | }
|
| | | |
| | | |
| | | @Override
|
| | | public BigDecimal sumRecieveByType(Long uid, int type) {
|
| | | BigDecimal money = teamEincomeRecordMapper.sumRecieveByType(uid, type);
|
| | | if (money == null) {
|
| | | money = new BigDecimal(0);
|
| | | }
|
| | | return money;
|
| | | }
|
| | | |
| | | |
| | |
|
| | | }
|