Commit 28dec41b by zhanghj

V1.2.0--完善增加订货单功能代码

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21815 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 061b9ca6
......@@ -66,11 +66,13 @@ public class IndentServiceImpl implements IndentService {
Integer currentUserId = UserUtils.getUserId(request);
Integer terminalType = indent.getTerminalType();
Integer sendType = BizConstants.INDENT_SEND_TYPE_GLSX;
Integer indentStatus = IndentStatusEnum.INDENT_WAITDELIVER.getIndentStatus();
/*
* 技工端发订货单,先判断发货方式
*/
if (Constants.USER_TYPE_MECHANIC == terminalType) {
//技工端则状态为待审核
indentStatus = IndentStatusEnum.INDENT_UNCHECKED.getIndentStatus();
//接受人为当前用户
indent.setUserId(currentUserId);
JSONObject result = userClient.getMechanicById(currentUserId);
......@@ -82,6 +84,7 @@ public class IndentServiceImpl implements IndentService {
}
}
}
indent.setIndentStatus(indentStatus);
indent.setSendType(sendType);
indent.setCreateBy(currentUserId);
indent.setCreateTime(new Date());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!