From f605775ba74c97cca1218ac4d09d0db4ba3b17dc Mon Sep 17 00:00:00 2001 From: cherishsince Date: Fri, 1 May 2020 10:48:47 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=8F=90=E4=BA=A4=EF=BC=9Aaddress=20.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/UserAddress.xml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 system/system-biz/src/main/resources/mapper/UserAddress.xml diff --git a/system/system-biz/src/main/resources/mapper/UserAddress.xml b/system/system-biz/src/main/resources/mapper/UserAddress.xml new file mode 100644 index 000000000..2e7af6d27 --- /dev/null +++ b/system/system-biz/src/main/resources/mapper/UserAddress.xml @@ -0,0 +1,72 @@ + + + + + + id, user_id, area_no, `name`, mobile, address, + create_time, update_time, has_default, deleted + + + + INSERT INTO user_address ( + user_id, area_no, `name`, mobile, address, + create_time, update_time, has_default, deleted + ) VALUES ( + #{userId}, #{areaNo}, #{name}, #{mobile}, #{address}, + #{createTime}, #{updateTime}, #{hasDefault}, #{deleted} + ) + + + + UPDATE user_address + + + , area_no = #{userAddressDO.areaNo} + + + , `name` = #{userAddressDO.name} + + + , mobile = #{userAddressDO.mobile} + + + , address = #{userAddressDO.address} + + + , update_time = #{userAddressDO.updateTime} + + + , has_default = #{userAddressDO.hasDefault} + + + , deleted = #{userAddressDO.deleted} + + + WHERE id = #{id} + + + + + + + + \ No newline at end of file