订单增加赠送时长字段,增加服务暂停管理列表,身份证号验证方法优化
This commit is contained in:
@ -0,0 +1,61 @@
|
||||
package com.stdiet.custom.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.stdiet.custom.domain.SysOrderPause;
|
||||
|
||||
/**
|
||||
* 订单服务暂停Service接口
|
||||
*
|
||||
* @author wonder
|
||||
* @date 2021-01-07
|
||||
*/
|
||||
public interface ISysOrderPauseService
|
||||
{
|
||||
/**
|
||||
* 查询订单服务暂停
|
||||
*
|
||||
* @param id 订单服务暂停ID
|
||||
* @return 订单服务暂停
|
||||
*/
|
||||
public SysOrderPause selectSysOrderPauseById(Long id);
|
||||
|
||||
/**
|
||||
* 查询订单服务暂停列表
|
||||
*
|
||||
* @param sysOrderPause 订单服务暂停
|
||||
* @return 订单服务暂停集合
|
||||
*/
|
||||
public List<SysOrderPause> selectSysOrderPauseList(SysOrderPause sysOrderPause);
|
||||
|
||||
/**
|
||||
* 新增订单服务暂停
|
||||
*
|
||||
* @param sysOrderPause 订单服务暂停
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysOrderPause(SysOrderPause sysOrderPause);
|
||||
|
||||
/**
|
||||
* 修改订单服务暂停
|
||||
*
|
||||
* @param sysOrderPause 订单服务暂停
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysOrderPause(SysOrderPause sysOrderPause);
|
||||
|
||||
/**
|
||||
* 批量删除订单服务暂停
|
||||
*
|
||||
* @param ids 需要删除的订单服务暂停ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysOrderPauseByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除订单服务暂停信息
|
||||
*
|
||||
* @param id 订单服务暂停ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysOrderPauseById(Long id);
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.stdiet.custom.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.stdiet.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.stdiet.custom.mapper.SysOrderPauseMapper;
|
||||
import com.stdiet.custom.domain.SysOrderPause;
|
||||
import com.stdiet.custom.service.ISysOrderPauseService;
|
||||
|
||||
/**
|
||||
* 订单服务暂停Service业务层处理
|
||||
*
|
||||
* @author wonder
|
||||
* @date 2021-01-07
|
||||
*/
|
||||
@Service
|
||||
public class SysOrderPauseServiceImpl implements ISysOrderPauseService
|
||||
{
|
||||
@Autowired
|
||||
private SysOrderPauseMapper sysOrderPauseMapper;
|
||||
|
||||
/**
|
||||
* 查询订单服务暂停
|
||||
*
|
||||
* @param id 订单服务暂停ID
|
||||
* @return 订单服务暂停
|
||||
*/
|
||||
@Override
|
||||
public SysOrderPause selectSysOrderPauseById(Long id)
|
||||
{
|
||||
return sysOrderPauseMapper.selectSysOrderPauseById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单服务暂停列表
|
||||
*
|
||||
* @param sysOrderPause 订单服务暂停
|
||||
* @return 订单服务暂停
|
||||
*/
|
||||
@Override
|
||||
public List<SysOrderPause> selectSysOrderPauseList(SysOrderPause sysOrderPause)
|
||||
{
|
||||
return sysOrderPauseMapper.selectSysOrderPauseList(sysOrderPause);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增订单服务暂停
|
||||
*
|
||||
* @param sysOrderPause 订单服务暂停
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysOrderPause(SysOrderPause sysOrderPause)
|
||||
{
|
||||
sysOrderPause.setCreateTime(DateUtils.getNowDate());
|
||||
return sysOrderPauseMapper.insertSysOrderPause(sysOrderPause);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改订单服务暂停
|
||||
*
|
||||
* @param sysOrderPause 订单服务暂停
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysOrderPause(SysOrderPause sysOrderPause)
|
||||
{
|
||||
sysOrderPause.setUpdateTime(DateUtils.getNowDate());
|
||||
return sysOrderPauseMapper.updateSysOrderPause(sysOrderPause);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除订单服务暂停
|
||||
*
|
||||
* @param ids 需要删除的订单服务暂停ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysOrderPauseByIds(Long[] ids)
|
||||
{
|
||||
return sysOrderPauseMapper.deleteSysOrderPauseByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单服务暂停信息
|
||||
*
|
||||
* @param id 订单服务暂停ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysOrderPauseById(Long id)
|
||||
{
|
||||
return sysOrderPauseMapper.deleteSysOrderPauseById(id);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user