Commit 397e6ba7 by duanhq

新增技工发货类型,预约安装原因 v 1.2.0

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21516 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3fd091ee
......@@ -270,7 +270,7 @@ public class OrderController extends BaseController {
@AuthCheck
@RequestMapping(value = "/appoint", method = {RequestMethod.GET, RequestMethod.POST})
public ResultObject appoint(HttpServletRequest request, Integer id, String serviceDate) {
public ResultObject appoint(HttpServletRequest request, Integer id, String serviceDate , String reserveInstallReason) {
SysOrderExample example = new SysOrderExample();
example.createCriteria().andIdEqualTo(id);
SysOrder sysOrder = orderService.selectByPrimaryKey(id);
......@@ -280,6 +280,7 @@ public class OrderController extends BaseController {
sysOrder.setActiveStatus((byte) 7);
// serviceDate:"2019-02-21 18:30:00"
sysOrder.setReserveInstallTime(DateUtil.parseDate(serviceDate));
sysOrder.setReserveInstallReason(reserveInstallReason);
Date date = new Date();
sysOrder.setUpdateTime(date);
int i = orderService.updateByPrimaryKeySelective(sysOrder);
......@@ -290,6 +291,9 @@ public class OrderController extends BaseController {
sysOrderStatus.setActiveStatus((byte) 7);
orderService.insertOrderStatus(sysOrderStatus);
}
//新增预约操作日志
}
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg());
......
......@@ -134,7 +134,16 @@ public class SysOrder {
private Date completeTime;
/**
* 预约安装时间
*/
private Date reserveInstallTime;
/**
* 预约安装原因
*/
private String reserveInstallReason;
private SysArea area;
private List<SysOrderRepair> orderRepair;
private String orderChannel;
......@@ -236,6 +245,14 @@ public class SysOrder {
*/
private Integer orderChannelOrgId;
public String getReserveInstallReason() {
return reserveInstallReason;
}
public void setReserveInstallReason(String reserveInstallReason) {
this.reserveInstallReason = reserveInstallReason;
}
public Date getReassignMechanicTime() {
return reassignMechanicTime;
}
......
......@@ -1500,6 +1500,10 @@ public class OrderServiceImpl implements IOrderService {
CarInfo carInfo = getCarInfo(brandId, serId, carType);
order.setCarInfo(carInfo);
}
// 预约安装原因
String reserveInstallReason = dictionaryDataMapper.getDictValueByKey(order.getReserveInstallReason());
order.setReserveInstallReason( reserveInstallReason );
return order;
}
......
......@@ -53,6 +53,7 @@
<result column="installDeviceTypeName" jdbcType="VARCHAR" property="installDeviceTypeName" />
<result column="orgName" jdbcType="VARCHAR" property="rootOrgName" />
<result column="orderChannelOrgId" jdbcType="INTEGER" property="orderChannelOrgId" />
<result column="reserve_install_reason" jdbcType="VARCHAR" property="reserveInstallReason" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
......@@ -93,7 +94,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
work_order_no, channel, merchant_name,reserve_install_reason
</sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select
......@@ -555,6 +556,9 @@
<if test="reassignMechanicTime != null">
reassign_mechanic_time = #{reassignMechanicTime},
</if>
<if test="reserveInstallReason != null">
reserve_install_reason = #{reserveInstallReason},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......
......@@ -76,6 +76,11 @@ public class SysMechanic extends SysUser{
private Integer workStatus;
/**
*发货方式(1:服务商发货;2:广联发货)
*/
private Integer sendType;
/**
* 查询内容
*/
private String queryContent;
......@@ -176,6 +181,14 @@ public class SysMechanic extends SysUser{
this.workStatus = workStatus;
}
public Integer getSendType() {
return sendType;
}
public void setSendType(Integer sendType) {
this.sendType = sendType;
}
@Override
public String toString() {
return super.toString()+"SysMechanic{" +
......@@ -190,6 +203,7 @@ public class SysMechanic extends SysUser{
", mechanicStatus='" + mechanicStatus + '\'' +
", sysArea=" + sysArea +
", workStatus=" + workStatus +
", sendType=" + sendType +
", queryContent='" + queryContent + '\'' +
'}';
}
......
......@@ -373,6 +373,9 @@
<if test="mechanicStatus != null">
mechanic_status,
</if>
<if test="sendType != null">
send_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">
......@@ -402,6 +405,9 @@
<if test="mechanicStatus != null">
#{mechanicStatus,jdbcType=VARCHAR},
</if>
<if test="sendType != null">
#{send_type},
</if>
</trim>
</insert>
......@@ -599,6 +605,9 @@
<if test="workStatus != null">
work_status = #{workStatus},
</if>
<if test="sendType != null">
send_type = #{sendType},
</if>
</set>
where user_id = #{id,jdbcType=INTEGER}
</update>
......@@ -1239,7 +1248,8 @@
sm.service_type serviceType,
sm.address,
sm.mechanic_status AS mechanicStatus,
sm.work_status as workStatus
sm.work_status as workStatus,
sm.send_type as sendType
FROM
sys_user su
LEFT JOIN sys_mechanic sm ON su.id = sm.user_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!