Commit 3d25e11d by zhanghj

V1.5.0--修复确认收货的bug

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24246 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 8fe041c3
......@@ -96,7 +96,7 @@ public class IndentServiceImpl implements IndentService {
private IndentUtil indentUtil;
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public ResultObject add(HttpServletRequest request, SysIndent indent) {
// TODO Auto-generated method stub
Integer currentUserId = UserUtils.getUserId(request);
......@@ -634,7 +634,7 @@ public class IndentServiceImpl implements IndentService {
//减少服务商库存
ResultObject result = deviceRepertoryService.reduceDeviceRepertory(serviceId, deviceType, deviceAmount);
if (result != null) {
return result;
throw BusinessException.create(result.getCode(), result.getMessage());
}
//增加技工库存
deviceRepertoryService.addDeviceRepertory(userId, deviceType, deviceAmount);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!