parent
b7bbf22f3b
commit
d4b336e534
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
<sqlMap namespace="com.backoffice.m.bf_bottle">
|
||||
|
||||
<insert id="insert_tbl_cart" parameterClass="dataMap">
|
||||
INSERT tbl_cart
|
||||
(
|
||||
reg_dt
|
||||
,member_id
|
||||
,title
|
||||
<isNotEmpty property="di_no">,di_no</isNotEmpty>
|
||||
<isNotEmpty property="dbi_no">,dbi_no</isNotEmpty>
|
||||
<isNotEmpty property="dbc_no">,dbc_no</isNotEmpty>
|
||||
) VALUES (
|
||||
NOW()
|
||||
,#member_id#
|
||||
,#title#
|
||||
<isNotEmpty property="di_no">,#di_no#</isNotEmpty>
|
||||
<isNotEmpty property="dbi_no">,#dbi_no#</isNotEmpty>
|
||||
<isNotEmpty property="dbc_no">,#dbc_no#</isNotEmpty>
|
||||
)
|
||||
|
||||
<selectKey resultClass="Integer" keyProperty="primaryKey">
|
||||
SELECT LAST_INSERT_ID();
|
||||
</selectKey>
|
||||
</insert>
|
||||
|
||||
</sqlMap>
|
@ -0,0 +1,89 @@
|
||||
<#include "/m/include/index_top.ftl">
|
||||
|
||||
<link rel="stylesheet" href="${URL_STATIC_ROOT}/m/css/swiper.min.css">
|
||||
<script src="${URL_STATIC_ROOT}/m/js/swiper.min.js"></script>
|
||||
<script src="${URL_STATIC_ROOT}/m/js/jquery_popupoverlay.js"></script>
|
||||
<script src="${URL_STATIC_ROOT}/m/js/design.js"></script>
|
||||
|
||||
<body class="bg_nutrition">
|
||||
|
||||
<!-- wrap -->
|
||||
<div class="wrap">
|
||||
|
||||
<!-- header_sub -->
|
||||
<header class="header_wrapper">
|
||||
<a href="javascript:back.return_url();" class="side_Lbtn hidden pre_btn">이전으로</a>
|
||||
<h1 class="header_title">모유/젖병</h1>
|
||||
<div class="side_Rbtn">
|
||||
</div>
|
||||
</header>
|
||||
<!-- //header_sub -->
|
||||
|
||||
<!-- main_nutrition -->
|
||||
<main class="main_nutrition">
|
||||
|
||||
<!-- nutrition_search_main -->
|
||||
<div class="nutrition_search_main">
|
||||
|
||||
<div class="cart_list_btn">
|
||||
<a href="#" id="save">저장</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- //nutrition_search_main -->
|
||||
|
||||
</main>
|
||||
<!-- //main_nutrition -->
|
||||
|
||||
</div>
|
||||
<!-- //wrap -->
|
||||
|
||||
<!-- 하단 네비 iyu_nav -->
|
||||
<#include "/m/include/index_bottom_menu.ftl">
|
||||
<!-- //iyu_nav -->
|
||||
|
||||
<#include "/m/bf_food/include_return_url.ftl">
|
||||
|
||||
</body>
|
||||
<#include "/m/include/index_bottom.ftl">
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
$(function() { //전체선택 체크박스 클릭
|
||||
$("#save").click(function() {
|
||||
debugger;
|
||||
$.ajax({
|
||||
url:'/m/bf_bottle/list_db_test_milk_input',
|
||||
type:'get',
|
||||
data: {
|
||||
"second" : "30"
|
||||
,"minute" : "4"
|
||||
},
|
||||
dataType:'json',
|
||||
}).done(function(result) {
|
||||
console.log(result)
|
||||
if (result === undefined){
|
||||
Swal.fire({text: '오류가 발생했습니다.'})
|
||||
}else{
|
||||
if(result.rm_child){
|
||||
$("#child_nm").text(result.rm_child.name)
|
||||
}else{
|
||||
$("span[name=child_nm]").text('')
|
||||
}
|
||||
|
||||
if(result.RESULT == 7){
|
||||
Swal.fire({text: '로그인 세션이 만료되었습니다.'}).then((result)=>{ window.location.href = '${URL_ROOT}/m/index.do' })
|
||||
}
|
||||
}
|
||||
}.bind(this))
|
||||
alert("????");
|
||||
})
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
</html>
|
Loading…
Reference in new issue