| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="appraiseServiceDaoImpl"> |
| | | |
| | | |
| | | <!-- 保存评价信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveAppraiseInfo" parameterType="Map"> |
| | | insert into appraise( |
| | | parent_appraise_id,appraise_user_name,appraise_id,appraise_score,appraise_type,context,obj_id,obj_type,appraise_user_id |
| | | parent_appraise_id,appraise_user_name,appraise_id,appraise_score,appraise_type,context,obj_id,obj_type,appraise_user_id,door_speed_score,repairman_service_score |
| | | ) values ( |
| | | #{parentAppraiseId},#{appraiseUserName},#{appraiseId},#{appraiseScore},#{appraiseType},#{context},#{objId},#{objType},#{appraiseUserId} |
| | | #{parentAppraiseId},#{appraiseUserName},#{appraiseId},#{appraiseScore},#{appraiseType},#{context},#{objId},#{objType},#{appraiseUserId},#{doorSpeedScore},#{repairmanServiceScore} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | <!-- 查询评价信息 add by wuxw 2018-07-03 --> |
| | | <select id="getAppraiseInfo" parameterType="Map" resultType="Map"> |
| | |
| | | appraiseUserName,t.appraise_id,t.appraise_id appraiseId,t.appraise_score,t.appraise_score |
| | | appraiseScore,t.appraise_type,t.appraise_type appraiseType,t.context,t.obj_id,t.obj_id |
| | | objId,t.status_cd,t.status_cd statusCd,t.obj_type,t.obj_type objType,t.appraise_user_id,t.appraise_user_id |
| | | appraiseUserId |
| | | appraiseUserId,t.door_speed_score doorSpeedScore,t.repairman_service_score repairmanServiceScore |
| | | from appraise t |
| | | where 1 =1 |
| | | <if test="parentAppraiseId !=null and parentAppraiseId != ''"> |
| | |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | | <!-- 修改评价信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateAppraiseInfo" parameterType="Map"> |
| | |
| | | <if test="appraiseId !=null and appraiseId != ''"> |
| | | and t.appraise_id= #{appraiseId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询评价数量 add by wuxw 2018-07-03 --> |
| | |
| | | <if test="appraiseUserId !=null and appraiseUserId != ''"> |
| | | and t.appraise_user_id= #{appraiseUserId} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |