sqlmap-onlinereg.xml
2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<sqlMap namespace="onlinereg">
<insert id="setSellerInfo">
INSERT INTO tbl_online_seller(`name`, `type`, profession, sex, introduction, brand_reg_type, is_enter_yohobuy, product_type,
country,city,company,contact,telphone,mobile,email,relation,website,is_3c,place, zipcode, files,create_time)
VALUES(:name,:type,:profession, :sex, :introduction,:brand_reg_type, :is_enter_yohobuy, :product_type,
:country,:city, :company,:contact,:telphone,:mobile,:email,:relation,:website,:is_3c,:place,:zipcode, :files,UNIX_TIMESTAMP())
</insert>
<select id="getSellerListByType">
SELECT * FROM tbl_online_seller where `type`= :type ORDER BY create_time DESC LIMIT :offset, :limit
</select>
<select id="getSellerTotalByType">
SELECT COUNT(*) FROM tbl_online_seller where `type`= :type
</select>
<select id="getSellerById">
SELECT * FROM tbl_online_seller WHERE id = :id
</select>
<insert id="setMediaInfo">
INSERT INTO tbl_online_seller(`name`, `type`, profession, sex, company, introduction, website,
city, email, mobile, telphone,address, zipcode,create_time)
VALUES(:name,:type, :profession,:sex, :company, :introduction, :website, :city,
:email,:mobile,:telphone,:address,:zipcode,UNIX_TIMESTAMP())
</insert>
<insert id="setDownloadInfo">
INSERT INTO tbl_online_download(title, cover, file, source, source_link, `type`, create_time) VALUES(:title,:cover,:file,:source,
:source_link, :type, UNIX_TIMESTAMP())
</insert>
<update id="setDownloadInfoById">
UPDATE tbl_online_download SET title = :title, cover =:cover, file =:file, source = :source, source_link = :source_link WHERE id = :id
</update>
<select id="getDownloadListByType">
SELECT * FROM tbl_online_download WHERE `type` = :type ORDER BY create_time DESC LIMIT :offset, :limit
</select>
<select id="getDownloadTotalByType">
SELECT COUNT(*) FROM tbl_online_download WHERE `type` = :type
</select>
<select id="getDownloadById">
SELECT * FROM tbl_online_download WHERE id = :id
</select>
<delete id="delDownload">
DELETE FROM tbl_online_download WHERE id = :id
</delete>
<update id="setSeller">
UPDATE tbl_online_seller SET #up# WHERE id = :id
</update>
</sqlMap>