| | |
| | |
|
| | | @Override
|
| | | public BigDecimal getMoneyLastMonth(String uid) {
|
| | | return shareMapper.getMoneyLastMonth(uid);
|
| | | BigDecimal money = shareMapper.getMoneyLastMonth(uid);
|
| | | if (money == null)
|
| | | return new BigDecimal(0);
|
| | | else
|
| | | return money;
|
| | | }
|
| | |
|
| | | @Override
|
| | |
| | | public void editActivityRules(String value, String key) {
|
| | | shareMapper.editActivityRules(value, key);
|
| | | }
|
| | | |
| | |
|
| | | @Override
|
| | | public List<SpreadImg> listQuery(int start, int pageSize, String key) {
|
| | |
|
| | | if (StringUtil.isNullOrEmpty(key)) {
|
| | | return spreadImgDao.list("from SpreadImg si order by si.createtime desc", start,
|
| | | pageSize, new Serializable[] {});
|
| | | return spreadImgDao.list("from SpreadImg si order by si.createtime desc", start, pageSize,
|
| | | new Serializable[] {});
|
| | | } else {
|
| | |
|
| | | return spreadImgDao.list("from SpreadImg si where si.url like ? order by si.createtime desc", start,
|
| | | pageSize, new Serializable[] { "%" + key + "%" });
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | @Override
|
| | | public long countQuery(String key) {
|