fix
This commit is contained in:
parent
56fa00ea09
commit
eeffaa0491
|
|
@ -21,76 +21,22 @@ public class OrderInfoVo extends OrderInfo {
|
|||
/** 需求单位 */
|
||||
@Excel(name = "需求单位")
|
||||
private String needCompany;
|
||||
|
||||
/** 设备计划进场时间 */
|
||||
@Excel(name = "设备计划进场时间")
|
||||
private String planStartTime;
|
||||
|
||||
/** 是否需要机手 */
|
||||
@Excel(name = "是否需要机手")
|
||||
private String isMachinist;
|
||||
|
||||
/** 详细地址 */
|
||||
@Excel(name = "设备进场省市县")
|
||||
private Integer addressId;
|
||||
|
||||
/** 详细地址 */
|
||||
@Excel(name = "详细地址")
|
||||
private String address;
|
||||
|
||||
/** 工期时长 */
|
||||
@Excel(name = "工期时长")
|
||||
private String duration;
|
||||
|
||||
/** 发票类型 */
|
||||
@Excel(name = "发票类型")
|
||||
private String invoiceType;
|
||||
|
||||
/** 项目说明 */
|
||||
@Excel(name = "项目说明")
|
||||
private String description;
|
||||
|
||||
/** 租赁类型 */
|
||||
@Excel(name = "租赁类型")
|
||||
private Long leaseType;
|
||||
|
||||
/** 租赁单价 */
|
||||
@Excel(name = "租赁单价")
|
||||
private String leasePrice;
|
||||
|
||||
/** 机手单价 */
|
||||
@Excel(name = "机手单价")
|
||||
private String machinistPrice;
|
||||
|
||||
/** 订单合同 */
|
||||
@Excel(name = "订单合同")
|
||||
private String orderContract;
|
||||
|
||||
/** 机手姓名 */
|
||||
@Excel(name = "机手姓名")
|
||||
private String machinistName;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
private String phone;
|
||||
|
||||
/** 物流司机电话 */
|
||||
@Excel(name = "物流司机电话")
|
||||
private String logisticsPhone;
|
||||
|
||||
/** 设备实际进场时间 */
|
||||
@Excel(name = "设备实际进场时间")
|
||||
private String realStartTime;
|
||||
|
||||
/** 租方进场确认人 */
|
||||
@Excel(name = "租方进场确认人")
|
||||
private String renterName;
|
||||
|
||||
/** 出租方进场确认人 */
|
||||
@Excel(name = "出租方进场确认人")
|
||||
private String tenantName;
|
||||
|
||||
/** 进场附件 */
|
||||
@Excel(name = "进场附件")
|
||||
private String entryAttachment;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,4 +61,6 @@ public interface OrderInfoMapper
|
|||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderInfoByOrderIds(Long[] orderIds);
|
||||
|
||||
public Long selectLastInsertId();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,8 +60,7 @@ public class OrderInfoServiceImpl implements IOrderInfoService
|
|||
LoginUser user = SecurityUtils.getLoginUser();
|
||||
orderInfo.setOrderUser(user.getUserid());
|
||||
orderInfoMapper.insertOrderInfo(orderInfo);
|
||||
Long orderId = orderInfo.getOrderId();
|
||||
System.out.println("xxxx" + orderId);
|
||||
Long orderId = orderInfoMapper.selectLastInsertId();
|
||||
orderInfo.setOrderId(orderId);
|
||||
return orderInfoMapper.insertOrderDetails(orderInfo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<insert id="insertOrderDetails" parameterType="com.bonus.zlpt.common.core.domain.order.vo.OrderInfoVo">
|
||||
insert into ma_order_details
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="orderId != null">order_id,</if>
|
||||
<if test="needCompany != null">need_company,</if>
|
||||
<if test="planStartTime != null">plan_start_time,</if>
|
||||
|
|
@ -106,7 +105,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="entryAttachment != null">entry_attachment,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="orderId != null">#{orderId},</if>
|
||||
<if test="needCompany != null">#{needCompany},</if>
|
||||
<if test="planStartTime != null">#{planStartTime},</if>
|
||||
|
|
@ -158,4 +156,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
#{orderId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectLastInsertId" resultType="Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue