2
0

3 Commits fd9a31f1dd ... 46112e5079

Autor SHA1 Mensagem Data
  EricKIm 46112e5079 240924-1718-Kim há 1 mês atrás
  wngur6076 fd9a31f1dd t há 2 meses atrás
  wngur6076 42c7aa7035 t há 2 meses atrás

+ 0 - 5
.idea/.gitignore

@@ -1,5 +0,0 @@
-# 디폴트 무시된 파일
-/shelf/
-/workspace.xml
-# 에디터 기반 HTTP 클라이언트 요청
-/httpRequests/

+ 0 - 8
.idea/modules.xml

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ProjectModuleManager">
-    <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/useful-qry.iml" filepath="$PROJECT_DIR$/.idea/useful-qry.iml" />
-    </modules>
-  </component>
-</project>

+ 0 - 12
.idea/useful-qry.iml

@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="WEB_MODULE" version="4">
-  <component name="NewModuleRootManager">
-    <content url="file://$MODULE_DIR$">
-      <excludeFolder url="file://$MODULE_DIR$/temp" />
-      <excludeFolder url="file://$MODULE_DIR$/.tmp" />
-      <excludeFolder url="file://$MODULE_DIR$/tmp" />
-    </content>
-    <orderEntry type="inheritedJdk" />
-    <orderEntry type="sourceFolder" forTests="false" />
-  </component>
-</module>

+ 0 - 6
.idea/vcs.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="VcsDirectoryMappings">
-    <mapping directory="$PROJECT_DIR$" vcs="Git" />
-  </component>
-</project>

+ 9 - 13
function-in-db/procedures/dash_board/shop_dash/lt1_shop_dash_2_left_top.sql

@@ -1,11 +1,11 @@
 drop procedure if exists lt1_shop_dash_2_left_top;
 
 DELIMITER //
-CREATE PROCEDURE lt1_shop_dash_2_left_top( _listToken varchar(21), _sdate varchar(8), _edate varchar(8), 
-_s1 varchar(32), _e1 varchar(32), _s2 varchar(32), _e2 varchar(32), 
-_s3 varchar(32), _e3 varchar(32), _s4 varchar(32), _e4 varchar(32), 
-_having varchar(386), _orderby varchar(64), 
-_branch int, _storage int, _member_company_id int, _lt_filter int)
+CREATE PROCEDURE lt1_shop_dash_2_left_top( _listToken varchar(21), _sdate varchar(8), _edate varchar(8),
+                                              _s1 varchar(32), _e1 varchar(32), _s2 varchar(32), _e2 varchar(32),
+                                              _s3 varchar(32), _e3 varchar(32), _s4 varchar(32), _e4 varchar(32),
+                                              _where varchar(386), _having varchar(386), _orderby varchar(64),
+                                              _branch int, _storage int)
 BEGIN
 
 -- 로컬 변수 선언
@@ -55,7 +55,6 @@ SELECT
         END
     ) AS c2,
     CONCAT(
-    IF(COUNT(*) = 0, 0,
         FLOOR(
             COUNT(
                 CASE
@@ -65,10 +64,9 @@ SELECT
                     THEN mx.id
                 END
             ) * 100 / COUNT(*)
-        )
-    ),
-    '%'
-) AS c3
+        ),
+        '%'
+    ) AS c3
 FROM
     dbr_sorder AS mx;
 
@@ -77,6 +75,4 @@ END //
 DELIMITER ;
 
 CALL lt1_shop_dash_2_left_top('', '', '', '', '', '', '', '',
-'', '', '', '', '', 1, 1, 1, 1);
-
-
+'', '', '', '', '', '', 1, 1);

+ 6 - 5
function-in-db/procedures/dash_board/shop_dash/lt1_shop_dash_order_delayed.sql

@@ -1,11 +1,12 @@
 drop procedure if exists lt1_shop_dash_order_delayed;
 
 DELIMITER //
-CREATE PROCEDURE lt1_shop_dash_order_delayed( _listToken varchar(21), _sdate varchar(8), _edate varchar(8), 
-_s1 varchar(32), _e1 varchar(32), _s2 varchar(32), _e2 varchar(32), 
-_s3 varchar(32), _e3 varchar(32), _s4 varchar(32), _e4 varchar(32), 
-_having varchar(386), _orderby varchar(64), 
-_branch int, _storage int, _member_company_id int, _lt_filter int)
+CREATE PROCEDURE lt1_shop_dash_order_delayed( _listToken varchar(21), _sdate varchar(8), _edate varchar(8),
+                                              _s1 varchar(32), _e1 varchar(32), _s2 varchar(32), _e2 varchar(32),
+                                              _s3 varchar(32), _e3 varchar(32), _s4 varchar(32), _e4 varchar(32),
+                                              _where varchar(386), _having varchar(386), _orderby varchar(64),
+                                              _branch int, _storage int)
+SQL SECURITY INVOKER
 BEGIN
 
 -- 로컬 변수 선언

+ 5 - 5
function-in-db/procedures/dash_board/shop_dash/lt1_shop_sales_statistics_graph.sql

@@ -1,11 +1,11 @@
 drop procedure if exists lt1_shop_sales_statistics_graph;
 
 DELIMITER //
-CREATE PROCEDURE lt1_shop_sales_statistics_graph( _listToken varchar(21), _sdate varchar(8), _edate varchar(8), 
-_s1 varchar(32), _e1 varchar(32), _s2 varchar(32), _e2 varchar(32), 
-_s3 varchar(32), _e3 varchar(32), _s4 varchar(32), _e4 varchar(32), 
-_having varchar(386), _orderby varchar(64), 
-_branch int, _storage int, _member_company_id int, _lt_filter int)
+CREATE PROCEDURE lt1_shop_sales_statistics_graph( _listToken varchar(21), _sdate varchar(8), _edate varchar(8),
+                                              _s1 varchar(32), _e1 varchar(32), _s2 varchar(32), _e2 varchar(32),
+                                              _s3 varchar(32), _e3 varchar(32), _s4 varchar(32), _e4 varchar(32),
+                                              _where varchar(386), _having varchar(386), _orderby varchar(64),
+                                              _branch int, _storage int)
 BEGIN
 	  DECLARE start_date varchar(8);
 	  DECLARE end_date varchar(8);

+ 8 - 7
function-in-db/procedures/dash_board/shop_dash/zds_door_sales_cancel_month.sql

@@ -1,11 +1,12 @@
 drop procedure if exists zds_door_sales_cancel_month;
 
 DELIMITER //
-CREATE PROCEDURE zds_door_sales_cancel_month( _listToken varchar(21), _sdate varchar(8), _edate varchar(8), 
-_s1 varchar(32), _e1 varchar(32), _s2 varchar(32), _e2 varchar(32), 
-_s3 varchar(32), _e3 varchar(32), _s4 varchar(32), _e4 varchar(32), 
-_having varchar(386), _orderby varchar(64), 
-_branch int, _storage int, _member_company_id int, _lt_filter int)
+CREATE PROCEDURE zds_door_sales_cancel_month( _listToken varchar(21), _sdate varchar(8), _edate varchar(8),
+                                              _s1 varchar(32), _e1 varchar(32), _s2 varchar(32), _e2 varchar(32),
+                                              _s3 varchar(32), _e3 varchar(32), _s4 varchar(32), _e4 varchar(32),
+                                              _where varchar(386), _having varchar(386), _orderby varchar(64),
+                                              _branch int, _storage int)
+SQL SECURITY INVOKER
 BEGIN
 	  DECLARE start_date varchar(8);
 	  DECLARE end_date varchar(8);
@@ -52,7 +53,7 @@ FROM (
     SUM(sorder_qty) as sum_sorder_qty
     FROM dbr_sorder as mx
     INNER JOIN dbr_sorder_bd as mb ON mx.id = mb.sorder_id
-       WHERE mx.seller_id = _member_company_id and sorder_date >= previous_month_start_date and sorder_date <= previous_month_end_date
+       WHERE true and seller_id = 88  and sorder_date between '20240801' and '20240831' 
     GROUP BY seller_id, item_id
     ) as june_data ON mc.id = june_data.seller_id AND md.id = june_data.item_id
     LEFT JOIN (
@@ -62,7 +63,7 @@ FROM (
     SUM(CASE WHEN mx.status = 'C' THEN sorder_qty ELSE 0 END) AS sum_sorder_claim_qty
     FROM dbr_sorder as mx
     INNER JOIN dbr_sorder_bd as mb ON mx.id = mb.sorder_id
-      WHERE mx.seller_id = _member_company_id and sorder_date >= start_date and sorder_date <= end_date
+      WHERE true and seller_id = 88  and sorder_date between '20240801' and '20240831' 
     GROUP BY seller_id, item_id
     ) as july_data ON mc.id = july_data.seller_id AND md.id = july_data.item_id
     WHERE me.cgroup_code = 'A-0001'

+ 0 - 0
function-in-db/procedures/stock-io/lt1-stock-io-sum-bal-bf-turbo.sql → function-in-db/procedures/stock-io/trash/lt1-stock-io-sum-bal-bf-turbo.sql


+ 0 - 0
function-in-db/procedures/stock-io/pl1_stock_io_ledger_detail-bf-turbo.sql → function-in-db/procedures/stock-io/trash/pl1_stock_io_ledger_detail-bf-turbo.sql


+ 0 - 0
function-in-db/procedures/stock-io/stock_io_act.sql → function-in-db/procedures/stock-io/trash/stock_io_act.sql


+ 0 - 0
function-in-db/procedures/stock-io/stock_io_sync.sql → function-in-db/procedures/stock-io/trash/stock_io_sync.sql


+ 3 - 0
table-controls/md5-user_menu.sql

@@ -0,0 +1,3 @@
+UPDATE dbr_user_menu
+SET tabbed_menu_hash = MD5(concat(page_uri,para_name))
+WHERE 1

+ 1 - 1
z-tmp.sql

@@ -1,4 +1,4 @@
-drop table if exists crm_kkcoupon;
+
 CREATE TABLE `crm_kkcoupon` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `created_on` bigint(20) NOT NULL DEFAULT 0 COMMENT '요청일시',