mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-27 06:25:13 +08:00
新增 充电订单电池算法报告实体类、Service
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.ChargeAlgorithmRecord;
|
||||
|
||||
/**
|
||||
* 电池充电算法记录Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2025-04-12
|
||||
*/
|
||||
public interface ChargeAlgorithmRecordService {
|
||||
/**
|
||||
* 查询电池充电算法记录
|
||||
*
|
||||
* @param id 电池充电算法记录主键
|
||||
* @return 电池充电算法记录
|
||||
*/
|
||||
public ChargeAlgorithmRecord selectChargeAlgorithmRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询电池充电算法记录列表
|
||||
*
|
||||
* @param chargeAlgorithmRecord 电池充电算法记录
|
||||
* @return 电池充电算法记录集合
|
||||
*/
|
||||
public List<ChargeAlgorithmRecord> selectChargeAlgorithmRecordList(ChargeAlgorithmRecord chargeAlgorithmRecord);
|
||||
|
||||
/**
|
||||
* 新增电池充电算法记录
|
||||
*
|
||||
* @param chargeAlgorithmRecord 电池充电算法记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertChargeAlgorithmRecord(ChargeAlgorithmRecord chargeAlgorithmRecord);
|
||||
|
||||
/**
|
||||
* 修改电池充电算法记录
|
||||
*
|
||||
* @param chargeAlgorithmRecord 电池充电算法记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateChargeAlgorithmRecord(ChargeAlgorithmRecord chargeAlgorithmRecord);
|
||||
|
||||
/**
|
||||
* 批量删除电池充电算法记录
|
||||
*
|
||||
* @param ids 需要删除的电池充电算法记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteChargeAlgorithmRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除电池充电算法记录信息
|
||||
*
|
||||
* @param id 电池充电算法记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteChargeAlgorithmRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 通过订单号查询充电电池算法报告
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
ChargeAlgorithmRecord queryRecordByOrderCode(String orderCode);
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.pile.service.ChargeAlgorithmRecordService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jsowell.pile.mapper.ChargeAlgorithmRecordMapper;
|
||||
import com.jsowell.pile.domain.ChargeAlgorithmRecord;
|
||||
|
||||
/**
|
||||
* 电池充电算法记录Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2025-04-12
|
||||
*/
|
||||
@Service
|
||||
public class ChargeAlgorithmRecordServiceImpl implements ChargeAlgorithmRecordService {
|
||||
@Autowired
|
||||
private ChargeAlgorithmRecordMapper chargeAlgorithmRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询电池充电算法记录
|
||||
*
|
||||
* @param id 电池充电算法记录主键
|
||||
* @return 电池充电算法记录
|
||||
*/
|
||||
@Override
|
||||
public ChargeAlgorithmRecord selectChargeAlgorithmRecordById(Long id) {
|
||||
return chargeAlgorithmRecordMapper.selectChargeAlgorithmRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电池充电算法记录列表
|
||||
*
|
||||
* @param chargeAlgorithmRecord 电池充电算法记录
|
||||
* @return 电池充电算法记录
|
||||
*/
|
||||
@Override
|
||||
public List<ChargeAlgorithmRecord> selectChargeAlgorithmRecordList(ChargeAlgorithmRecord chargeAlgorithmRecord) {
|
||||
return chargeAlgorithmRecordMapper.selectChargeAlgorithmRecordList(chargeAlgorithmRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电池充电算法记录
|
||||
*
|
||||
* @param chargeAlgorithmRecord 电池充电算法记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertChargeAlgorithmRecord(ChargeAlgorithmRecord chargeAlgorithmRecord) {
|
||||
chargeAlgorithmRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return chargeAlgorithmRecordMapper.insertChargeAlgorithmRecord(chargeAlgorithmRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电池充电算法记录
|
||||
*
|
||||
* @param chargeAlgorithmRecord 电池充电算法记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateChargeAlgorithmRecord(ChargeAlgorithmRecord chargeAlgorithmRecord) {
|
||||
return chargeAlgorithmRecordMapper.updateChargeAlgorithmRecord(chargeAlgorithmRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除电池充电算法记录
|
||||
*
|
||||
* @param ids 需要删除的电池充电算法记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteChargeAlgorithmRecordByIds(Long[] ids) {
|
||||
return chargeAlgorithmRecordMapper.deleteChargeAlgorithmRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电池充电算法记录信息
|
||||
*
|
||||
* @param id 电池充电算法记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteChargeAlgorithmRecordById(Long id) {
|
||||
return chargeAlgorithmRecordMapper.deleteChargeAlgorithmRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过订单号查询充电电池算法报告
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ChargeAlgorithmRecord queryRecordByOrderCode(String orderCode) {
|
||||
return chargeAlgorithmRecordMapper.queryRecordByOrderCode(orderCode);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user