Merge branch 'qtz3' of SH-Arbitrate/Arbitrate-Backend into dev
This commit was merged in pull request #294.
This commit is contained in:
@@ -6,7 +6,7 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://121.40.189.20:3306/test_smart_arbitration?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
|
url: jdbc:mysql://121.40.189.20:3306/test_smart_arbitration?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
username: root
|
username: root
|
||||||
password: YMzc157#
|
password: YMzc157#
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
|
|||||||
@@ -32,4 +32,6 @@ public interface ColumnValueMapper {
|
|||||||
*/
|
*/
|
||||||
void batchUpdate(@Param("list") List<ColumnValue> list);
|
void batchUpdate(@Param("list") List<ColumnValue> list);
|
||||||
|
|
||||||
|
int updateColumnValue(ColumnValue columnValue);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,17 @@
|
|||||||
where id=#{item.id};
|
where id=#{item.id};
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="updateColumnValue" parameterType="ColumnValue">
|
||||||
|
update column_value
|
||||||
|
<set>
|
||||||
|
<if test="value != null and value != ''">
|
||||||
|
`VALUE` = #{value},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id=#{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
<select id="listByCaseId" resultMap="BaseResultMap">
|
<select id="listByCaseId" resultMap="BaseResultMap">
|
||||||
select * from column_value where case_id=#{caseId}
|
select * from column_value where case_id=#{caseId}
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user