Commit a2e0a14a by zhengxj

finish 修正updateby,createby数据类型 on 20190409 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19427 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent c01fdc3c
...@@ -68,6 +68,14 @@ ...@@ -68,6 +68,14 @@
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 --> <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>
......
...@@ -131,7 +131,7 @@ public class OrderController extends BaseController { ...@@ -131,7 +131,7 @@ public class OrderController extends BaseController {
String orderSn = orderService.getOrderSn(orderType); String orderSn = orderService.getOrderSn(orderType);
sysOrder.setOrderSn(orderSn); sysOrder.setOrderSn(orderSn);
sysOrder.setCreateTime(new Date()); sysOrder.setCreateTime(new Date());
sysOrder.setCreateBy(UserUtils.getUserName(request)); sysOrder.setCreateBy(UserUtils.getUserId(request));
ResultObject result = orderService.save(request, sysOrder); ResultObject result = orderService.save(request, sysOrder);
return result; return result;
} }
......
...@@ -50,12 +50,10 @@ public class SysOrder { ...@@ -50,12 +50,10 @@ public class SysOrder {
/** /**
* 车辆品牌id * 车辆品牌id
*/ */
@NotNull(message="{param.not.null}", groups={Default.class})
private Integer carBrand; private Integer carBrand;
/** /**
* 车辆车系id * 车辆车系id
*/ */
@NotNull(message="{param.not.null}", groups={Default.class})
private Integer carSeries; private Integer carSeries;
/** /**
...@@ -103,9 +101,9 @@ public class SysOrder { ...@@ -103,9 +101,9 @@ public class SysOrder {
private Date updateTime; private Date updateTime;
private String createBy; private Integer createBy;
private String updateBy; private Integer updateBy;
private String deviceNo; private String deviceNo;
...@@ -452,20 +450,20 @@ public class SysOrder { ...@@ -452,20 +450,20 @@ public class SysOrder {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public String getCreateBy() { public Integer getCreateBy() {
return createBy; return createBy;
} }
public void setCreateBy(String createBy) { public void setCreateBy(Integer createBy) {
this.createBy = createBy == null ? null : createBy.trim(); this.createBy = createBy ;
} }
public String getUpdateBy() { public Integer getUpdateBy() {
return updateBy; return updateBy;
} }
public void setUpdateBy(String updateBy) { public void setUpdateBy(Integer updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim(); this.updateBy = updateBy;
} }
public String getDeviceNo() { public String getDeviceNo() {
......
...@@ -1865,62 +1865,62 @@ public class SysOrderExample { ...@@ -1865,62 +1865,62 @@ public class SysOrderExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByEqualTo(String value) { public Criteria andCreateByEqualTo(Integer value) {
addCriterion("create_by =", value, "createBy"); addCriterion("create_by =", value, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByNotEqualTo(String value) { public Criteria andCreateByNotEqualTo(Integer value) {
addCriterion("create_by <>", value, "createBy"); addCriterion("create_by <>", value, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByGreaterThan(String value) { public Criteria andCreateByGreaterThan(Integer value) {
addCriterion("create_by >", value, "createBy"); addCriterion("create_by >", value, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByGreaterThanOrEqualTo(String value) { public Criteria andCreateByGreaterThanOrEqualTo(Integer value) {
addCriterion("create_by >=", value, "createBy"); addCriterion("create_by >=", value, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByLessThan(String value) { public Criteria andCreateByLessThan(Integer value) {
addCriterion("create_by <", value, "createBy"); addCriterion("create_by <", value, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByLessThanOrEqualTo(String value) { public Criteria andCreateByLessThanOrEqualTo(Integer value) {
addCriterion("create_by <=", value, "createBy"); addCriterion("create_by <=", value, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByLike(String value) { public Criteria andCreateByLike(Integer value) {
addCriterion("create_by like", value, "createBy"); addCriterion("create_by like", value, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByNotLike(String value) { public Criteria andCreateByNotLike(Integer value) {
addCriterion("create_by not like", value, "createBy"); addCriterion("create_by not like", value, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByIn(List<String> values) { public Criteria andCreateByIn(List<Integer> values) {
addCriterion("create_by in", values, "createBy"); addCriterion("create_by in", values, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByNotIn(List<String> values) { public Criteria andCreateByNotIn(List<Integer> values) {
addCriterion("create_by not in", values, "createBy"); addCriterion("create_by not in", values, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByBetween(String value1, String value2) { public Criteria andCreateByBetween(Integer value1, Integer value2) {
addCriterion("create_by between", value1, value2, "createBy"); addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateByNotBetween(String value1, String value2) { public Criteria andCreateByNotBetween(Integer value1, Integer value2) {
addCriterion("create_by not between", value1, value2, "createBy"); addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this; return (Criteria) this;
} }
...@@ -1935,62 +1935,62 @@ public class SysOrderExample { ...@@ -1935,62 +1935,62 @@ public class SysOrderExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByEqualTo(String value) { public Criteria andUpdateByEqualTo(Integer value) {
addCriterion("update_by =", value, "updateBy"); addCriterion("update_by =", value, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByNotEqualTo(String value) { public Criteria andUpdateByNotEqualTo(Integer value) {
addCriterion("update_by <>", value, "updateBy"); addCriterion("update_by <>", value, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByGreaterThan(String value) { public Criteria andUpdateByGreaterThan(Integer value) {
addCriterion("update_by >", value, "updateBy"); addCriterion("update_by >", value, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { public Criteria andUpdateByGreaterThanOrEqualTo(Integer value) {
addCriterion("update_by >=", value, "updateBy"); addCriterion("update_by >=", value, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByLessThan(String value) { public Criteria andUpdateByLessThan(Integer value) {
addCriterion("update_by <", value, "updateBy"); addCriterion("update_by <", value, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByLessThanOrEqualTo(String value) { public Criteria andUpdateByLessThanOrEqualTo(Integer value) {
addCriterion("update_by <=", value, "updateBy"); addCriterion("update_by <=", value, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByLike(String value) { public Criteria andUpdateByLike(Integer value) {
addCriterion("update_by like", value, "updateBy"); addCriterion("update_by like", value, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByNotLike(String value) { public Criteria andUpdateByNotLike(Integer value) {
addCriterion("update_by not like", value, "updateBy"); addCriterion("update_by not like", value, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByIn(List<String> values) { public Criteria andUpdateByIn(List<Integer> values) {
addCriterion("update_by in", values, "updateBy"); addCriterion("update_by in", values, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByNotIn(List<String> values) { public Criteria andUpdateByNotIn(List<Integer> values) {
addCriterion("update_by not in", values, "updateBy"); addCriterion("update_by not in", values, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByBetween(String value1, String value2) { public Criteria andUpdateByBetween(Integer value1, Integer value2) {
addCriterion("update_by between", value1, value2, "updateBy"); addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andUpdateByNotBetween(String value1, String value2) { public Criteria andUpdateByNotBetween(Integer value1, Integer value2) {
addCriterion("update_by not between", value1, value2, "updateBy"); addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this; return (Criteria) this;
} }
......
...@@ -1616,7 +1616,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1616,7 +1616,7 @@ public class OrderServiceImpl implements IOrderService {
* 若售后类型是更换车辆,则需要生成一个拆除单,一个安装单 * 若售后类型是更换车辆,则需要生成一个拆除单,一个安装单
*/ */
Date now = new Date(); Date now = new Date();
String createBy = UserUtils.getUserName(request); int createBy = UserUtils.getUserId(request);
if (BizConstants.ORDER_AFTER_SALE_TYPE_CHANGE_CAR == afterSaleType) { if (BizConstants.ORDER_AFTER_SALE_TYPE_CHANGE_CAR == afterSaleType) {
/* /*
...@@ -1624,7 +1624,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1624,7 +1624,7 @@ public class OrderServiceImpl implements IOrderService {
*/ */
SysOrder dismantleOrder = originalOrder; SysOrder dismantleOrder = originalOrder;
byte orderType = (byte) BizConstants.ORDER_TYPE_DISMANTLE; byte orderType = (byte) BizConstants.ORDER_TYPE_DISMANTLE;
addOrder(dismantleOrder, order, orderType, now, createBy, afterSaleType); addOrder(dismantleOrder, order, orderType, now, UserUtils.getUserId(request), afterSaleType);
/* /*
* 增加售后记录 * 增加售后记录
...@@ -1822,7 +1822,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1822,7 +1822,7 @@ public class OrderServiceImpl implements IOrderService {
* @Title: addOrder * @Title: addOrder
* @Description: TODO 增加订单 * @Description: TODO 增加订单
*/ */
private void addOrder(SysOrder order, SysOrder orderParam, byte orderType, Date now, String createBy, private void addOrder(SysOrder order, SysOrder orderParam, byte orderType, Date now, Integer createBy,
Integer afterSaleType) { Integer afterSaleType) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
String orderSn = getOrderSn(orderType); String orderSn = getOrderSn(orderType);
...@@ -2174,7 +2174,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2174,7 +2174,7 @@ public class OrderServiceImpl implements IOrderService {
SysOrder order = new SysOrder(); SysOrder order = new SysOrder();
order.setId(subOrderId); order.setId(subOrderId);
order.setCanceled((byte) BizConstants.ORDER_CANCELED); order.setCanceled((byte) BizConstants.ORDER_CANCELED);
order.setUpdateBy(UserUtils.getUserName(request)); order.setUpdateBy(UserUtils.getUserId(request));
Date now = new Date(); Date now = new Date();
order.setUpdateTime(now); order.setUpdateTime(now);
orderDao.updateByPrimaryKeySelective(order); orderDao.updateByPrimaryKeySelective(order);
...@@ -2220,7 +2220,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2220,7 +2220,7 @@ public class OrderServiceImpl implements IOrderService {
SysOrder order = new SysOrder(); SysOrder order = new SysOrder();
order.setId(subOrderId); order.setId(subOrderId);
order.setCanceled((byte) BizConstants.ORDER_CANCELED); order.setCanceled((byte) BizConstants.ORDER_CANCELED);
order.setUpdateBy(UserUtils.getUserName(request)); order.setUpdateBy(UserUtils.getUserId(request));
Date now = new Date(); Date now = new Date();
order.setUpdateTime(now); order.setUpdateTime(now);
orderDao.updateByPrimaryKeySelective(order); orderDao.updateByPrimaryKeySelective(order);
...@@ -2235,7 +2235,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2235,7 +2235,7 @@ public class OrderServiceImpl implements IOrderService {
SysOrder order = new SysOrder(); SysOrder order = new SysOrder();
order.setId(orderId); order.setId(orderId);
order.setCanceled((byte) BizConstants.ORDER_CANCELED); order.setCanceled((byte) BizConstants.ORDER_CANCELED);
order.setUpdateBy(UserUtils.getUserName(request)); order.setUpdateBy(UserUtils.getUserId(request));
Date now = new Date(); Date now = new Date();
order.setUpdateTime(now); order.setUpdateTime(now);
orderDao.updateByPrimaryKeySelective(order); orderDao.updateByPrimaryKeySelective(order);
...@@ -2297,7 +2297,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2297,7 +2297,7 @@ public class OrderServiceImpl implements IOrderService {
order.setId(orderId); order.setId(orderId);
order.setMechanicId(userId); order.setMechanicId(userId);
order.setActiveStatus((byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_MECHANIC_NOT_ACCEPT.getActiveStatus()); order.setActiveStatus((byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_MECHANIC_NOT_ACCEPT.getActiveStatus());
order.setUpdateBy(currentUserName); order.setUpdateBy(currentUserId);
order.setUpdateTime(now); order.setUpdateTime(now);
orderDao.updateByPrimaryKeySelective(order); orderDao.updateByPrimaryKeySelective(order);
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
<result column="remark" jdbcType="VARCHAR" property="remark" /> <result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> <result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> <result column="update_by" jdbcType="INTEGER" property="updateBy" />
<result column="device_no" jdbcType="VARCHAR" property="deviceNo" /> <result column="device_no" jdbcType="VARCHAR" property="deviceNo" />
<result column="install_location" jdbcType="VARCHAR" property="installLocation" /> <result column="install_location" jdbcType="VARCHAR" property="installLocation" />
<result column="overdue_reason" jdbcType="VARCHAR" property="overdueReason" /> <result column="overdue_reason" jdbcType="VARCHAR" property="overdueReason" />
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
#{carOwner,jdbcType=VARCHAR}, #{carOwnerPhone,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP}, #{carOwner,jdbcType=VARCHAR}, #{carOwnerPhone,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP},
#{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER}, #{mechanicId,jdbcType=INTEGER}, #{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER}, #{mechanicId,jdbcType=INTEGER},
#{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER}, #{updateBy,jdbcType=INTEGER},
#{deviceNo,jdbcType=VARCHAR}, #{installLocation,jdbcType=VARCHAR}, #{overdueReason,jdbcType=VARCHAR}, #{deviceNo,jdbcType=VARCHAR}, #{installLocation,jdbcType=VARCHAR}, #{overdueReason,jdbcType=VARCHAR},
#{repairType,jdbcType=TINYINT}, #{carPicture,jdbcType=VARCHAR}, #{vinNoPicture,jdbcType=VARCHAR}, #{repairType,jdbcType=TINYINT}, #{carPicture,jdbcType=VARCHAR}, #{vinNoPicture,jdbcType=VARCHAR},
#{installLocationPicture,jdbcType=VARCHAR}, #{completeTime,jdbcType=TIMESTAMP}) #{installLocationPicture,jdbcType=VARCHAR}, #{completeTime,jdbcType=TIMESTAMP})
...@@ -337,10 +337,10 @@ ...@@ -337,10 +337,10 @@
#{updateTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="createBy != null"> <if test="createBy != null">
#{createBy,jdbcType=VARCHAR}, #{createBy,jdbcType=INTEGER},
</if> </if>
<if test="updateBy != null"> <if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=INTEGER},
</if> </if>
<if test="deviceNo != null"> <if test="deviceNo != null">
#{deviceNo,jdbcType=VARCHAR}, #{deviceNo,jdbcType=VARCHAR},
...@@ -464,10 +464,10 @@ ...@@ -464,10 +464,10 @@
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="createBy != null"> <if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=INTEGER},
</if> </if>
<if test="updateBy != null"> <if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR}, update_by = #{updateBy,jdbcType=INTEGER},
</if> </if>
<if test="deviceNo != null"> <if test="deviceNo != null">
device_no = #{deviceNo,jdbcType=VARCHAR}, device_no = #{deviceNo,jdbcType=VARCHAR},
...@@ -533,8 +533,8 @@ ...@@ -533,8 +533,8 @@
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR}, update_by = #{updateBy,jdbcType=INTEGER},
device_no = #{deviceNo,jdbcType=VARCHAR}, device_no = #{deviceNo,jdbcType=VARCHAR},
install_location = #{installLocation,jdbcType=VARCHAR}, install_location = #{installLocation,jdbcType=VARCHAR},
overdue_reason = #{overdueReason,jdbcType=VARCHAR}, overdue_reason = #{overdueReason,jdbcType=VARCHAR},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!