客户健康页面、表逻辑

This commit is contained in:
xiezhijun
2021-01-23 22:11:39 +08:00
parent a4745063d3
commit c4fe017d4d
7 changed files with 2325 additions and 200 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,61 @@
package com.stdiet.custom.mapper;
import java.util.List;
import com.stdiet.custom.domain.SysCustomerHealthy;
/**
* 客户健康Mapper接口
*
* @author xzj
* @date 2021-01-23
*/
public interface SysCustomerHealthyMapper
{
/**
* 查询客户健康
*
* @param id 客户健康ID
* @return 客户健康
*/
public SysCustomerHealthy selectSysCustomerHealthyById(Long id);
/**
* 查询客户健康列表
*
* @param sysCustomerHealthy 客户健康
* @return 客户健康集合
*/
public List<SysCustomerHealthy> selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy);
/**
* 新增客户健康
*
* @param sysCustomerHealthy 客户健康
* @return 结果
*/
public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy);
/**
* 修改客户健康
*
* @param sysCustomerHealthy 客户健康
* @return 结果
*/
public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy);
/**
* 删除客户健康
*
* @param id 客户健康ID
* @return 结果
*/
public int deleteSysCustomerHealthyById(Long id);
/**
* 批量删除客户健康
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteSysCustomerHealthyByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.stdiet.custom.service;
import java.util.List;
import com.stdiet.custom.domain.SysCustomerHealthy;
/**
* 客户健康Service接口
*
* @author xzj
* @date 2021-01-23
*/
public interface ISysCustomerHealthyService
{
/**
* 查询客户健康
*
* @param id 客户健康ID
* @return 客户健康
*/
public SysCustomerHealthy selectSysCustomerHealthyById(Long id);
/**
* 查询客户健康列表
*
* @param sysCustomerHealthy 客户健康
* @return 客户健康集合
*/
public List<SysCustomerHealthy> selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy);
/**
* 新增客户健康
*
* @param sysCustomerHealthy 客户健康
* @return 结果
*/
public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy);
/**
* 修改客户健康
*
* @param sysCustomerHealthy 客户健康
* @return 结果
*/
public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy);
/**
* 批量删除客户健康
*
* @param ids 需要删除的客户健康ID
* @return 结果
*/
public int deleteSysCustomerHealthyByIds(Long[] ids);
/**
* 删除客户健康信息
*
* @param id 客户健康ID
* @return 结果
*/
public int deleteSysCustomerHealthyById(Long id);
}

View File

@ -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.SysCustomerHealthyMapper;
import com.stdiet.custom.domain.SysCustomerHealthy;
import com.stdiet.custom.service.ISysCustomerHealthyService;
/**
* 客户健康Service业务层处理
*
* @author xzj
* @date 2021-01-23
*/
@Service
public class SysCustomerHealthyServiceImpl implements ISysCustomerHealthyService
{
@Autowired
private SysCustomerHealthyMapper sysCustomerHealthyMapper;
/**
* 查询客户健康
*
* @param id 客户健康ID
* @return 客户健康
*/
@Override
public SysCustomerHealthy selectSysCustomerHealthyById(Long id)
{
return sysCustomerHealthyMapper.selectSysCustomerHealthyById(id);
}
/**
* 查询客户健康列表
*
* @param sysCustomerHealthy 客户健康
* @return 客户健康
*/
@Override
public List<SysCustomerHealthy> selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy)
{
return sysCustomerHealthyMapper.selectSysCustomerHealthyList(sysCustomerHealthy);
}
/**
* 新增客户健康
*
* @param sysCustomerHealthy 客户健康
* @return 结果
*/
@Override
public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy)
{
sysCustomerHealthy.setCreateTime(DateUtils.getNowDate());
return sysCustomerHealthyMapper.insertSysCustomerHealthy(sysCustomerHealthy);
}
/**
* 修改客户健康
*
* @param sysCustomerHealthy 客户健康
* @return 结果
*/
@Override
public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy)
{
sysCustomerHealthy.setUpdateTime(DateUtils.getNowDate());
return sysCustomerHealthyMapper.updateSysCustomerHealthy(sysCustomerHealthy);
}
/**
* 批量删除客户健康
*
* @param ids 需要删除的客户健康ID
* @return 结果
*/
@Override
public int deleteSysCustomerHealthyByIds(Long[] ids)
{
return sysCustomerHealthyMapper.deleteSysCustomerHealthyByIds(ids);
}
/**
* 删除客户健康信息
*
* @param id 客户健康ID
* @return 结果
*/
@Override
public int deleteSysCustomerHealthyById(Long id)
{
return sysCustomerHealthyMapper.deleteSysCustomerHealthyById(id);
}
}