Commit a299910d by duanhq

700F设备新增图片 v 1.2.1

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22479 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3ad87ace
...@@ -158,4 +158,9 @@ public interface Constants { ...@@ -158,4 +158,9 @@ public interface Constants {
* 生成订单号,分布式锁lockName * 生成订单号,分布式锁lockName
*/ */
public static final String ORDER_NO_LOCK_NAME = "carservice:lock:order:no"; 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{ ...@@ -59,6 +59,32 @@ public class OrderActivateReq implements Serializable{
@NotEmpty @NotEmpty
private String deviceNo; 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() { public Integer getId() {
return id; return id;
} }
......
...@@ -136,7 +136,13 @@ public class StandardOrderServiceImpl implements StandardOrderService { ...@@ -136,7 +136,13 @@ public class StandardOrderServiceImpl implements StandardOrderService {
installLocionPicture.add(lastOrder.getVinNoPicture()); installLocionPicture.add(lastOrder.getVinNoPicture());
installLocionPicture.add(lastOrder.getCarPicture()); 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) { for (SysOrder sysOrder : sysOrders) {
//添加安装照片 //添加安装照片
installLocionPicture.add(sysOrder.getInstallLocationPicture()); installLocionPicture.add(sysOrder.getInstallLocationPicture());
......
...@@ -54,6 +54,8 @@ ...@@ -54,6 +54,8 @@
<result column="orgName" jdbcType="VARCHAR" property="rootOrgName" /> <result column="orgName" jdbcType="VARCHAR" property="rootOrgName" />
<result column="orderChannelOrgId" jdbcType="INTEGER" property="orderChannelOrgId" /> <result column="orderChannelOrgId" jdbcType="INTEGER" property="orderChannelOrgId" />
<result column="reserve_install_reason" jdbcType="VARCHAR" property="reserveInstallReason" /> <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> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -94,7 +96,7 @@ ...@@ -94,7 +96,7 @@
mechanic_id, repair_reason, remark, create_time, update_time, create_by, update_by, device_no, 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, install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture,
complete_time,install_remark,install_device_type,reserve_install_time, 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> </sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select select
...@@ -559,6 +561,12 @@ ...@@ -559,6 +561,12 @@
<if test="reserveInstallReason != null"> <if test="reserveInstallReason != null">
reserve_install_reason = #{reserveInstallReason}, reserve_install_reason = #{reserveInstallReason},
</if> </if>
<if test="connectLocationPicture != null">
connect_location_picture = #{connectLocationPicture},
</if>
<if test="surroundingPicture != null">
surrounding_picture = #{surroundingPicture},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!