cloud-background/cloud-background-server/src/main/resources/mapper/background/ApiManageMapper.xml

27 lines
845 B
XML

<?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.muyu.cloud.background.mapper.ApiManageMapper">
<select id="getprice" resultType="com.muyu.cloud.background.domin.MiddleTableEntity">
SELECT * from middle_specification_product where middle_product=#{productId}
</select>
<insert id="insertMiddle">
INSERT INTO `h6_cloud_server`.`middle_specification_product`
(`middle_id`, `middle_product`, `middle_specification`, `middle_price`) VALUES
(0, #{middleProduct},#{middleSpecification}, #{middlePrice});
</insert>
<update id="updproductState">
update product set product_state=#{productState} where product_id=#{productId}
</update>
</mapper>