整体需求完善
This commit is contained in:
@ -3,9 +3,14 @@
|
||||
<mapper namespace="com.bipt.intelligentapplicationorchestrationservice.mapper.PublishMapper">
|
||||
<insert id="insert">
|
||||
INSERT INTO service_publish
|
||||
(id,model_id,api_url,create_time,ip)
|
||||
values (#{id}, #{modelId}, #{apiUrl}, #{createTime},#{ip})
|
||||
(id,model_id,api_url,create_time,ip,status)
|
||||
values (#{id}, #{modelId}, #{apiUrl}, #{createTime},#{ip},#{status})
|
||||
</insert>
|
||||
<update id="updateStatus">
|
||||
UPDATE service_publish
|
||||
SET status = #{status}
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<select id="getByApiUrl" resultType="java.lang.Long">
|
||||
SELECT id FROM service_publish WHERE api_url = #{apiUrl};
|
||||
@ -17,4 +22,10 @@
|
||||
mv.*
|
||||
from model_version mv join service_publish sp on mv.model_id = sp.model_id
|
||||
</select>
|
||||
<select id="selectByStatus"
|
||||
resultType="com.bipt.intelligentapplicationorchestrationservice.pojo.ServicePublishVO">
|
||||
SELECT *
|
||||
FROM service_publish
|
||||
WHERE status = #{status}
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user