Merge remote-tracking branch 'origin/perf/script_app_perf_1208'

This commit is contained in:
xiang
2025-12-13 18:20:28 +08:00
33 changed files with 179 additions and 1188 deletions

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xiang.xservice.common.mapper.SysConfigMapper">
<resultMap id="BaseResultMap" type="com.xiang.xservice.common.entity.SysConfigDO" >
<result column="id" property="id"/>
<result column="name" property="name" />
<result column="value" property="value" />
<result column="status" property="status" />
<result column="create_time" property="createTime" />
</resultMap>
<sql id="Base_sql">
id,
name,
value,
status,
create_time
</sql>
<select id="getByName" resultMap="BaseResultMap" parameterType="String">
select <include refid="Base_sql"/>
from sys_config
where name = #{name} and status = 1
</select>
</mapper>

View File

@@ -1,183 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xiang.xservice.application.script.stock.gnshyx.mapper.StockGnshyxRecordDataMapper">
<resultMap id="BaseResultMap" type="com.xiang.xservice.application.script.stock.gnshyx.entity.StockGnshyxRecordDataDO" >
<result column="id" property="id" />
<result column="symbol_name" property="symbolName" />
<result column="stock_name" property="stockName" />
<result column="attention_price" property="attentionPrice" />
<result column="target_price_low" property="targetPriceLow" />
<result column="target_price_high" property="targetPriceHigh" />
<result column="stop_price" property="stopPrice" />
<result column="stock_daily_selection_id" property="stockDailySelectionId" />
<result column="stock_code" property="stockCode" />
<result column="selection_time" property="selectionTime" />
<result column="maximum_increase" property="maximumIncrease" />
<result column="maximum_increase_seven" property="maximumIncreaseSeven" />
<result column="create_time" property="createTime" />
</resultMap>
<sql id="Base_Column_List">
id,
symbol_name,
stock_name,
attention_price,
target_price_low,
target_price_high,
stop_price,
stock_daily_selection_id,
stock_code,
selection_time,
maximum_increase,
maximum_increase_seven,
create_time
</sql>
<insert id="insert" useGeneratedKeys="true" keyColumn="id" keyProperty="id" parameterType="com.xiang.xservice.application.script.stock.gnshyx.entity.StockGnshyxRecordDataDO">
INSERT INTO stock_gnshyx_record_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="null != symbolName and '' != symbolName">
symbol_name,
</if>
<if test="null != stockName and '' != stockName">
stock_name,
</if>
<if test="null != attentionPrice ">
attention_price,
</if>
<if test="null != targetPriceLow ">
target_price_low,
</if>
<if test="null != targetPriceHigh ">
target_price_high,
</if>
<if test="null != stopPrice ">
stop_price,
</if>
<if test="null != stockDailySelectionId ">
stock_daily_selection_id,
</if>
<if test="null != stockCode and '' != stockCode">
stock_code,
</if>
<if test="null != selectionTime ">
selection_time,
</if>
<if test="null != maximumIncrease and '' != maximumIncrease">
maximum_increase,
</if>
<if test="null != maximumIncreaseSeven and '' != maximumIncreaseSeven">
maximum_increase_seven,
</if>
<if test="null != createTime ">
create_time
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="null != symbolName and '' != symbolName">
#{symbolName},
</if>
<if test="null != stockName and '' != stockName">
#{stockName},
</if>
<if test="null != attentionPrice ">
#{attentionPrice},
</if>
<if test="null != targetPriceLow ">
#{targetPriceLow},
</if>
<if test="null != targetPriceHigh ">
#{targetPriceHigh},
</if>
<if test="null != stopPrice ">
#{stopPrice},
</if>
<if test="null != stockDailySelectionId ">
#{stockDailySelectionId},
</if>
<if test="null != stockCode and '' != stockCode">
#{stockCode},
</if>
<if test="null != selectionTime ">
#{selectionTime},
</if>
<if test="null != maximumIncrease and '' != maximumIncrease">
#{maximumIncrease},
</if>
<if test="null != maximumIncreaseSeven and '' != maximumIncreaseSeven">
#{maximumIncreaseSeven},
</if>
<if test="null != createTime ">
#{createTime}
</if>
</trim>
</insert>
<insert id="batchInsertRecord">
insert into stock_gnshyx_record_data(symbol_name,
stock_name,
attention_price,
target_price_low,
target_price_high,
stop_price,
stock_daily_selection_id,
stock_code,
selection_time,
maximum_increase,
maximum_increase_seven,
create_time)
values
<foreach collection="list" item="item" separator=",">
(
#{item.symbolName},
#{item.stockName},
#{item.attentionPrice},
#{item.targetPriceLow},
#{item.targetPriceHigh},
#{item.stopPrice},
#{item.stockDailySelectionId},
#{item.stockCode},
#{item.selectionTime},
#{item.maximumIncrease},
#{item.maximumIncreaseSeven},
#{item.createTime}
)
</foreach>
</insert>
<delete id="delete" >
DELETE FROM stock_gnshyx_record_data
WHERE id = #{id}
</delete>
<select id="getList" resultMap="BaseResultMap">
select <include refid="Base_Column_List"/>
from stock_gnshyx_record_data where 1=1
</select>
<select id="getByStockCode" resultMap="BaseResultMap">
select <include refid="Base_Column_List"/>
from stock_gnshyx_record_data where stock_code = #{stockCode}
</select>
<update id="update" parameterType="com.xiang.xservice.application.script.stock.gnshyx.entity.StockGnshyxRecordDataDO">
UPDATE stock_gnshyx_record_data
<set>
<if test="null != symbolName and '' != symbolName">symbol_name = #{symbolName},</if>
<if test="null != stockName and '' != stockName">stock_name = #{stockName},</if>
<if test="null != attentionPrice ">attention_price = #{attentionPrice},</if>
<if test="null != targetPriceLow ">target_price_low = #{targetPriceLow},</if>
<if test="null != targetPriceHigh ">target_price_high = #{targetPriceHigh},</if>
<if test="null != stopPrice ">stop_price = #{stopPrice},</if>
<if test="null != stockDailySelectionId ">stock_daily_selection_id = #{stockDailySelectionId},</if>
<if test="null != stockCode and '' != stockCode">stock_code = #{stockCode},</if>
<if test="null != selectionTime ">selection_time = #{selectionTime},</if>
<if test="null != maximumIncrease and '' != maximumIncrease">maximum_increase = #{maximumIncrease},</if>
<if test="null != maximumIncreaseSeven and '' != maximumIncreaseSeven">maximum_increase_seven = #{maximumIncreaseSeven},</if>
<if test="null != createTime ">create_time = #{createTime}</if>
</set>
WHERE id = #{id}
</update>
</mapper>

View File

@@ -1,126 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xiang.xservice.application.script.stock.data.mapper.StockSinaDataRecordPullMapper">
<resultMap id="BaseResultMap" type="com.xiang.xservice.application.script.stock.data.entity.StockSinaDataRecordDO" >
<result column="id" property="id" />
<result column="name" property="name" />
<result column="jk_price" property="jkPrice" />
<result column="zs_price" property="zsPrice" />
<result column="xj_price" property="xjPrice" />
<result column="zg_price" property="zgPrice" />
<result column="zd_price" property="zdPrice" />
<result column="zs_num" property="zsNum" />
<result column="price" property="price" />
<result column="update_time" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
id,
name,
jk_price,
zs_price,
xj_price,
zg_price,
zd_price,
zs_num,
price,
update_time
</sql>
<insert id="insert" useGeneratedKeys="true" keyColumn="id" keyProperty="id" parameterType="com.xiang.xservice.application.script.stock.data.entity.StockSinaDataRecordDO">
INSERT INTO stock_sina_record_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="null != name and '' != name">
name,
</if>
<if test="null != jkPrice ">
jk_price,
</if>
<if test="null != zsPrice ">
zs_price,
</if>
<if test="null != xjPrice ">
xj_price,
</if>
<if test="null != zgPrice ">
zg_price,
</if>
<if test="null != zdPrice ">
zd_price,
</if>
<if test="null != zsNum and '' != zsNum">
zs_num,
</if>
<if test="null != price ">
price,
</if>
<if test="null != updateTime ">
update_time
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="null != name and '' != name">
#{name},
</if>
<if test="null != jkPrice ">
#{jkPrice},
</if>
<if test="null != zsPrice ">
#{zsPrice},
</if>
<if test="null != xjPrice ">
#{xjPrice},
</if>
<if test="null != zgPrice ">
#{zgPrice},
</if>
<if test="null != zdPrice ">
#{zdPrice},
</if>
<if test="null != zsNum and '' != zsNum">
#{zsNum},
</if>
<if test="null != price ">
#{price},
</if>
<if test="null != updateTime ">
#{updateTime}
</if>
</trim>
</insert>
<insert id="batchInsert">
INSERT INTO stock_sina_record_data
(name, jk_price, zs_price, xj_price, zg_price, zd_price, zs_num, price, update_time)
VALUES
<foreach collection="list" item="item" separator=",">
(#{item.name}, #{item.jkPrice}, #{item.zsPrice}, #{item.xjPrice},
#{item.zgPrice}, #{item.zdPrice}, #{item.zsNum}, #{item.price}, #{item.updateTime})
</foreach>
</insert>
<delete id="delete" >
DELETE FROM stock_sina_record_data
WHERE id = #{id}
</delete>
<update id="update" parameterType="com.xiang.xservice.application.script.stock.data.entity.StockSinaDataRecordDO">
UPDATE stock_sina_record_data
<set>
<if test="null != name and '' != name">name = #{name},</if>
<if test="null != jkPrice ">jk_price = #{jkPrice},</if>
<if test="null != zsPrice ">zs_price = #{zsPrice},</if>
<if test="null != xjPrice ">xj_price = #{xjPrice},</if>
<if test="null != zgPrice ">zg_price = #{zgPrice},</if>
<if test="null != zdPrice ">zd_price = #{zdPrice},</if>
<if test="null != zsNum and '' != zsNum">zs_num = #{zsNum},</if>
<if test="null != price ">price = #{price},</if>
<if test="null != updateTime ">update_time = #{updateTime}</if>
</set>
WHERE id = #{id}
</update>
</mapper>