Commit 037f4a88 by zhanghj

V1.1.2--提交V1.1.2的代码

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21542 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 397e6ba7
......@@ -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 , String reserveInstallReason) {
public ResultObject appoint(HttpServletRequest request, Integer id, String serviceDate) {
SysOrderExample example = new SysOrderExample();
example.createCriteria().andIdEqualTo(id);
SysOrder sysOrder = orderService.selectByPrimaryKey(id);
......@@ -280,7 +280,6 @@ 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);
......@@ -291,9 +290,6 @@ public class OrderController extends BaseController {
sysOrderStatus.setActiveStatus((byte) 7);
orderService.insertOrderStatus(sysOrderStatus);
}
//新增预约操作日志
}
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg());
......
......@@ -134,16 +134,7 @@ public class SysOrder {
private Date completeTime;
/**
* 预约安装时间
*/
private Date reserveInstallTime;
/**
* 预约安装原因
*/
private String reserveInstallReason;
private SysArea area;
private List<SysOrderRepair> orderRepair;
private String orderChannel;
......@@ -245,14 +236,6 @@ 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,10 +1500,6 @@ 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,7 +53,6 @@
<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>
......@@ -94,7 +93,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
</sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select
......@@ -556,9 +555,6 @@
<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,11 +76,6 @@ public class SysMechanic extends SysUser{
private Integer workStatus;
/**
*发货方式(1:服务商发货;2:广联发货)
*/
private Integer sendType;
/**
* 查询内容
*/
private String queryContent;
......@@ -181,14 +176,6 @@ 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{" +
......@@ -203,7 +190,6 @@ public class SysMechanic extends SysUser{
", mechanicStatus='" + mechanicStatus + '\'' +
", sysArea=" + sysArea +
", workStatus=" + workStatus +
", sendType=" + sendType +
", queryContent='" + queryContent + '\'' +
'}';
}
......
......@@ -373,9 +373,6 @@
<if test="mechanicStatus != null">
mechanic_status,
</if>
<if test="sendType != null">
send_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">
......@@ -405,9 +402,6 @@
<if test="mechanicStatus != null">
#{mechanicStatus,jdbcType=VARCHAR},
</if>
<if test="sendType != null">
#{send_type},
</if>
</trim>
</insert>
......@@ -605,9 +599,6 @@
<if test="workStatus != null">
work_status = #{workStatus},
</if>
<if test="sendType != null">
send_type = #{sendType},
</if>
</set>
where user_id = #{id,jdbcType=INTEGER}
</update>
......@@ -1248,8 +1239,7 @@
sm.service_type serviceType,
sm.address,
sm.mechanic_status AS mechanicStatus,
sm.work_status as workStatus,
sm.send_type as sendType
sm.work_status as workStatus
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!