forked from rongchao/epmet-cloud-rizhao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.3 KiB
64 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.epmet.modules.warmhearted.dao.ResiWarmheartedVisitDao">
|
|
|
|
<resultMap type="com.epmet.modules.warmhearted.entity.ResiWarmheartedVisitEntity" id="resiWarmheartedVisitMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
|
<result property="gridId" column="GRID_ID"/>
|
|
<result property="userId" column="USER_ID"/>
|
|
<result property="visitFrom" column="VISIT_FROM"/>
|
|
<result property="visitTime" column="VISIT_TIME"/>
|
|
<result property="operateVisit" column="OPERATE_VISIT"/>
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
<result property="revision" column="REVISION"/>
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
</resultMap>
|
|
|
|
<insert id="saveResiWarmheartedVisit"
|
|
parameterType="com.epmet.resi.partymember.dto.warmhearted.ResiWarmheartedVisitDTO">
|
|
INSERT INTO resi_warmhearted_visit (
|
|
id,
|
|
customer_id,
|
|
grid_id,
|
|
user_id,
|
|
visit_from,
|
|
operate_visit,
|
|
visit_time,
|
|
del_flag,
|
|
revision,
|
|
created_by,
|
|
created_time,
|
|
updated_by,
|
|
updated_time
|
|
)VALUES(
|
|
#{id},
|
|
#{customerId},
|
|
#{gridId},
|
|
#{userId},
|
|
#{visitFrom},
|
|
#{operateVisit},
|
|
#{visitTime},
|
|
#{delFlag},
|
|
#{revision},
|
|
#{createdBy},
|
|
#{createdTime},
|
|
#{updatedBy},
|
|
#{updatedTime}
|
|
)
|
|
</insert>
|
|
<update id="updateResiWarmVisitById"
|
|
parameterType="com.epmet.resi.partymember.dto.warmhearted.ResiWarmheartedVisitDTO">
|
|
UPDATE resi_warmhearted_visit
|
|
SET operate_visit = #{operateVisit},
|
|
updated_by = #{updatedBy},
|
|
updated_time = #{updatedTime}
|
|
WHERE
|
|
id = #{id}
|
|
</update>
|
|
|
|
</mapper>
|