SupplierDao.dql 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. -- [addOutSupplierInfo]
  2. insert into $table$ (id,supplierName,supplierCode, supplierKind, supplierType,
  3. supplierContent, factoryAddress, createMan,
  4. settleKind, remark, shortPinyin,
  5. principal, linkMan,
  6. linkPhone, voidFlag, createBy,
  7. createTime, updateBy,
  8. updateTime) values ( #{id},#{suppliername}, #{suppliercode}, #{supplierkind}, #{suppliertype},
  9. #{suppliercontent}, #{factoryaddress}, #{createman},
  10. #{settlekind}, #{remark}, #{shortpinyin},
  11. #{principal}, #{linkman},
  12. #{linkphone}, #{voidflag}, #{createby},
  13. #{createtime}, #{updateby},
  14. #{updatetime});
  15. -- [updateSupplierInfo]
  16. update $table$ set supplierCode = #{suppliercode},
  17. supplierName = #{suppliername}, supplierKind = #{supplierkind},
  18. supplierType = #{suppliertype},supplierContent = #{suppliercontent},
  19. factoryAddress = #{factoryaddress},createMan = #{createman},settleKind = #{settlekind},remark = #{remark},
  20. shortPinyin = #{shortpinyin},principal = #{principal},linkMan = #{linkman},
  21. linkPhone = #{linkphone},voidFlag = #{voidflag},createBy = #{createby},createTime = #{createtime},
  22. updateBy = #{updateby},updateTime = #{updatetime}
  23. where id = #{id};
  24. -- [voidSupplierInfo]
  25. update $table$ set
  26. voidFlag = #{voidflag},
  27. updateBy = #{updateby},
  28. updateTime = #{updatetime}
  29. where id = #{id};
  30. -- [querySupplierInfo]
  31. select * from $table$;