删除 target
This commit is contained in:
parent
39a596e6ad
commit
7e82191358
@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.iocoder.mall.order.biz.dao.OrderRecipientMapper">
|
||||
|
||||
<sql id="FIELDS">
|
||||
id, order_id, `area_no`, `name`, mobile, address,
|
||||
create_time, update_time
|
||||
</sql>
|
||||
|
||||
<!--
|
||||
插入数据
|
||||
-->
|
||||
<insert id="insert" parameterType="OrderRecipientDO" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
||||
INSERT INTO `order_recipient` (
|
||||
order_id, `area_no`, `name`, mobile, address,
|
||||
create_time, update_time
|
||||
) VALUES (
|
||||
#{orderId}, #{areaNo}, #{name}, #{mobile}, #{address},
|
||||
#{createTime}, #{updateTime}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!--
|
||||
查询 - 根据 orderIds
|
||||
-->
|
||||
<select id="selectByOrderIds" resultType="cn.iocoder.mall.order.biz.dataobject.OrderRecipientDO">
|
||||
SELECT
|
||||
<include refid="FIELDS" />
|
||||
FROM `order_recipient`
|
||||
WHERE order_id IN
|
||||
<foreach collection="orderIds" item="orderId" separator="," open="(" close=")">
|
||||
#{orderId}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
@ -1,65 +0,0 @@
|
||||
package cn.iocoder.mall.order.biz.convert;
|
||||
|
||||
import cn.iocoder.mall.order.api.bo.OrderRecipientBO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderCreateDTO;
|
||||
import cn.iocoder.mall.order.biz.dataobject.OrderRecipientDO;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-04-05T22:26:02+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 11.0.1 (Oracle Corporation)"
|
||||
)
|
||||
public class OrderRecipientConvertImpl implements OrderRecipientConvert {
|
||||
|
||||
@Override
|
||||
public OrderRecipientDO convert(OrderCreateDTO orderCreateDTO) {
|
||||
if ( orderCreateDTO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
OrderRecipientDO orderRecipientDO = new OrderRecipientDO();
|
||||
|
||||
orderRecipientDO.setAreaNo( orderCreateDTO.getAreaNo() );
|
||||
orderRecipientDO.setName( orderCreateDTO.getName() );
|
||||
orderRecipientDO.setMobile( orderCreateDTO.getMobile() );
|
||||
orderRecipientDO.setAddress( orderCreateDTO.getAddress() );
|
||||
|
||||
return orderRecipientDO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OrderRecipientBO> convert(List<OrderRecipientDO> orderRecipientDOList) {
|
||||
if ( orderRecipientDOList == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<OrderRecipientBO> list = new ArrayList<OrderRecipientBO>( orderRecipientDOList.size() );
|
||||
for ( OrderRecipientDO orderRecipientDO : orderRecipientDOList ) {
|
||||
list.add( orderRecipientDOToOrderRecipientBO( orderRecipientDO ) );
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
protected OrderRecipientBO orderRecipientDOToOrderRecipientBO(OrderRecipientDO orderRecipientDO) {
|
||||
if ( orderRecipientDO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
OrderRecipientBO orderRecipientBO = new OrderRecipientBO();
|
||||
|
||||
orderRecipientBO.setCreateTime( orderRecipientDO.getCreateTime() );
|
||||
orderRecipientBO.setUpdateTime( orderRecipientDO.getUpdateTime() );
|
||||
orderRecipientBO.setId( orderRecipientDO.getId() );
|
||||
orderRecipientBO.setOrderId( orderRecipientDO.getOrderId() );
|
||||
orderRecipientBO.setAreaNo( orderRecipientDO.getAreaNo() );
|
||||
orderRecipientBO.setName( orderRecipientDO.getName() );
|
||||
orderRecipientBO.setMobile( orderRecipientDO.getMobile() );
|
||||
orderRecipientBO.setAddress( orderRecipientDO.getAddress() );
|
||||
|
||||
return orderRecipientBO;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user