Commit be071d71 by xiaoyj

订货单操作日志列表

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21725 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 406c25b3
package com.glsx.ordercenter.controller; package com.glsx.ordercenter.controller;
import java.util.Date; import java.util.Date;
import java.util.List;
import java.util.Map; import java.util.Map;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
...@@ -8,8 +9,7 @@ import javax.validation.groups.Default; ...@@ -8,8 +9,7 @@ import javax.validation.groups.Default;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.glsx.common.feign.client.CommonClient; import com.glsx.common.feign.client.CommonClient;
import com.glsx.ordercenter.pojo.SysIndentLogistics; import com.glsx.ordercenter.pojo.*;
import com.glsx.ordercenter.pojo.SysReceiveAddress;
import com.glsx.ordercenter.service.ReceiveAddressService; import com.glsx.ordercenter.service.ReceiveAddressService;
import com.glsx.ordercenter.utils.KdApiUtil; import com.glsx.ordercenter.utils.KdApiUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -25,8 +25,6 @@ import com.glsx.common.annotation.AuthCheck; ...@@ -25,8 +25,6 @@ import com.glsx.common.annotation.AuthCheck;
import com.glsx.common.constants.ResultObject; import com.glsx.common.constants.ResultObject;
import com.glsx.common.utils.UserUtils; import com.glsx.common.utils.UserUtils;
import com.glsx.ordercenter.constants.ResultCodeEnum; import com.glsx.ordercenter.constants.ResultCodeEnum;
import com.glsx.ordercenter.pojo.GroupA;
import com.glsx.ordercenter.pojo.SysIndent;
import com.glsx.ordercenter.service.IndentService; import com.glsx.ordercenter.service.IndentService;
/** /**
...@@ -127,4 +125,13 @@ public class IndentController extends BaseController{ ...@@ -127,4 +125,13 @@ public class IndentController extends BaseController{
} }
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(),ResultCodeEnum.SUCCESS.getMsg()); return new ResultObject(ResultCodeEnum.SUCCESS.getCode(),ResultCodeEnum.SUCCESS.getMsg());
} }
/**
* 订货单操作日志详情
*/
@RequestMapping(value = "/listIndentLog", method = RequestMethod.GET)
public ResultObject listIndentLog(String indentId) {
List<SysIndentLog> list=indentService.listIndentLog(indentId);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(),ResultCodeEnum.SUCCESS.getMsg(),list);
}
} }
...@@ -2,10 +2,13 @@ package com.glsx.ordercenter.mapper; ...@@ -2,10 +2,13 @@ package com.glsx.ordercenter.mapper;
import com.glsx.ordercenter.pojo.SysIndentLog; import com.glsx.ordercenter.pojo.SysIndentLog;
import java.util.List;
public interface SysIndentLogMapper { public interface SysIndentLogMapper {
int insert(SysIndentLog record); int insert(SysIndentLog record);
int insertSelective(SysIndentLog record); int insertSelective(SysIndentLog record);
List<SysIndentLog> listIndentLog(String indentId);
} }
\ No newline at end of file \ No newline at end of file
...@@ -4,8 +4,11 @@ import javax.servlet.http.HttpServletRequest; ...@@ -4,8 +4,11 @@ import javax.servlet.http.HttpServletRequest;
import com.glsx.common.constants.ResultObject; import com.glsx.common.constants.ResultObject;
import com.glsx.ordercenter.pojo.SysIndent; import com.glsx.ordercenter.pojo.SysIndent;
import com.glsx.ordercenter.pojo.SysIndentLog;
import com.glsx.ordercenter.pojo.SysIndentLogistics; import com.glsx.ordercenter.pojo.SysIndentLogistics;
import java.util.List;
/** /**
* *
* @Title IndentService.java * @Title IndentService.java
...@@ -68,4 +71,6 @@ public interface IndentService { ...@@ -68,4 +71,6 @@ public interface IndentService {
* *
*/ */
SysIndent selectByPrimaryKey(Integer id); SysIndent selectByPrimaryKey(Integer id);
List<SysIndentLog> listIndentLog(String indentId);
} }
package com.glsx.ordercenter.service.impl; package com.glsx.ordercenter.service.impl;
import java.util.Date; import java.util.Date;
import java.util.List;
import com.glsx.ordercenter.constants.IndentStatusEnum; import com.glsx.ordercenter.constants.IndentStatusEnum;
import com.glsx.ordercenter.mapper.SysIndentLogisticsMapper; import com.glsx.ordercenter.mapper.SysIndentLogisticsMapper;
...@@ -88,6 +89,9 @@ public class IndentServiceImpl implements IndentService { ...@@ -88,6 +89,9 @@ public class IndentServiceImpl implements IndentService {
sysIndent.setUpdateBy(userId); sysIndent.setUpdateBy(userId);
sysIndent.setUpdateTime(new Date()); sysIndent.setUpdateTime(new Date());
indentDao.updateByPrimaryKeySelective(sysIndent); indentDao.updateByPrimaryKeySelective(sysIndent);
//添加订单操作日志
String remark="发货";
addIndentLog(sysIndentLogistics.getIndentId(),null,remark);
//添加到物流信息表 //添加到物流信息表
sysIndentLogistics.setCreateBy(userId); sysIndentLogistics.setCreateBy(userId);
sysIndentLogistics.setCreateTime(new Date()); sysIndentLogistics.setCreateTime(new Date());
...@@ -204,5 +208,15 @@ public class IndentServiceImpl implements IndentService { ...@@ -204,5 +208,15 @@ public class IndentServiceImpl implements IndentService {
return num; return num;
} }
/**
* 订货单操作日志
* @param indentId
* @return
*/
@Override
public List<SysIndentLog> listIndentLog(String indentId) {
List<SysIndentLog> sysIndentLogs=indentLogDao.listIndentLog(indentId);
return sysIndentLogs;
}
} }
...@@ -68,4 +68,9 @@ ...@@ -68,4 +68,9 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<select id="listIndentLog" resultMap="BaseResultMap">
select * from sys_indent_log where indent_id=#{indentId} order by create_time desc
</select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!