|
|
@ -5,6 +5,8 @@ |
|
|
|
|
|
|
|
<resultMap type="com.epmet.entity.VolunteerInfoEntity" id="volunteerInfoMap"> |
|
|
|
<result property="id" column="ID"/> |
|
|
|
<result property="gridId" column="GRID_ID"/> |
|
|
|
<result property="gridName" column="GRID_NAME"/> |
|
|
|
<result property="userId" column="USER_ID"/> |
|
|
|
<result property="customerId" column="CUSTOMER_ID"/> |
|
|
|
<result property="volunteerIntroduce" column="VOLUNTEER_INTRODUCE"/> |
|
|
@ -40,6 +42,12 @@ |
|
|
|
<if test="userId != null and userId != ''"> |
|
|
|
UPDATED_BY = #{userId}, |
|
|
|
</if> |
|
|
|
<if test="gridId != null and gridId != ''"> |
|
|
|
GRID_ID = #{gridId}, |
|
|
|
</if> |
|
|
|
<if test="gridName != null and gridName != ''"> |
|
|
|
GRID_NAME = #{gridName}, |
|
|
|
</if> |
|
|
|
UPDATED_TIME = now() |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
AND USER_ID = #{userId} |
|
|
@ -49,7 +57,9 @@ |
|
|
|
SELECT |
|
|
|
CUSTOMER_ID customerId, |
|
|
|
VOLUNTEER_INTRODUCE volunteerIntroduce, |
|
|
|
VOLUNTEER_SIGNATURE volunteerSignature |
|
|
|
VOLUNTEER_SIGNATURE volunteerSignature, |
|
|
|
GRID_ID gridId, |
|
|
|
GRID_NAME gridName |
|
|
|
FROM volunteer_info |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
AND USER_ID = #{userId} |
|
|
|