You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
XML
37 lines
1.1 KiB
XML
2 years ago
|
<?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.glxp.api.dao.system.CompanyDao">
|
||
|
|
||
|
|
||
|
<select id="findCompany"
|
||
|
resultType="com.glxp.api.entity.system.CompanyEntity">
|
||
|
SELECT * FROM auth_company limit 1
|
||
|
</select>
|
||
|
|
||
|
<update id="modifyCompany" parameterType="com.glxp.api.entity.system.CompanyEntity">
|
||
|
UPDATE auth_company SET
|
||
|
name = #{name},
|
||
|
category = #{category},
|
||
|
creditCode = #{creditCode},
|
||
|
addr = #{addr},
|
||
|
productAddr = #{productAddr},
|
||
|
classes = #{classes},
|
||
|
appId = #{appId},
|
||
|
appSecret = #{appSecret}
|
||
|
</update>
|
||
|
|
||
|
<insert id="insertCompany" parameterType="com.glxp.api.entity.system.CompanyEntity">
|
||
|
INSERT INTO auth_company(name,category,creditCode,addr,productAddr,classes,appId,appSecret) values
|
||
|
( #{name},
|
||
|
#{category},
|
||
|
#{creditCode},
|
||
|
#{addr},
|
||
|
#{productAddr},
|
||
|
#{classes},
|
||
|
#{appId},
|
||
|
#{appSecret})
|
||
|
</insert>
|
||
|
|
||
|
|
||
|
</mapper>
|