3 changed files with 43 additions and 1 deletions
@ -0,0 +1,16 @@ |
|||
package cn.chjyj.szwh.service; |
|||
|
|||
import cn.chjyj.szwh.bean.AccountRatioDetail; |
|||
|
|||
|
|||
/** |
|||
* 资金分配细节 |
|||
*/ |
|||
public interface AccountRatioDetailService { |
|||
/** |
|||
* 查询具体的分配比例 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
AccountRatioDetail getAccRatioDetailUnderRole(Integer id,Integer roleid); |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
package cn.chjyj.szwh.service.impl; |
|||
|
|||
import cn.chjyj.szwh.bean.AccountRatioDetail; |
|||
import cn.chjyj.szwh.mapper.AccountRatioDetailMapper; |
|||
import cn.chjyj.szwh.service.AccountRatioDetailService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
|
|||
@Service |
|||
public class AccountRatioDetailServiceImpl implements AccountRatioDetailService { |
|||
@Autowired |
|||
private AccountRatioDetailMapper accountRatioDetailMapper; |
|||
|
|||
@Override |
|||
public AccountRatioDetail getAccRatioDetailUnderRole(Integer id, Integer roleid) { |
|||
return accountRatioDetailMapper.getAccRatioDetailByIdRole(id,2); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue