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