mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-26 22:15:06 +08:00
新增 分润组数据库、实体类、Service
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.shareprofit.ShareprofitGroup;
|
||||
|
||||
/**
|
||||
* 运营商分润组Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2024-09-12
|
||||
*/
|
||||
public interface IShareprofitGroupService {
|
||||
/**
|
||||
* 查询运营商分润组
|
||||
*
|
||||
* @param id 运营商分润组主键
|
||||
* @return 运营商分润组
|
||||
*/
|
||||
public ShareprofitGroup selectShareprofitGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询运营商分润组列表
|
||||
*
|
||||
* @param shareprofitGroup 运营商分润组
|
||||
* @return 运营商分润组集合
|
||||
*/
|
||||
public List<ShareprofitGroup> selectShareprofitGroupList(ShareprofitGroup shareprofitGroup);
|
||||
|
||||
/**
|
||||
* 新增运营商分润组
|
||||
*
|
||||
* @param shareprofitGroup 运营商分润组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertShareprofitGroup(ShareprofitGroup shareprofitGroup);
|
||||
|
||||
/**
|
||||
* 修改运营商分润组
|
||||
*
|
||||
* @param shareprofitGroup 运营商分润组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateShareprofitGroup(ShareprofitGroup shareprofitGroup);
|
||||
|
||||
/**
|
||||
* 批量删除运营商分润组
|
||||
*
|
||||
* @param ids 需要删除的运营商分润组主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteShareprofitGroupByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除运营商分润组信息
|
||||
*
|
||||
* @param id 运营商分润组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteShareprofitGroupById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jsowell.pile.mapper.ShareprofitGroupMapper;
|
||||
import com.jsowell.pile.domain.shareprofit.ShareprofitGroup;
|
||||
import com.jsowell.pile.service.IShareprofitGroupService;
|
||||
|
||||
/**
|
||||
* 运营商分润组Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2024-09-12
|
||||
*/
|
||||
@Service
|
||||
public class ShareprofitGroupServiceImpl implements IShareprofitGroupService {
|
||||
@Autowired
|
||||
private ShareprofitGroupMapper shareprofitGroupMapper;
|
||||
|
||||
/**
|
||||
* 查询运营商分润组
|
||||
*
|
||||
* @param id 运营商分润组主键
|
||||
* @return 运营商分润组
|
||||
*/
|
||||
@Override
|
||||
public ShareprofitGroup selectShareprofitGroupById(Long id) {
|
||||
return shareprofitGroupMapper.selectShareprofitGroupById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询运营商分润组列表
|
||||
*
|
||||
* @param shareprofitGroup 运营商分润组
|
||||
* @return 运营商分润组
|
||||
*/
|
||||
@Override
|
||||
public List<ShareprofitGroup> selectShareprofitGroupList(ShareprofitGroup shareprofitGroup) {
|
||||
return shareprofitGroupMapper.selectShareprofitGroupList(shareprofitGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增运营商分润组
|
||||
*
|
||||
* @param shareprofitGroup 运营商分润组
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertShareprofitGroup(ShareprofitGroup shareprofitGroup) {
|
||||
shareprofitGroup.setCreateTime(DateUtils.getNowDate());
|
||||
return shareprofitGroupMapper.insertShareprofitGroup(shareprofitGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改运营商分润组
|
||||
*
|
||||
* @param shareprofitGroup 运营商分润组
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateShareprofitGroup(ShareprofitGroup shareprofitGroup) {
|
||||
shareprofitGroup.setUpdateTime(DateUtils.getNowDate());
|
||||
return shareprofitGroupMapper.updateShareprofitGroup(shareprofitGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除运营商分润组
|
||||
*
|
||||
* @param ids 需要删除的运营商分润组主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteShareprofitGroupByIds(Long[] ids) {
|
||||
return shareprofitGroupMapper.deleteShareprofitGroupByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运营商分润组信息
|
||||
*
|
||||
* @param id 运营商分润组主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteShareprofitGroupById(Long id) {
|
||||
return shareprofitGroupMapper.deleteShareprofitGroupById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user