You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

131 lines
5.2 KiB

  1. 2017-01-07 18:33:42 select base_supplier:SELECT
  2. id,
  3. supplier_name,
  4. area_id,
  5. is_disabled,
  6. supplier_type
  7. FROM
  8. base_supplier a
  9. WHERE
  10. cancel_flag = 0
  11. AND supplier_type = 187
  12. LIMIT 0,10
  13. 2017-01-07 18:33:42 count:SELECT
  14. a.id
  15. FROM
  16. base_supplier AS a,
  17. base_supplier_purchase AS b
  18. WHERE
  19. a.id = b.supplier_id
  20. AND a.cancel_flag = 0
  21. AND b.cancel_flag = 0
  22. GROUP BY
  23. b.supplier_id
  24. 2017-01-07 18:33:42 select base_area:SELECT
  25. id,
  26. area_name
  27. FROM
  28. base_area
  29. WHERE
  30. id in(792,923,810)
  31. 2017-01-07 18:33:44 select base_area:SELECT
  32. id,
  33. area_name
  34. FROM
  35. base_area
  36. WHERE
  37. parent_id = 0
  38. 2017-01-07 18:33:44 select base_area:SELECT
  39. id,
  40. area_name
  41. FROM
  42. base_area
  43. WHERE
  44. parent_id = 1
  45. 2017-01-07 18:33:45 check base_supplier:SELECT
  46. supplier_name
  47. FROM
  48. base_supplier
  49. WHERE
  50. cancel_flag = 0
  51. AND supplier_type = 187
  52. AND supplier_name = '南京大吉温泉度假村'
  53. 2017-01-07 18:33:47 select base_area:SELECT
  54. id,
  55. area_name
  56. FROM
  57. base_area
  58. WHERE
  59. parent_id = 809
  60. 2017-01-07 18:34:08 INSERT INTO base_supplier:INSERT INTO base_supplier (
  61. create_user_id,
  62. create_time,
  63. supplier_type,
  64. supplier_name,
  65. area_id,
  66. company_name,
  67. is_disabled,
  68. sett_type,
  69. sett_frequency,
  70. account_bank,
  71. account_num,
  72. account_name
  73. )
  74. VALUES
  75. (284,'2017-01-07 18:34:08',187,'南京大吉温泉度假村',810,'南京大吉温泉度假村',0,288,295,'','','')
  76. 2017-01-07 18:34:08 INSERT INTO base_supplier_purchase:INSERT INTO base_supplier_purchase (
  77. create_user_id,
  78. create_time,
  79. supplier_id,
  80. product_type,
  81. purchaser_name
  82. )
  83. VALUES (284,'2017-01-07 18:34:08',1157,25,'施宇峰')
  84. 2017-01-07 18:34:08 INSERT INTO base_supplier_link:INSERT INTO base_supplier_link (
  85. create_user_id,
  86. create_time,
  87. supplier_id,
  88. link_name,
  89. contact_name,
  90. contact_mobile,
  91. contact_telphone,
  92. fax,
  93. email,
  94. remark
  95. )
  96. VALUES (284,'2017-01-07 18:34:08',1157,'销售','施宇峰','','','','','')
  97. 2017-01-07 18:34:10 select base_supplier:SELECT
  98. id,
  99. supplier_name,
  100. area_id,
  101. is_disabled,
  102. supplier_type
  103. FROM
  104. base_supplier a
  105. WHERE
  106. cancel_flag = 0
  107. AND supplier_type = 187
  108. LIMIT 0,10
  109. 2017-01-07 18:34:10 count:SELECT
  110. a.id
  111. FROM
  112. base_supplier AS a,
  113. base_supplier_purchase AS b
  114. WHERE
  115. a.id = b.supplier_id
  116. AND a.cancel_flag = 0
  117. AND b.cancel_flag = 0
  118. GROUP BY
  119. b.supplier_id
  120. 2017-01-07 18:34:10 select base_area:SELECT
  121. id,
  122. area_name
  123. FROM
  124. base_area
  125. WHERE
  126. id in(792,923,810)