From 1137c1782e1e3bc667ba0222c71321413252410f Mon Sep 17 00:00:00 2001 From: wen <1455474577@qq.com> Date: Tue, 4 Jan 2022 09:58:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89Mapper.xml=E4=B8=AD=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/XhpcChargingStationMapper.xml | 851 ------------------ .../resources/mapper/XhpcOperatorMapper.xml | 325 ------- 2 files changed, 1176 deletions(-) diff --git a/xhpc-modules/xhpc-invoice/src/main/resources/mapper/XhpcChargingStationMapper.xml b/xhpc-modules/xhpc-invoice/src/main/resources/mapper/XhpcChargingStationMapper.xml index fdbfa050..7db564cb 100644 --- a/xhpc-modules/xhpc-invoice/src/main/resources/mapper/XhpcChargingStationMapper.xml +++ b/xhpc-modules/xhpc-invoice/src/main/resources/mapper/XhpcChargingStationMapper.xml @@ -63,860 +63,9 @@ from xhpc_charging_station - - - - - - - - insert into xhpc_charging_station - - charging_station_id, - name, - operator_id, - type, - construction_site, - service_facilities, - periphery_facilities, - area_code, - address, - detailed_address, - longitude, - latitude, - parking_instructions, - serial_number, - client_visible, - status, - del_flag, - create_time, - create_by, - update_time, - update_by, - remark, - rate_model_id, - - - #{chargingStationId}, - #{name}, - #{operatorId}, - #{type}, - #{constructionSite}, - #{serviceFacilities}, - #{peripheryFacilities}, - #{areaCode}, - #{address}, - #{detailedAddress}, - #{longitude}, - #{latitude}, - #{parkingInstructions}, - #{serialNumber}, - #{clientVisible}, - #{status}, - #{delFlag}, - #{createTime}, - #{createBy}, - #{updateTime}, - #{updateBy}, - #{remark}, - #{rateModelId}, - - - - - update xhpc_charging_station - - name = #{name}, - operator_id = #{operatorId}, - type = #{type}, - construction_site = #{constructionSite}, - service_facilities = #{serviceFacilities}, - periphery_facilities = #{peripheryFacilities}, - area_code = #{areaCode}, - address = #{address}, - detailed_address = #{detailedAddress}, - longitude = #{longitude}, - latitude = #{latitude}, - parking_instructions = #{parkingInstructions}, - serial_number = #{serialNumber}, - client_visible = #{clientVisible}, - status = #{status}, - del_flag = #{delFlag}, - create_time = #{createTime}, - create_by = #{createBy}, - update_time = #{updateTime}, - update_by = #{updateBy}, - remark = #{remark}, - rate_model_id = #{rateModelId}, - business_instructions = #{businessInstructions}, - reminder_instructions = #{reminderInstructions}, - img_id = #{imgId}, - station_type = #{stationType}, - operator_id_evcs = #{operatorIdEvcs}, - service_tel = #{serviceTel}, - park_nums = #{parkNums} - - where charging_station_id = #{chargingStationId} - - - - update xhpc_charging_station - set del_flag =1 - where charging_station_id = #{chargingStationId} - - - - update xhpc_charging_station set del_flag =1 where charging_station_id in - - #{chargingStationId} - - - - - update xhpc_charging_station - set status =#{status} - where charging_station_id = #{chargingStationId} - and del_flag = 0 - - - - update xhpc_charging_station - set client_visible =#{clientVisible} - where charging_station_id = #{chargingStationId} - and del_flag = 0 - - - - - - - - - - - - - - - - - - - - - insert into xhpc_rate_model - - - status, - - - del_flag, - - - create_time, - - - create_by, - - - update_time, - - - update_by, - - - remark - - - - - #{status}, - - - #{delFlag}, - - - #{createTime}, - - - #{createBy}, - - - #{updateTime}, - - - #{updateBy}, - - - #{remark} - - - - - - insert into xhpc_charging_station - - - name, - - - operator_id, - - - type, - - - construction_site, - - - service_facilities, - - - periphery_facilities, - - - area_code, - - - address, - - - detailed_address, - - - longitude, - - - latitude, - - - parking_instructions, - - - serial_number, - - - client_visible, - - - rate_model_id, - - - img_id, - - - business_instructions, - - - reminder_instructions, - - - status, - - - del_flag, - - - create_time, - - - create_by, - - - update_time, - - - update_by, - - - remark, - - - station_type, - - - operator_id_evcs, - - - service_tel, - - - park_nums - - - - - #{name}, - - - #{operatorId}, - - - #{type}, - - - #{constructionSite}, - - - #{serviceFacilities}, - - - #{peripheryFacilities}, - - - #{areaCode}, - - - #{address}, - - - #{detailedAddress}, - - - #{longitude}, - - - #{latitude}, - - - #{parkingInstructions}, - - - #{serialNumber}, - - - #{clientVisible}, - - - #{rateModelId}, - - - #{imgId}, - - - #{businessInstructions}, - - - #{reminderInstructions}, - - - #{status}, - - - #{delFlag}, - - - #{createTime}, - - - #{createBy}, - - - #{updateTime}, - - - #{updateBy}, - - - #{remark}, - - - #{stationType}, - - - #{operatorIdEvcs}, - - - #{serviceTel}, - - - #{parkNums} - - - - - - insert into xhpc_rate - - - charging_station_id, - - - power_fee, - - - service_fee, - - - name, - - - del_flag, - - - create_time, - - - create_by, - - - update_time, - - - update_by, - - - remark, - - - rate_value, - - - rate_model_id - - - - - #{chargingStationId}, - - - #{powerFee}, - - - #{serviceFee}, - - - #{name}, - - - #{status}, - - - #{delFlag}, - - - #{createTime}, - - - #{createBy}, - - - #{updateTime}, - - - #{updateBy}, - - - #{remark}, - - - #{rateValue}, - - - #{rateModelId} - - - - - - - - insert into xhpc_rate_time - - - charging_station_id, - - - rate_id, - - - start_time, - - - end_time, - - - rate_model_id, - - - sort, - - - status, - - - del_flag, - - - create_time, - - - create_by, - - - update_time, - - - update_by, - - - remark, - - - type, - - - rate_value - - - - - #{chargingStationId}, - - - #{rateId}, - - - #{startTime}, - - - #{endTime}, - - - #{rateModelId}, - - - #{sort}, - - - #{status}, - - - #{delFlag}, - - - #{createTime}, - - - #{createBy}, - - - #{updateTime}, - - - #{updateBy}, - - - #{remark}, - - - #{type}, - - - #{rateValue} - - - - - - - - - - - - update xhpc_rate - set del_flag =1 - where charging_station_id = #{chargingStationId} - and del_flag = 0 - - - - update xhpc_rate_time - set del_flag =1 - where charging_station_id = #{chargingStationId} - and del_flag = 0 - - - - - - - - update xhpc_charging_pile - set rate_model_id=#{rateModelId} - WHERE charging_station_id = #{chargingStationId} - - - - update xhpc_terminal - set rate_model_id=#{rateModelId} - WHERE charging_station_id = #{chargingStationId} - - - - - - insert into xhpc_user_privilege( - - user_id, - - - charging_station_id - - )values( - - #{userId}, - - - #{chargingStationId} - - ) - diff --git a/xhpc-modules/xhpc-invoice/src/main/resources/mapper/XhpcOperatorMapper.xml b/xhpc-modules/xhpc-invoice/src/main/resources/mapper/XhpcOperatorMapper.xml index 7e0568e3..0b82fb81 100644 --- a/xhpc-modules/xhpc-invoice/src/main/resources/mapper/XhpcOperatorMapper.xml +++ b/xhpc-modules/xhpc-invoice/src/main/resources/mapper/XhpcOperatorMapper.xml @@ -51,236 +51,6 @@ xo.create_by createBy, xo.update_time updateTime, xo.update_by updateBy, xo.remark, - - insert into xhpc_operator - - - name, - - - contact_name, - - - contact_phone, - - - phone, - - - attribute, - - - duty_paragraph, - - - detailed_address, - - - open_bank, - - - card_number, - - - area_code, - - - address, - - - longitude, - - - latitude, - - - email, - - - commission_type, - - - platform_commission_rate, - - - maintenance_commission_rate, - - - business_license_id, - - - withdrawal_time, - - - soc, - - - status, - - - del_flag, - - - create_time, - - - create_by, - - - update_time, - - - update_by, - - - remark, - - - operator_id_evcs - - - - - #{name}, - - - #{contactName}, - - - #{contactPhone}, - - - #{phone}, - - - #{attribute}, - - - #{dutyParagraph}, - - - #{detailedAddress}, - - - #{openBank}, - - - #{cardNumber}, - - - #{areaCode}, - - - #{address}, - - - #{longitude}, - - - #{latitude}, - - - #{email}, - - - #{commissionType}, - - - #{platformCommissionRate}, - - - #{maintenanceCommissionRate}, - - - #{businessLicenseId}, - - - #{withdrawalTime}, - - - #{soc}, - - - #{status}, - - - #{delFlag}, - - - #{createTime}, - - - #{createBy}, - - - #{updateTime}, - - - #{updateBy}, - - - #{remark}, - - - #{operatorIdEvcs} - - - - - - UPDATE xhpc_operator - - operator_id = #{operatorId}, - name = #{name}, - contact_name = #{contactName}, - contact_phone = #{contactPhone}, - phone = #{phone}, - attribute = #{attribute}, - open_bank = #{openBank}, - card_number = #{cardNumber}, - area_code = #{areaCode}, - address = #{address}, - longitude = #{longitude}, - latitude = #{latitude}, - email = #{email}, - commission_type = #{commissionType}, - platform_commission_rate = - #{platformCommissionRate}, - - maintenance_commission_rate - = #{maintenanceCommissionRate}, - - business_license_id = - #{businessLicenseId}, - - withdrawal_time = #{withdrawalTime}, - soc = #{soc}, - status = #{status}, - del_flag = #{delFlag}, - create_time = #{createTime}, - create_by = #{createBy}, - update_time = #{updateTime}, - update_by = #{updateBy}, - remark = #{remark}, - operator_id_evcs = #{operatorIdEvcs} - - WHERE operator_id = #{operatorId} - - - - delete from xhpc_operator where operator_id in - - #{ids} - - - - - - - - - delete - from sys_user_role - where user_id = #{userId} - - - - delete - from sys_user_post - where user_id = #{userId} - - - - update sys_user - set del_flag = #{delFlag} - where user_id = #{userId} - - - - - - - - - delete - from sys_role - where role_name = #{roleName} -