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.
39 lines
1.1 KiB
XML
39 lines
1.1 KiB
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.glxp.udidl.admin.dao.info.CompanyDao">
|
|
|
|
|
|
<select id="findCompany"
|
|
resultType="com.glxp.udidl.admin.entity.info.CompanyEntity">
|
|
SELECT * FROM company
|
|
</select>
|
|
|
|
<update id="modifyCompany" parameterType="com.glxp.udidl.admin.entity.info.CompanyEntity">
|
|
UPDATE company SET
|
|
name = #{name},
|
|
category = #{category},
|
|
creditCode = #{creditCode},
|
|
addr = #{addr},
|
|
productAddr = #{productAddr},
|
|
classes = #{classes},
|
|
appId = #{appId},
|
|
appSecret = #{appSecret},
|
|
tyshxydm = #{tyshxydm}
|
|
</update>
|
|
|
|
<insert id="insertCompany" parameterType="com.glxp.udidl.admin.entity.info.CompanyEntity">
|
|
INSERT INTO company(name,category,creditCode,addr,productAddr,classes,appId,appSecret,tyshxydm) values
|
|
( #{name},
|
|
#{category},
|
|
#{creditCode},
|
|
#{addr},
|
|
#{productAddr},
|
|
#{classes},
|
|
#{appId},
|
|
#{appSecret}),
|
|
#{tyshxydm}
|
|
</insert>
|
|
|
|
|
|
</mapper> |