|
@@ -12,7 +12,6 @@
|
|
|
<result property="hgzh" column="hgzh"/>
|
|
|
<result property="fzjg" column="fzjg"/>
|
|
|
<result property="fzDate" column="fz_date"/>
|
|
|
- <!-- 新增字段映射 -->
|
|
|
<result property="jsdw" column="jsdw"/>
|
|
|
<result property="gljsgcghxkh" column="gljsgcghxkh"/>
|
|
|
<result property="hasOnchain" column="has_onchain"/>
|
|
@@ -39,11 +38,12 @@
|
|
|
now(), now())
|
|
|
</insert>
|
|
|
|
|
|
- <!-- 根据项目ID获取记录 -->
|
|
|
+ <!-- 根据项目ID获取记录(返回全部,按创建时间升序) -->
|
|
|
<select id="get" resultMap="BaseResultMap" parameterType="String">
|
|
|
SELECT *
|
|
|
FROM t_tdhyhs
|
|
|
WHERE project_id = #{projectId}
|
|
|
+ ORDER BY created_at ASC
|
|
|
</select>
|
|
|
|
|
|
<!-- 更新记录 -->
|
|
@@ -55,7 +55,6 @@
|
|
|
<if test="hgzh != null">hgzh = #{hgzh},</if>
|
|
|
<if test="fzjg != null">fzjg = #{fzjg},</if>
|
|
|
<if test="fzDate != null">fz_date = #{fzDate},</if>
|
|
|
- <!-- 新增字段可更新 -->
|
|
|
<if test="jsdw != null">jsdw = #{jsdw},</if>
|
|
|
<if test="gljsgcghxkh != null">gljsgcghxkh = #{gljsgcghxkh},</if>
|
|
|
<if test="hasOnchain != null">has_onchain = #{hasOnchain},</if>
|