parent
271dfb35ab
commit
d1facad8e6
@ -0,0 +1,63 @@ |
||||
package com.hfkj.service.recharge; |
||||
|
||||
import com.hfkj.entity.RechargeCode; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* @ClassName RechargeCodeService |
||||
* @Author Sum1Dream |
||||
* @Description |
||||
* @Date 2024/6/24 下午3:07 |
||||
**/ |
||||
public interface RechargeCodeService { |
||||
|
||||
/** |
||||
* @MethodName create |
||||
* @Description: 创建 |
||||
* @param rechargeCode |
||||
* @Author: Sum1Dream |
||||
* @Date: 2024/6/24 下午3:10 |
||||
*/ |
||||
void create(RechargeCode rechargeCode); |
||||
|
||||
/** |
||||
* @MethodName update |
||||
* @Description: 更新 |
||||
* @param rechargeCode |
||||
* @Author: Sum1Dream |
||||
* @Date: 2024/6/24 下午3:11 |
||||
*/ |
||||
void update(RechargeCode rechargeCode); |
||||
|
||||
/** |
||||
* @MethodName delete |
||||
* @Description: 删除 |
||||
* @param id |
||||
* @param fullDelete |
||||
* @Author: Sum1Dream |
||||
* @Date: 2024/6/24 下午3:11 |
||||
*/ |
||||
void delete(Long id , Boolean fullDelete); |
||||
|
||||
/** |
||||
* @MethodName queryDetail |
||||
* @Description: 查询详情 |
||||
* @param id |
||||
* @return: com.hfkj.entity.RechargeCode |
||||
* @Author: Sum1Dream |
||||
* @Date: 2024/6/24 下午3:11 |
||||
*/ |
||||
RechargeCode queryDetail(Long id); |
||||
|
||||
/** |
||||
* @MethodName getList |
||||
* @Description: 查询列表 |
||||
* @param map |
||||
* @return: java.util.List<com.hfkj.entity.RechargeCode> |
||||
* @Author: Sum1Dream |
||||
* @Date: 2024/6/24 下午3:11 |
||||
*/ |
||||
List<RechargeCode> getList(Map<String , Object> map); |
||||
} |
@ -0,0 +1,43 @@ |
||||
package com.hfkj.service.recharge.impl; |
||||
|
||||
import com.hfkj.dao.RechargeCodeMapper; |
||||
import com.hfkj.entity.RechargeCode; |
||||
import com.hfkj.service.recharge.RechargeCodeService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.util.Collections; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
@Service("rechargeCodeService") |
||||
public class RechargeCodeServiceImpl implements RechargeCodeService { |
||||
|
||||
@Resource |
||||
private RechargeCodeMapper rechargeCodeMapper; |
||||
|
||||
@Override |
||||
public void create(RechargeCode rechargeCode) { |
||||
rechargeCodeMapper.insert(rechargeCode); |
||||
} |
||||
|
||||
@Override |
||||
public void update(RechargeCode rechargeCode) { |
||||
rechargeCodeMapper.updateByPrimaryKeySelective(rechargeCode); |
||||
} |
||||
|
||||
@Override |
||||
public void delete(Long id, Boolean fullDelete) { |
||||
rechargeCodeMapper.deleteByPrimaryKey(id); |
||||
} |
||||
|
||||
@Override |
||||
public RechargeCode queryDetail(Long id) { |
||||
return rechargeCodeMapper.selectByPrimaryKey(id); |
||||
} |
||||
|
||||
@Override |
||||
public List<RechargeCode> getList(Map<String, Object> map) { |
||||
return Collections.emptyList(); |
||||
} |
||||
} |
Loading…
Reference in new issue