diff --git a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/OccupyOrderController.java b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/OccupyOrderController.java index 2f7d58c9f..93e7cb082 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/OccupyOrderController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/OccupyOrderController.java @@ -1,7 +1,108 @@ -package com.jsowell.api.uniapp;/** - * TODO +package com.jsowell.api.uniapp; + +import com.alibaba.fastjson2.JSON; +import com.google.common.collect.ImmutableMap; +import com.jsowell.common.annotation.Anonymous; +import com.jsowell.common.core.controller.BaseController; +import com.jsowell.common.enums.ykc.ReturnCodeEnum; +import com.jsowell.common.exception.BusinessException; +import com.jsowell.common.response.RestApiResponse; +import com.jsowell.common.util.StringUtils; +import com.jsowell.pile.domain.OrderPileOccupy; +import com.jsowell.pile.dto.GenerateOccupyOrderDTO; +import com.jsowell.pile.service.OrderPileOccupyService; +import com.jsowell.pile.vo.uniapp.OrderPileOccupyVO; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import java.util.List; + +/** + * 占桩订单controller * + * @author Lemon * @Date 2023/8/18 8:55 - * @author Lemon - */public class OccupyOrderController { + */ +@Anonymous +@RestController +@RequestMapping("/uniapp/occupyOrder") +public class OccupyOrderController extends BaseController { + @Autowired + private OrderPileOccupyService orderPileOccupyService; + + /** + * 查询站点占桩费率 + * @param stationId + * @return + */ + @GetMapping("/getStationOccupyFee/{stationId}") + public RestApiResponse getStationOccupyFee(@PathVariable("stationId") String stationId) { + logger.info("查询站点占桩费率 params:{}", stationId); + RestApiResponse response = null; + try { + + } catch (Exception e) { + logger.error("查询站点占桩费率 error,", e); + response = new RestApiResponse<>(e); + } + logger.info("查询站点占桩费率 result:{}", response); + return response; + } + + + /** + * 生成占桩订单 + * https://api.jsowellcloud.com/uniapp/occupyOrder/generateOccupyOrder + * @param request + * @param dto + * @return + */ + @PostMapping("/generateOccupyOrder") + public RestApiResponse generateOccupyOrder(HttpServletRequest request, @RequestBody GenerateOccupyOrderDTO dto) { + logger.info("生成占桩订单 params:{}", JSON.toJSONString(dto)); + RestApiResponse response = null; + try { + // 获取memberId + String memberId = getMemberIdByAuthorization(request); + if (StringUtils.isEmpty(memberId)) { + throw new BusinessException(ReturnCodeEnum.CODE_TOKEN_ERROR); + } + dto.setMemberId(memberId); + String occupyOrderCode = orderPileOccupyService.generateOccupyPileOrder(dto); + if (StringUtils.isNotBlank(occupyOrderCode)) { + response = new RestApiResponse<>(ImmutableMap.of("occupyOrderCode", occupyOrderCode)); + } + } catch (Exception e) { + logger.error("生成占桩订单 error,", e); + response = new RestApiResponse<>(e); + } + logger.info("生成占桩订单 result:{}", response); + return response; + } + + // 查询占桩订单列表页 + @GetMapping("/getOccupyOrderInfo") + public RestApiResponse getOccupyOrderInfo(HttpServletRequest request) { + // 获取memberId + String memberId = getMemberIdByAuthorization(request); + if (StringUtils.isEmpty(memberId)) { + throw new BusinessException(ReturnCodeEnum.CODE_TOKEN_ERROR); + } + logger.info("查询占桩订单列表页 memberId:{}", memberId); + RestApiResponse response = null; + try { + List orderInfoList = orderPileOccupyService.getOccupyOrderInfo(memberId); + response = new RestApiResponse<>(orderInfoList); + } catch (Exception e) { + logger.error("查询占桩订单列表页 error, ", e); + response = new RestApiResponse<>(e); + } + logger.info("查询占桩订单列表页 result:{}", response); + return response; + } + + + + // 查询占桩订单详情页 } diff --git a/jsowell-admin/src/test/java/SpringBootTestController.java b/jsowell-admin/src/test/java/SpringBootTestController.java index 26858f477..4ad029699 100644 --- a/jsowell-admin/src/test/java/SpringBootTestController.java +++ b/jsowell-admin/src/test/java/SpringBootTestController.java @@ -208,7 +208,12 @@ public class SpringBootTestController { String memberId = "67569684"; String pileSn = "88230000000135"; String connectorCode = "01"; - orderPileOccupyService.generateOccupyPileOrder(memberId, pileSn, connectorCode); + GenerateOccupyOrderDTO dto = new GenerateOccupyOrderDTO(); + dto.setMemberId(memberId); + dto.setPileSn(pileSn); + dto.setConnectorCode(connectorCode); + + orderPileOccupyService.generateOccupyPileOrder(dto); } @Test diff --git a/jsowell-common/src/main/java/com/jsowell/common/enums/uniapp/OrderPileOccupyPayStatusEnum.java b/jsowell-common/src/main/java/com/jsowell/common/enums/uniapp/OrderPileOccupyPayStatusEnum.java new file mode 100644 index 000000000..38cd53f47 --- /dev/null +++ b/jsowell-common/src/main/java/com/jsowell/common/enums/uniapp/OrderPileOccupyPayStatusEnum.java @@ -0,0 +1,52 @@ +package com.jsowell.common.enums.uniapp; + +/** + * 占桩订单支付状态enum + * + * @author Lemon + * @Date 2023/8/18 9:49 + */ +public enum OrderPileOccupyPayStatusEnum { + UN_PAY("0", "未支付"), + PAYMENT_COMPLETION("1", "未支付"), + NO_PAYMENT_REQUIRED("2", "无需支付"), + ; + + private String code; + private String value; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + OrderPileOccupyPayStatusEnum(String code, String value) { + this.code = code; + this.value = value; + } + + /** + * 根据code获取value + * @param code + * @return + */ + public static String getValueByCode(String code) { + for (OrderPileOccupyPayStatusEnum item : OrderPileOccupyPayStatusEnum.values()) { + if (item.getCode().equals(code)) { + return item.getValue(); + } + } + return null; + } +} diff --git a/jsowell-common/src/main/java/com/jsowell/common/enums/uniapp/OrderPileOccupyStatusEnum.java b/jsowell-common/src/main/java/com/jsowell/common/enums/uniapp/OrderPileOccupyStatusEnum.java new file mode 100644 index 000000000..48c2728c9 --- /dev/null +++ b/jsowell-common/src/main/java/com/jsowell/common/enums/uniapp/OrderPileOccupyStatusEnum.java @@ -0,0 +1,52 @@ +package com.jsowell.common.enums.uniapp; + +/** + * 占桩订单enum + * + * @author Lemon + * @Date 2023/8/18 9:41 + */ +public enum OrderPileOccupyStatusEnum { + OCCUPIED("0", "占桩中"), + ORDER_COMPLETE("1", "订单完成"), + ORDER_HANG_UP("2", "订单挂起"), + ; + + private String code; + private String value; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + OrderPileOccupyStatusEnum(String code, String value) { + this.code = code; + this.value = value; + } + + /** + * 根据code获取value + * @param code + * @return + */ + public static String getValueByCode(String code) { + for (OrderPileOccupyStatusEnum item : OrderPileOccupyStatusEnum.values()) { + if (item.getCode().equals(code)) { + return item.getValue(); + } + } + return null; + } +} diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/dto/GenerateOccupyOrderDTO.java b/jsowell-pile/src/main/java/com/jsowell/pile/dto/GenerateOccupyOrderDTO.java index e3586a308..8e3393375 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/dto/GenerateOccupyOrderDTO.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/dto/GenerateOccupyOrderDTO.java @@ -1,7 +1,24 @@ -package com.jsowell.pile.dto;/** - * TODO +package com.jsowell.pile.dto; + +import lombok.Data; + +/** + * 生成占桩订单DTO * + * @author Lemon * @Date 2023/8/18 9:00 - * @author Lemon - */public class GenerateOccupyOrderDTO { + */ +@Data +public class GenerateOccupyOrderDTO { + private String memberId; + + /** + * 桩号 + */ + private String pileSn; + + /** + * 枪口号 + */ + private String connectorCode; } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderPileOccupyMapper.java b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderPileOccupyMapper.java index 2feb2ae6f..d3643c1ce 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderPileOccupyMapper.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/OrderPileOccupyMapper.java @@ -2,6 +2,7 @@ package com.jsowell.pile.mapper; import com.jsowell.pile.domain.OrderPileOccupy; import com.jsowell.pile.dto.QueryOccupyOrderDTO; +import com.jsowell.pile.vo.uniapp.OrderPileOccupyVO; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -83,4 +84,11 @@ public interface OrderPileOccupyMapper { * @return */ List queryUnPayOrderByMemberId(@Param("memberId") String memberId); + + /** + * 查询占桩订单列表 + * @param memberId + * @return + */ + List getOccupyOrderInfo(String memberId); } \ No newline at end of file diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/OrderPileOccupyService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/OrderPileOccupyService.java index 44ba4e6ab..f5aff87e6 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/OrderPileOccupyService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/OrderPileOccupyService.java @@ -1,7 +1,9 @@ package com.jsowell.pile.service; import com.jsowell.pile.domain.OrderPileOccupy; +import com.jsowell.pile.dto.GenerateOccupyOrderDTO; import com.jsowell.pile.dto.QueryOccupyOrderDTO; +import com.jsowell.pile.vo.uniapp.OrderPileOccupyVO; import java.util.List; public interface OrderPileOccupyService{ @@ -34,7 +36,7 @@ public interface OrderPileOccupyService{ /** * 生成占桩订单 */ - void generateOccupyPileOrder(String memberId, String pileSn, String connectorCode); + String generateOccupyPileOrder(GenerateOccupyOrderDTO dto); /** * 停止并计算占桩订单 @@ -49,4 +51,11 @@ public interface OrderPileOccupyService{ * @return */ List queryUnPayOrderByMemberId(String memberId); + + /** + * 查询占桩订单列表 + * @param memberId + * @return + */ + List getOccupyOrderInfo(String memberId); } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderPileOccupyServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderPileOccupyServiceImpl.java index 95ca25132..68ed41109 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderPileOccupyServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderPileOccupyServiceImpl.java @@ -2,10 +2,14 @@ package com.jsowell.pile.service.impl; import com.jsowell.common.constant.Constants; import com.jsowell.common.enums.DelFlagEnum; +import com.jsowell.common.enums.uniapp.OrderPileOccupyPayStatusEnum; +import com.jsowell.common.enums.uniapp.OrderPileOccupyStatusEnum; import com.jsowell.common.util.DateUtils; +import com.jsowell.common.util.PageUtils; import com.jsowell.common.util.StringUtils; import com.jsowell.common.util.id.IdUtils; import com.jsowell.pile.domain.OrderPileOccupy; +import com.jsowell.pile.dto.GenerateOccupyOrderDTO; import com.jsowell.pile.dto.QueryOccupyOrderDTO; import com.jsowell.pile.dto.QueryOrderDTO; import com.jsowell.pile.mapper.OrderPileOccupyMapper; @@ -14,6 +18,7 @@ import com.jsowell.pile.service.IPileBasicInfoService; import com.jsowell.pile.service.IPileBillingTemplateService; import com.jsowell.pile.service.OrderPileOccupyService; import com.jsowell.pile.vo.base.PileInfoVO; +import com.jsowell.pile.vo.uniapp.OrderPileOccupyVO; import com.jsowell.pile.vo.web.BillingTemplateVO; import com.jsowell.pile.vo.web.OrderListVO; import lombok.extern.slf4j.Slf4j; @@ -121,12 +126,13 @@ public class OrderPileOccupyServiceImpl implements OrderPileOccupyService{ /** * 生成占桩订单 * 在会员操作降地锁后,就生成占桩订单 - * @param memberId 会员id - * @param pileSn 充电桩编号 - * @param connectorCode 充电桩枪口号 + * @param dto 会员id 充电桩编号 充电桩枪口号 */ @Override - public void generateOccupyPileOrder(String memberId, String pileSn, String connectorCode) { + public String generateOccupyPileOrder(GenerateOccupyOrderDTO dto) { + String memberId = dto.getMemberId(); + String pileSn = dto.getPileSn(); + String connectorCode = dto.getConnectorCode(); // 创建占桩订单 OrderPileOccupy orderPileOccupy = new OrderPileOccupy(); String occupyCode = "OP" + IdUtils.getOrderCode(); @@ -144,6 +150,8 @@ public class OrderPileOccupyServiceImpl implements OrderPileOccupyService{ orderPileOccupy.setStartTime(DateUtils.getNowDate()); orderPileOccupy.setDelFlag(DelFlagEnum.NORMAL.getValue()); orderPileOccupyMapper.insertSelective(orderPileOccupy); + + return orderPileOccupy.getOccupyCode(); } /** @@ -260,5 +268,24 @@ public class OrderPileOccupyServiceImpl implements OrderPileOccupyService{ return orderPileOccupyMapper.queryUnPayOrderByMemberId(memberId); } + /** + * 查询占桩订单列表 + * @param memberId + * @return + */ + @Override + public List getOccupyOrderInfo(String memberId) { + // 分页 + PageUtils.startPage(); + List list = orderPileOccupyMapper.getOccupyOrderInfo(memberId); + for (OrderPileOccupyVO orderPileOccupyVO : list) { + // 订单状态 + orderPileOccupyVO.setStatus(OrderPileOccupyStatusEnum.getValueByCode(orderPileOccupyVO.getStatus())); + // 支付状态 + orderPileOccupyVO.setPayStatus(OrderPileOccupyPayStatusEnum.getValueByCode(orderPileOccupyVO.getPayStatus())); + } + return list; + } + } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java index 00b851cfa..5f93a7032 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java @@ -357,7 +357,7 @@ public class PileBillingTemplateServiceImpl implements IPileBillingTemplateServi } } } - log.info("通过站点id查询当前时间的收费详情 stationId:{}, result:{}", stationId, JSON.toJSONString(result)); + // log.info("通过站点id查询当前时间的收费详情 stationId:{}, result:{}", stationId, JSON.toJSONString(result)); return result; } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/vo/uniapp/OrderPileOccupyVO.java b/jsowell-pile/src/main/java/com/jsowell/pile/vo/uniapp/OrderPileOccupyVO.java new file mode 100644 index 000000000..93fdd6216 --- /dev/null +++ b/jsowell-pile/src/main/java/com/jsowell/pile/vo/uniapp/OrderPileOccupyVO.java @@ -0,0 +1,53 @@ +package com.jsowell.pile.vo.uniapp; + +import lombok.Data; + +/** + * 占桩订单列表VO + * + * @author Lemon + * @Date 2023/8/18 9:34 + */ +@Data +public class OrderPileOccupyVO { + /** + * 占桩订单编号 + */ + private String occupyCode; + + /** + * 状态(0-占桩中;1-订单完成; 2-订单挂起) + */ + private String status; + + /** + * 站点id + */ + private String stationId; + + /** + * 站点名称 + */ + private String stationName; + + /** + * 占桩开始时间 + */ + private String startTime; + + /** + * 占桩结束时间 + */ + private String endTime; + + /** + * 支付状态(0-未支付;1-支付完成;2-无需支付) + */ + private String payStatus; + + /** + * 占桩订单金额 + */ + private String orderAmount; + +} diff --git a/jsowell-pile/src/main/resources/mapper/pile/OrderPileOccupyMapper.xml b/jsowell-pile/src/main/resources/mapper/pile/OrderPileOccupyMapper.xml index 9ed6b79cf..9b7cb481c 100644 --- a/jsowell-pile/src/main/resources/mapper/pile/OrderPileOccupyMapper.xml +++ b/jsowell-pile/src/main/resources/mapper/pile/OrderPileOccupyMapper.xml @@ -1,819 +1,857 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - id, occupy_code, `status`, member_id, station_id, order_code, transaction_code, start_time, - end_time, pay_status, order_amount, pile_sn, connector_code, pile_connector_code, - create_time, create_by, update_time, update_by, del_flag - - - - - delete from order_pile_occupy - where id = #{id,jdbcType=INTEGER} - - - - insert into order_pile_occupy (occupy_code, `status`, member_id, - station_id, order_code, transaction_code, - start_time, end_time, pay_status, - order_amount, pile_sn, connector_code, - pile_connector_code, create_time, create_by, - update_time, update_by, del_flag - ) - values (#{occupyCode,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{memberId,jdbcType=VARCHAR}, - #{stationId,jdbcType=VARCHAR}, #{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR}, - #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{payStatus,jdbcType=VARCHAR}, - #{orderAmount,jdbcType=DECIMAL}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR}, - #{pileConnectorCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, - #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR} - ) - - - - insert into order_pile_occupy - - - occupy_code, - - - `status`, - - - member_id, - - - station_id, - - - order_code, - - - transaction_code, - - - start_time, - - - end_time, - - - pay_status, - - - order_amount, - - - pile_sn, - - - connector_code, - - - pile_connector_code, - - - create_time, - - - create_by, - - - update_time, - - - update_by, - - - del_flag, - - - - - #{occupyCode,jdbcType=VARCHAR}, - - - #{status,jdbcType=CHAR}, - - - #{memberId,jdbcType=VARCHAR}, - - - #{stationId,jdbcType=VARCHAR}, - - - #{orderCode,jdbcType=VARCHAR}, - - - #{transactionCode,jdbcType=VARCHAR}, - - - #{startTime,jdbcType=TIMESTAMP}, - - - #{endTime,jdbcType=TIMESTAMP}, - - - #{payStatus,jdbcType=VARCHAR}, - - - #{orderAmount,jdbcType=DECIMAL}, - - - #{pileSn,jdbcType=VARCHAR}, - - - #{connectorCode,jdbcType=VARCHAR}, - - - #{pileConnectorCode,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{createBy,jdbcType=VARCHAR}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{updateBy,jdbcType=VARCHAR}, - - - #{delFlag,jdbcType=CHAR}, - - - - - - update order_pile_occupy - - - occupy_code = #{occupyCode,jdbcType=VARCHAR}, - - - `status` = #{status,jdbcType=CHAR}, - - - member_id = #{memberId,jdbcType=VARCHAR}, - - - station_id = #{stationId,jdbcType=VARCHAR}, - - - order_code = #{orderCode,jdbcType=VARCHAR}, - - - transaction_code = #{transactionCode,jdbcType=VARCHAR}, - - - start_time = #{startTime,jdbcType=TIMESTAMP}, - - - end_time = #{endTime,jdbcType=TIMESTAMP}, - - - pay_status = #{payStatus,jdbcType=VARCHAR}, - - - order_amount = #{orderAmount,jdbcType=DECIMAL}, - - - pile_sn = #{pileSn,jdbcType=VARCHAR}, - - - connector_code = #{connectorCode,jdbcType=VARCHAR}, - - - pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - create_by = #{createBy,jdbcType=VARCHAR}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - update_by = #{updateBy,jdbcType=VARCHAR}, - - - del_flag = #{delFlag,jdbcType=CHAR}, - - - where id = #{id,jdbcType=INTEGER} - - - - update order_pile_occupy - set occupy_code = #{occupyCode,jdbcType=VARCHAR}, - `status` = #{status,jdbcType=CHAR}, - member_id = #{memberId,jdbcType=VARCHAR}, - station_id = #{stationId,jdbcType=VARCHAR}, - order_code = #{orderCode,jdbcType=VARCHAR}, - transaction_code = #{transactionCode,jdbcType=VARCHAR}, - start_time = #{startTime,jdbcType=TIMESTAMP}, - end_time = #{endTime,jdbcType=TIMESTAMP}, - pay_status = #{payStatus,jdbcType=VARCHAR}, - order_amount = #{orderAmount,jdbcType=DECIMAL}, - pile_sn = #{pileSn,jdbcType=VARCHAR}, - connector_code = #{connectorCode,jdbcType=VARCHAR}, - pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - create_by = #{createBy,jdbcType=VARCHAR}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - update_by = #{updateBy,jdbcType=VARCHAR}, - del_flag = #{delFlag,jdbcType=CHAR} - where id = #{id,jdbcType=INTEGER} - - - - update order_pile_occupy - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.occupyCode,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=CHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.memberId,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.transactionCode,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.startTime,jdbcType=TIMESTAMP} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.endTime,jdbcType=TIMESTAMP} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.payStatus,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.orderAmount,jdbcType=DECIMAL} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.pileSn,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.connectorCode,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.pileConnectorCode,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} - - - - where id in - - #{item.id,jdbcType=INTEGER} - - - - - update order_pile_occupy - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.occupyCode,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=CHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.memberId,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.transactionCode,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.startTime,jdbcType=TIMESTAMP} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.endTime,jdbcType=TIMESTAMP} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.payStatus,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.orderAmount,jdbcType=DECIMAL} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.pileSn,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.connectorCode,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.pileConnectorCode,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} - - - - - where id in - - #{item.id,jdbcType=INTEGER} - - - - - insert into order_pile_occupy - (occupy_code, `status`, member_id, station_id, order_code, transaction_code, start_time, - end_time, pay_status, order_amount, pile_sn, connector_code, pile_connector_code, - create_time, create_by, update_time, update_by, del_flag) - values - - (#{item.occupyCode,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR}, #{item.memberId,jdbcType=VARCHAR}, - #{item.stationId,jdbcType=VARCHAR}, #{item.orderCode,jdbcType=VARCHAR}, #{item.transactionCode,jdbcType=VARCHAR}, - #{item.startTime,jdbcType=TIMESTAMP}, #{item.endTime,jdbcType=TIMESTAMP}, #{item.payStatus,jdbcType=VARCHAR}, - #{item.orderAmount,jdbcType=DECIMAL}, #{item.pileSn,jdbcType=VARCHAR}, #{item.connectorCode,jdbcType=VARCHAR}, - #{item.pileConnectorCode,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, - #{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, - #{item.delFlag,jdbcType=CHAR}) - - - - - insert into order_pile_occupy - - + + + + + + + + + + + + + + + + + + + + + + + + + id, - - occupy_code, - `status`, - member_id, - station_id, - order_code, - transaction_code, - start_time, - end_time, - pay_status, - order_amount, - pile_sn, - connector_code, - pile_connector_code, - create_time, - create_by, - update_time, - update_by, - del_flag, - - values - - - #{id,jdbcType=INTEGER}, - - #{occupyCode,jdbcType=VARCHAR}, - #{status,jdbcType=CHAR}, - #{memberId,jdbcType=VARCHAR}, - #{stationId,jdbcType=VARCHAR}, - #{orderCode,jdbcType=VARCHAR}, - #{transactionCode,jdbcType=VARCHAR}, - #{startTime,jdbcType=TIMESTAMP}, - #{endTime,jdbcType=TIMESTAMP}, - #{payStatus,jdbcType=VARCHAR}, - #{orderAmount,jdbcType=DECIMAL}, - #{pileSn,jdbcType=VARCHAR}, - #{connectorCode,jdbcType=VARCHAR}, - #{pileConnectorCode,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, - #{createBy,jdbcType=VARCHAR}, - #{updateTime,jdbcType=TIMESTAMP}, - #{updateBy,jdbcType=VARCHAR}, - #{delFlag,jdbcType=CHAR}, - - on duplicate key update - - - id = #{id,jdbcType=INTEGER}, - - occupy_code = #{occupyCode,jdbcType=VARCHAR}, - `status` = #{status,jdbcType=CHAR}, - member_id = #{memberId,jdbcType=VARCHAR}, - station_id = #{stationId,jdbcType=VARCHAR}, - order_code = #{orderCode,jdbcType=VARCHAR}, - transaction_code = #{transactionCode,jdbcType=VARCHAR}, - start_time = #{startTime,jdbcType=TIMESTAMP}, - end_time = #{endTime,jdbcType=TIMESTAMP}, - pay_status = #{payStatus,jdbcType=VARCHAR}, - order_amount = #{orderAmount,jdbcType=DECIMAL}, - pile_sn = #{pileSn,jdbcType=VARCHAR}, - connector_code = #{connectorCode,jdbcType=VARCHAR}, - pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - create_by = #{createBy,jdbcType=VARCHAR}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - update_by = #{updateBy,jdbcType=VARCHAR}, - del_flag = #{delFlag,jdbcType=CHAR}, - - - - - insert into order_pile_occupy - - - id, - - occupy_code, - - `status`, - - member_id, - - station_id, - - order_code, - - transaction_code, - - start_time, - - end_time, - - pay_status, - - order_amount, - - pile_sn, - - connector_code, - - pile_connector_code, - - create_time, - - create_by, - - update_time, - - update_by, - - - del_flag, - - - values - - - #{id,jdbcType=INTEGER}, - - - #{occupyCode,jdbcType=VARCHAR}, - - - #{status,jdbcType=CHAR}, - - - #{memberId,jdbcType=VARCHAR}, - - - #{stationId,jdbcType=VARCHAR}, - - - #{orderCode,jdbcType=VARCHAR}, - - - #{transactionCode,jdbcType=VARCHAR}, - - - #{startTime,jdbcType=TIMESTAMP}, - - - #{endTime,jdbcType=TIMESTAMP}, - - - #{payStatus,jdbcType=VARCHAR}, - - - #{orderAmount,jdbcType=DECIMAL}, - - - #{pileSn,jdbcType=VARCHAR}, - - - #{connectorCode,jdbcType=VARCHAR}, - - - #{pileConnectorCode,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{createBy,jdbcType=VARCHAR}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{updateBy,jdbcType=VARCHAR}, - - - #{delFlag,jdbcType=CHAR}, - - - on duplicate key update - - - id = #{id,jdbcType=INTEGER}, - - - occupy_code = #{occupyCode,jdbcType=VARCHAR}, - - - `status` = #{status,jdbcType=CHAR}, - - - member_id = #{memberId,jdbcType=VARCHAR}, - - - station_id = #{stationId,jdbcType=VARCHAR}, - - - order_code = #{orderCode,jdbcType=VARCHAR}, - - - transaction_code = #{transactionCode,jdbcType=VARCHAR}, - - - start_time = #{startTime,jdbcType=TIMESTAMP}, - - - end_time = #{endTime,jdbcType=TIMESTAMP}, - - - pay_status = #{payStatus,jdbcType=VARCHAR}, - - - order_amount = #{orderAmount,jdbcType=DECIMAL}, - - - pile_sn = #{pileSn,jdbcType=VARCHAR}, - - - connector_code = #{connectorCode,jdbcType=VARCHAR}, - - - pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - create_by = #{createBy,jdbcType=VARCHAR}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - update_by = #{updateBy,jdbcType=VARCHAR}, - - - del_flag = #{delFlag,jdbcType=CHAR}, - - - + del_flag + + + + + delete + from order_pile_occupy + where id = #{id,jdbcType=INTEGER} + + + + insert into order_pile_occupy (occupy_code, `status`, member_id, + station_id, order_code, transaction_code, + start_time, end_time, pay_status, + order_amount, pile_sn, connector_code, + pile_connector_code, create_time, create_by, + update_time, update_by, del_flag) + values (#{occupyCode,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{memberId,jdbcType=VARCHAR}, + #{stationId,jdbcType=VARCHAR}, #{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR}, + #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{payStatus,jdbcType=VARCHAR}, + #{orderAmount,jdbcType=DECIMAL}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR}, + #{pileConnectorCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, + #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR}) + + + + insert into order_pile_occupy + + + occupy_code, + + + `status`, + + + member_id, + + + station_id, + + + order_code, + + + transaction_code, + + + start_time, + + + end_time, + + + pay_status, + + + order_amount, + + + pile_sn, + + + connector_code, + + + pile_connector_code, + + + create_time, + + + create_by, + + + update_time, + + + update_by, + + + del_flag, + + + + + #{occupyCode,jdbcType=VARCHAR}, + + + #{status,jdbcType=CHAR}, + + + #{memberId,jdbcType=VARCHAR}, + + + #{stationId,jdbcType=VARCHAR}, + + + #{orderCode,jdbcType=VARCHAR}, + + + #{transactionCode,jdbcType=VARCHAR}, + + + #{startTime,jdbcType=TIMESTAMP}, + + + #{endTime,jdbcType=TIMESTAMP}, + + + #{payStatus,jdbcType=VARCHAR}, + + + #{orderAmount,jdbcType=DECIMAL}, + + + #{pileSn,jdbcType=VARCHAR}, + + + #{connectorCode,jdbcType=VARCHAR}, + + + #{pileConnectorCode,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{delFlag,jdbcType=CHAR}, + + + + + + update order_pile_occupy + + + occupy_code = #{occupyCode,jdbcType=VARCHAR}, + + + `status` = #{status,jdbcType=CHAR}, + + + member_id = #{memberId,jdbcType=VARCHAR}, + + + station_id = #{stationId,jdbcType=VARCHAR}, + + + order_code = #{orderCode,jdbcType=VARCHAR}, + + + transaction_code = #{transactionCode,jdbcType=VARCHAR}, + + + start_time = #{startTime,jdbcType=TIMESTAMP}, + + + end_time = #{endTime,jdbcType=TIMESTAMP}, + + + pay_status = #{payStatus,jdbcType=VARCHAR}, + + + order_amount = #{orderAmount,jdbcType=DECIMAL}, + + + pile_sn = #{pileSn,jdbcType=VARCHAR}, + + + connector_code = #{connectorCode,jdbcType=VARCHAR}, + + + pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + del_flag = #{delFlag,jdbcType=CHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + + update order_pile_occupy + set occupy_code = #{occupyCode,jdbcType=VARCHAR}, + `status` = #{status,jdbcType=CHAR}, + member_id = #{memberId,jdbcType=VARCHAR}, + station_id = #{stationId,jdbcType=VARCHAR}, + order_code = #{orderCode,jdbcType=VARCHAR}, + transaction_code = #{transactionCode,jdbcType=VARCHAR}, + start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + pay_status = #{payStatus,jdbcType=VARCHAR}, + order_amount = #{orderAmount,jdbcType=DECIMAL}, + pile_sn = #{pileSn,jdbcType=VARCHAR}, + connector_code = #{connectorCode,jdbcType=VARCHAR}, + pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + create_by = #{createBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + del_flag = #{delFlag,jdbcType=CHAR} + where id = #{id,jdbcType=INTEGER} + + + + update order_pile_occupy + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.occupyCode,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=CHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.memberId,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.transactionCode,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.startTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.endTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.payStatus,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.orderAmount,jdbcType=DECIMAL} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.pileSn,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.connectorCode,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.pileConnectorCode,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} + + + + where id in + + #{item.id,jdbcType=INTEGER} + + + + + update order_pile_occupy + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.occupyCode,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=CHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.memberId,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.transactionCode,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.startTime,jdbcType=TIMESTAMP} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.endTime,jdbcType=TIMESTAMP} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.payStatus,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.orderAmount,jdbcType=DECIMAL} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.pileSn,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.connectorCode,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.pileConnectorCode,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} + + + + + where id in + + #{item.id,jdbcType=INTEGER} + + + + + insert into order_pile_occupy + (occupy_code, `status`, member_id, station_id, order_code, transaction_code, start_time, + end_time, pay_status, order_amount, pile_sn, connector_code, pile_connector_code, + create_time, create_by, update_time, update_by, del_flag) + values + + (#{item.occupyCode,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR}, #{item.memberId,jdbcType=VARCHAR}, + #{item.stationId,jdbcType=VARCHAR}, #{item.orderCode,jdbcType=VARCHAR}, + #{item.transactionCode,jdbcType=VARCHAR}, + #{item.startTime,jdbcType=TIMESTAMP}, #{item.endTime,jdbcType=TIMESTAMP}, + #{item.payStatus,jdbcType=VARCHAR}, + #{item.orderAmount,jdbcType=DECIMAL}, #{item.pileSn,jdbcType=VARCHAR}, + #{item.connectorCode,jdbcType=VARCHAR}, + #{item.pileConnectorCode,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, + #{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, + #{item.updateBy,jdbcType=VARCHAR}, + #{item.delFlag,jdbcType=CHAR}) + + + + + insert into order_pile_occupy + + + id, + + occupy_code, + `status`, + member_id, + station_id, + order_code, + transaction_code, + start_time, + end_time, + pay_status, + order_amount, + pile_sn, + connector_code, + pile_connector_code, + create_time, + create_by, + update_time, + update_by, + del_flag, + + values + + + #{id,jdbcType=INTEGER}, + + #{occupyCode,jdbcType=VARCHAR}, + #{status,jdbcType=CHAR}, + #{memberId,jdbcType=VARCHAR}, + #{stationId,jdbcType=VARCHAR}, + #{orderCode,jdbcType=VARCHAR}, + #{transactionCode,jdbcType=VARCHAR}, + #{startTime,jdbcType=TIMESTAMP}, + #{endTime,jdbcType=TIMESTAMP}, + #{payStatus,jdbcType=VARCHAR}, + #{orderAmount,jdbcType=DECIMAL}, + #{pileSn,jdbcType=VARCHAR}, + #{connectorCode,jdbcType=VARCHAR}, + #{pileConnectorCode,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, + #{createBy,jdbcType=VARCHAR}, + #{updateTime,jdbcType=TIMESTAMP}, + #{updateBy,jdbcType=VARCHAR}, + #{delFlag,jdbcType=CHAR}, + + on duplicate key update + + + id = #{id,jdbcType=INTEGER}, + + occupy_code = #{occupyCode,jdbcType=VARCHAR}, + `status` = #{status,jdbcType=CHAR}, + member_id = #{memberId,jdbcType=VARCHAR}, + station_id = #{stationId,jdbcType=VARCHAR}, + order_code = #{orderCode,jdbcType=VARCHAR}, + transaction_code = #{transactionCode,jdbcType=VARCHAR}, + start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + pay_status = #{payStatus,jdbcType=VARCHAR}, + order_amount = #{orderAmount,jdbcType=DECIMAL}, + pile_sn = #{pileSn,jdbcType=VARCHAR}, + connector_code = #{connectorCode,jdbcType=VARCHAR}, + pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + create_by = #{createBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + del_flag = #{delFlag,jdbcType=CHAR}, + + + + + insert into order_pile_occupy + + + id, + + + occupy_code, + + + `status`, + + + member_id, + + + station_id, + + + order_code, + + + transaction_code, + + + start_time, + + + end_time, + + + pay_status, + + + order_amount, + + + pile_sn, + + + connector_code, + + + pile_connector_code, + + + create_time, + + + create_by, + + + update_time, + + + update_by, + + + del_flag, + + + values + + + #{id,jdbcType=INTEGER}, + + + #{occupyCode,jdbcType=VARCHAR}, + + + #{status,jdbcType=CHAR}, + + + #{memberId,jdbcType=VARCHAR}, + + + #{stationId,jdbcType=VARCHAR}, + + + #{orderCode,jdbcType=VARCHAR}, + + + #{transactionCode,jdbcType=VARCHAR}, + + + #{startTime,jdbcType=TIMESTAMP}, + + + #{endTime,jdbcType=TIMESTAMP}, + + + #{payStatus,jdbcType=VARCHAR}, + + + #{orderAmount,jdbcType=DECIMAL}, + + + #{pileSn,jdbcType=VARCHAR}, + + + #{connectorCode,jdbcType=VARCHAR}, + + + #{pileConnectorCode,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{delFlag,jdbcType=CHAR}, + + + on duplicate key update + + + id = #{id,jdbcType=INTEGER}, + + + occupy_code = #{occupyCode,jdbcType=VARCHAR}, + + + `status` = #{status,jdbcType=CHAR}, + + + member_id = #{memberId,jdbcType=VARCHAR}, + + + station_id = #{stationId,jdbcType=VARCHAR}, + + + order_code = #{orderCode,jdbcType=VARCHAR}, + + + transaction_code = #{transactionCode,jdbcType=VARCHAR}, + + + start_time = #{startTime,jdbcType=TIMESTAMP}, + + + end_time = #{endTime,jdbcType=TIMESTAMP}, + + + pay_status = #{payStatus,jdbcType=VARCHAR}, + + + order_amount = #{orderAmount,jdbcType=DECIMAL}, + + + pile_sn = #{pileSn,jdbcType=VARCHAR}, + + + connector_code = #{connectorCode,jdbcType=VARCHAR}, + + + pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + del_flag = #{delFlag,jdbcType=CHAR}, + + + - + - + - + - + + + \ No newline at end of file