| | |
| | | @ApiModelProperty(value = "回复") |
| | | private String reply; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "用户名") |
| | | private String userName; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "电话") |
| | | private String phone; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "身份证") |
| | | private String idCard; |
| | | |
| | |
| | | <result property="jsonObject" column="json_object" /> |
| | | <result property="transactType" column="transact_type" /> |
| | | <result property="reply" column="reply" /> |
| | | <result property="userName" column="user_name" /> |
| | | <result property="phone" column="phone" /> |
| | | <result property="idCard" column="id_card" /> |
| | | <result property="processingTime" column="processing_time" /> |
| | | <result property="creationTime" column="creation_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | |
| | | <select id="getList" resultMap="itemMap"> |
| | | select |
| | | jcaqa.id, |
| | | su.name as userName, |
| | | su.phone, |
| | | su.id_card as idCard, |
| | | jcaqa.questnaire_id, |
| | | jcaqa.user_id, |
| | | jcaqa.user_name, |
| | | jcaqa.phone, |
| | | jcaqa.id_card, |
| | | jcaqa.creation_time, |
| | | jcaqa.json_object, |
| | | jcaqa.update_time, |
| | |
| | | jcaqa.transact_type, |
| | | jcaqa.reply |
| | | from jinhui_com_act_questnaire_user_answer as jcaqa |
| | | Left join sys_user su on su.user_id=jcaqa.user_id |
| | | where jcaqa.user_id=#{userId} |
| | | order by jcaqa.creation_time desc |
| | | </select> |
| | |
| | | <select id="getDetails" resultMap="itemMap"> |
| | | select |
| | | jcaqa.id, |
| | | su.name as userName, |
| | | su.phone, |
| | | su.id_card as idCard, |
| | | jcaqa.questnaire_id, |
| | | jcaqa.user_id, |
| | | jcaqa.user_name, |
| | | jcaqa.phone, |
| | | jcaqa.id_card, |
| | | jcaqa.creation_time, |
| | | jcaqa.json_object, |
| | | jcaqa.update_time, |
| | |
| | | jcaqa.transact_type, |
| | | jcaqa.reply |
| | | from jinhui_com_act_questnaire_user_answer as jcaqa |
| | | Left join sys_user su on su.user_id=jcaqa.user_id |
| | | <where> |
| | | 1=1 |
| | | <if test=" id!=null and id!='' "> |
| | |
| | | <if test="item.reply != null and item.reply != '' "> |
| | | reply, |
| | | </if> |
| | | <if test="item.userName != null and item.userName != '' "> |
| | | user_name, |
| | | </if> |
| | | <if test="item.phone != null and item.phone != '' "> |
| | | phone, |
| | | </if> |
| | | <if test="item.idCard != null and item.idCard != '' "> |
| | | id_card, |
| | | </if> |
| | | creation_time |
| | | </trim> |
| | | values |
| | |
| | | </if> |
| | | <if test="item.reply != null and item.reply != '' "> |
| | | #{item.reply}, |
| | | </if> |
| | | <if test="item.userName != null and item.userName != '' "> |
| | | #{item.userName}, |
| | | </if> |
| | | <if test="item.phone != null and item.phone != '' "> |
| | | #{item.phone}, |
| | | </if> |
| | | <if test="item.idCard != null and item.idCard != '' "> |
| | | #{item.idCard}, |
| | | </if> |
| | | sysdate() |
| | | </trim> |
| | |
| | | <if test="item.reply != null and item.reply != '' "> |
| | | reply=#{item.reply}, |
| | | </if> |
| | | <if test="item.userName != null and item.userName != '' "> |
| | | user_name=#{item.userName}, |
| | | </if> |
| | | <if test="item.phone != null and item.phone != '' "> |
| | | phone=#{item.phone}, |
| | | </if> |
| | | <if test="item.idCard != null and item.idCard != '' "> |
| | | id_card=#{item.idCard}, |
| | | </if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id = #{item.id} |