| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- -- [queryStoreBrandList]
- select *
- from $table$
- -- trim prefix=WHERE prefixOverrides=AND|OR
- -- if voidFlag >= 0
- voidFlag = #{voidFlag}
- -- end
- -- end
- -- isEmpty orderBy
- order by createTime desc
- -- else
- order by #{orderBy}
- -- end
- ;
- -- [addStoreBrand]
- insert into $table$
- (id, brandName, brandLogoUrl, startingPrice,
- packagingFee, brandMemo, voidFlag,
- createBy, createTime, createTimeLong,
- updateBy, updateTime, updateTimeLong )
- values (
- #{id}, #{brandname}, #{brandlogourl}, #{startingprice},
- #{packagingfee}, #{brandmemo}, #{voidflag},
- #{createby}, #{createtime}, #{createtimelong},
- #{updateby}, #{updatetime}, #{updatetimelong} );
- -- [updateStoreBrand]
- update $table$ set
- brandName = #{brandname},
- brandLogoUrl = #{brandlogourl},
- startingPrice = #{startingprice},
- packagingFee = #{packagingfee},
- brandMemo = #{brandmemo},
- updateBy = #{updateby},
- updateTime = #{updatetime},
- updateTimeLong = #{updatetimelong}
- where id = #{id};
- -- [voidStoreBrand]
- update $table$ set
- voidFlag = #{voidflag},
- updateBy = #{updateby},
- updateTime = #{updatetime},
- updateTimeLong = #{updatetimelong}
- where id = #{id};
- -- [updateBrandLogoUrl]
- update $table$ set brandLogoUrl = #{brandlogourl} where id = #{id};
- -- [queryStoreInfoList]
- select *
- from $table$
- -- trim prefix=WHERE prefixOverrides=AND|OR
- -- if voidFlag >= 0
- voidFlag = #{voidFlag}
- -- end
- -- end
- -- isEmpty orderBy
- order by createTime desc
- -- else
- order by #{orderBy}
- -- end
- ;
- -- [addStoreInfo]
- insert into $table$ (id, loginAccount, loginPass, storeName, idBrand, brandName,
- idStoreType, deliverSettleKind, storeCodeInput,
- storeProvince, storeCity, storeDistrict,
- storeAddress, locationStr, contractPhone, storeBossId,
- companyLicenseNo, companyLicensePicUrl, legalPersonIdNo,
- legalPersonName, voidFlag, enableInvoice,
- createBy, createTime, createTimeLong,
- updateBy, updateTime, updateTimeLong ) values ( #{id}, #{loginaccount}, #{loginpass}, #{storename}, #{idbrand}, #{brandname},
- #{idstoretype}, #{deliversettlekind}, #{storecodeinput},
- #{storeprovince}, #{storecity}, #{storedistrict},
- #{storeaddress}, #{locationstr}, #{contractphone}, #{storebossid},
- #{companylicenseno}, #{companylicensepicurl}, #{legalpersonidno},
- #{legalpersonname}, #{voidflag}, #{enableinvoice},
- #{createby}, #{createtime}, #{createtimelong},
- #{updateby}, #{updatetime}, #{updatetimelong} );
- -- [updateStoreInfo]
- update $table$ set storeName = #{storename},idBrand = #{idbrand}, brandName = #{brandname},
- idStoreType = #{idstoretype}, deliverSettleKind = #{deliversettlekind},storeCodeInput = #{storecodeinput},
- storeProvince = #{storeprovince},storeCity = #{storecity}, storeDistrict = #{storedistrict},
- storeAddress = #{storeaddress},locationStr = #{locationstr},contractPhone = #{contractphone},
- storeBossId = #{storebossid}, companyLicenseNo = #{companylicenseno},companyLicensePicUrl = #{companylicensepicurl},
- legalPersonIdNo = #{legalpersonidno},legalPersonName = #{legalpersonname},enableInvoice = #{enableinvoice},
- updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong}
- where id = #{id};
- -- [updateStoreEnableInvoice]
- update $table$ set enableInvoice = #{enableinvoice},updateBy = #{updateby},
- updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
- -- [voidStoreInfo]
- update $table$ set voidFlag = #{voidflag},updateBy = #{updateby},
- updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
- -- [queryStoreInvoiceList]
- select *
- from $table$
- -- trim prefix=WHERE prefixOverrides=AND|OR
- -- if voidFlag >= 0
- voidFlag = #{voidFlag}
- -- end
- -- end
- -- isEmpty orderBy
- order by createTime desc
- -- else
- order by #{orderBy}
- -- end
- ;
- -- [addStoreInvoiceInfo]
- insert into $table$ (id, idStore, taxIdNo, companyName,
- defaultTaxItemName, defaultTaxItemCode, taxRate,
- createBy, createTime, createTimeLong,
- updateBy, updateTime, updateTimeLong ) values ( #{id}, #{idstore}, #{taxidno}, #{companyname},
- #{defaulttaxitemname}, #{defaulttaxitemcode}, #{taxrate},
- #{createby}, #{createtime}, #{createtimelong},
- #{updateby}, #{updatetime}, #{updatetimelong} );
- -- [updateStoreInvoiceInfo]
- update $table$ set idStore = #{idstore},taxIdNo = #{taxidno},companyName = #{companyname},defaultTaxItemName = #{defaulttaxitemname},
- defaultTaxItemCode = #{defaulttaxitemcode},taxRate = #{taxrate},updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong}
- where id = #{id};
- -- [queryStorePlatformList]
- select *
- from $table$
- -- trim prefix=WHERE prefixOverrides=AND|OR
- -- if voidFlag >= 0
- voidFlag = #{voidFlag}
- -- end
- -- end
- -- isEmpty orderBy
- order by createTime desc
- -- else
- order by #{orderBy}
- -- end
- ;
- -- [queryStorePlatformRequireList]
- select *
- from $table$
- -- trim prefix=WHERE prefixOverrides=AND|OR
- -- if voidFlag >= 0
- voidFlag = #{voidFlag}
- -- end
- -- end
- -- isEmpty orderBy
- order by createTime desc
- -- else
- order by #{orderBy}
- -- end
- ;
- -- [addStorePlatform]
- insert into $table$ (id, idStore, platformStoreId, idPlatformInfo, platformName, platformCode,
- platformType, enableStatue, createBy,
- createTime, createTimeLong, updateBy,
- updateTime, updateTimeLong ) values ( #{id}, #{idstore}, #{platformstoreid}, #{idplatforminfo}, #{platformname}, #{platformcode},
- #{platformtype}, #{enablestatue}, #{createby},
- #{createtime}, #{createtimelong}, #{updateby},
- #{updatetime}, #{updatetimelong} );
- -- [addStorePlatformRequire]
- insert into $table$ (id, idStore, idStorePlatform, idPlatformRequire,
- platformRequireCode, platformRequireName, itemValue,
- createBy, createTime, createTimeLong,
- updateBy, updateTime, updateTimeLong ) values ( #{id}, #{idstore}, #{idstoreplatform}, #{idplatformrequire},
- #{platformrequirecode}, #{platformrequirename}, #{itemvalue},
- #{createby}, #{createtime}, #{createtimelong},
- #{updateby}, #{updatetime}, #{updatetimelong} );
- -- [updateStorePlatform]
- update $table$ set enableStatue = #{enablestatue},
- updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
- -- [deleteStorePlatformRequireByIdStore]
- delete from $table$ where id = #{id};
- -- [enableStorePlatform]
- update $table$ set enableStatue = #{enablestatue},updateBy = #{updateby},
- updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
|