2021与蓝度共同重构项目,服务端
MercuryZ
2022-03-31 ef270bd1855b5ce3f398c5df024840a498e33a8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.sandu.ximon.dao.mapper;
 
import com.sandu.ximon.dao.domain.C3mChargingCharge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
 
import java.util.List;
 
/**
 * @Entity com.sandu.ximon.dao.domain.C3mChargingCharge
 */
@Mapper
public interface C3mChargingChargeMapper extends BaseMapper<C3mChargingCharge> {
 
    @Delete("delete from c3_charging_charge where c3_id = #{id}")
    boolean deleteCharge(@Param("id") Integer c3Id);
 
    @Select("select * from c3_charging_charge where c3_id = #{c3Id} limit 5")
    List<C3mChargingCharge> getChargeByC3Id(@Param("c3Id") Integer c3Id);
 
    @Insert("insert into c3_charging_charge values (#{c3Id},#{hour},#{min},#{charge},#{timestamp})")
    void insertCharge(C3mChargingCharge c3m);
 
}