Commit 96c4e8fe by duanhq

700F设备的安装单新增两张照片 v 1.2.1

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22443 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7eb908e0
......@@ -158,4 +158,9 @@ public interface Constants {
* 生成订单号,分布式锁lockName
*/
public static final String ORDER_NO_LOCK_NAME = "carservice:lock:order:no";
/**
* 设备类型(700F)
*/
public static final String DEVICE_TYPE_700F = "sys_order_service_item_gps_GT700F";
}
......@@ -59,6 +59,32 @@ public class OrderActivateReq implements Serializable{
@NotEmpty
private String deviceNo;
/**
*接电位置图片(针对700F设备的单)
*/
private String connectLocationPicture;
/**
*周围环境照片(针对700F设备的单)
*/
private String surroundingPicture;
public String getConnectLocationPicture() {
return connectLocationPicture;
}
public void setConnectLocationPicture(String connectLocationPicture) {
this.connectLocationPicture = connectLocationPicture;
}
public String getSurroundingPicture() {
return surroundingPicture;
}
public void setSurroundingPicture(String surroundingPicture) {
this.surroundingPicture = surroundingPicture;
}
public Integer getId() {
return id;
}
......
......@@ -244,6 +244,32 @@ public class SysOrder {
*/
private Integer orderChannelOrgId;
/**
*接电位置图片(针对700F设备的单)
*/
private String connectLocationPicture;
/**
*周围环境照片(针对700F设备的单)
*/
private String surroundingPicture;
public String getConnectLocationPicture() {
return connectLocationPicture;
}
public void setConnectLocationPicture(String connectLocationPicture) {
this.connectLocationPicture = connectLocationPicture;
}
public String getSurroundingPicture() {
return surroundingPicture;
}
public void setSurroundingPicture(String surroundingPicture) {
this.surroundingPicture = surroundingPicture;
}
public String getReserveInstallReason() {
return reserveInstallReason;
}
......
......@@ -136,7 +136,13 @@ public class StandardOrderServiceImpl implements StandardOrderService {
installLocionPicture.add(lastOrder.getVinNoPicture());
installLocionPicture.add(lastOrder.getCarPicture());
SysUser sysUser = new SysUser();
//安装设备类型为F700的的工单需要接电位置图片和周围环境照片
if(Constants.DEVICE_TYPE_700F.equals(lastOrder.getInstallDeviceType())){
installLocionPicture.add(lastOrder.getConnectLocationPicture());
installLocionPicture.add(lastOrder.getSurroundingPicture());
}
SysUser sysUser;
for (SysOrder sysOrder : sysOrders) {
//添加安装照片
installLocionPicture.add(sysOrder.getInstallLocationPicture());
......
......@@ -54,6 +54,8 @@
<result column="orgName" jdbcType="VARCHAR" property="rootOrgName" />
<result column="orderChannelOrgId" jdbcType="INTEGER" property="orderChannelOrgId" />
<result column="reserve_install_reason" jdbcType="VARCHAR" property="reserveInstallReason" />
<result column="connect_location_picture" jdbcType="VARCHAR" property="connectLocationPicture" />
<result column="surrounding_picture" jdbcType="VARCHAR" property="surroundingPicture" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
......@@ -94,7 +96,7 @@
mechanic_id, repair_reason, remark, create_time, update_time, create_by, update_by, device_no,
install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture,
complete_time,install_remark,install_device_type,reserve_install_time,
work_order_no, channel, merchant_name,reserve_install_reason
work_order_no, channel, merchant_name,reserve_install_reason,connect_location_picture,surrounding_picture
</sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select
......@@ -559,6 +561,12 @@
<if test="reserveInstallReason != null">
reserve_install_reason = #{reserveInstallReason},
</if>
<if test="connectLocationPicture != null">
connect_location_picture = #{connectLocationPicture},
</if>
<if test="surroundingPicture != null">
surrounding_picture = #{surroundingPicture},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!