22 changed files with 471 additions and 82 deletions
@ -0,0 +1,40 @@ |
|||||
|
package com.yxt.warehouse.apiadmin; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.warehouse.biz.operationrecord.OperationRecordDto; |
||||
|
import com.yxt.warehouse.biz.operationrecord.OperationRecordService; |
||||
|
import com.yxt.warehouse.biz.operationrecord.OperationRecordVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Api(tags = "操作记录") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/operationrecord") |
||||
|
public class OperationRecordRest { |
||||
|
@Autowired |
||||
|
OperationRecordService operationRecordService; |
||||
|
|
||||
|
|
||||
|
@PostMapping("save") |
||||
|
@ApiOperation("新增") |
||||
|
ResultBean<String> saveOrUpdate(@RequestBody OperationRecordDto dto) { |
||||
|
return operationRecordService.save(dto); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("/details") |
||||
|
@ApiOperation("详情") |
||||
|
ResultBean<List<OperationRecordVo>> details(@RequestParam("sid") String sid) { |
||||
|
return operationRecordService.details(sid); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.warehouse.biz.operationrecord; |
||||
|
|
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OperationRecord extends BaseEntity { |
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; |
||||
|
@ApiModelProperty("修改用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("修改用户") |
||||
|
private String userName; |
||||
|
@ApiModelProperty("内容") |
||||
|
private String content; |
||||
|
|
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.warehouse.biz.operationrecord; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OperationRecordDto { |
||||
|
|
||||
|
private String sid; |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("创建时间") |
||||
|
private Date createTime; |
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; |
||||
|
@ApiModelProperty("修改用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("修改用户") |
||||
|
private String userName; |
||||
|
@ApiModelProperty("内容") |
||||
|
private String content; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.warehouse.biz.operationrecord; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.warehouse.biz.warehouseansbill.WarehouseAnsDetailsVo; |
||||
|
import com.yxt.warehouse.biz.warehouseansbilldetail.WarehouseAnsBillDetail; |
||||
|
import com.yxt.warehouse.biz.warehouseansbilldetail.WarehouseAnsBillDetailVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface OperationRecordMapper extends BaseMapper<OperationRecord> { |
||||
|
|
||||
|
List<OperationRecordVo> details(String sid); |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.warehouse.biz.operationrecord.OperationRecordMapper"> |
||||
|
|
||||
|
<select id="details" resultType="com.yxt.warehouse.biz.operationrecord.OperationRecordVo"> |
||||
|
select a.* |
||||
|
from operation_record a |
||||
|
where a.billSid = #{sid} |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,42 @@ |
|||||
|
package com.yxt.warehouse.biz.operationrecord; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OperationRecordQuery implements Query { |
||||
|
@ApiModelProperty("业务类型") |
||||
|
private String busTypeKey; |
||||
|
@ApiModelProperty("外部单号(业务单据编号)") |
||||
|
private String sourceBillNo; |
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; |
||||
|
@ApiModelProperty("商品sid") |
||||
|
private String goodsSkuSid; |
||||
|
@ApiModelProperty("申请开始时间") |
||||
|
private String applicationTimeStart; |
||||
|
@ApiModelProperty("申请结束时间") |
||||
|
private String applicationTimeEnd; |
||||
|
@ApiModelProperty("货物状态(在途、部分收货、已收货、已取消)") |
||||
|
private String billState; |
||||
|
@ApiModelProperty("供应商") |
||||
|
private String supplierName; |
||||
|
@ApiModelProperty("运单号") |
||||
|
private String waybillNumber; |
||||
|
@ApiModelProperty("库区sid") |
||||
|
private String warehouseRackSid; |
||||
|
|
||||
|
private String orgLevelKey;//权限等级
|
||||
|
@ApiModelProperty("菜单路由") |
||||
|
private String menuUrl; |
||||
|
@ApiModelProperty("组织全路径sid") |
||||
|
private String orgPath; |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
private int index; |
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
package com.yxt.warehouse.biz.operationrecord; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.date.DateTime; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.base.utils.StringUtils; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.warehouse.biz.warehouseansbill.WarehouseAnsDetailsVo; |
||||
|
import com.yxt.warehouse.biz.warehouseansbilldetail.WarehouseAnsBillDetailDto; |
||||
|
import com.yxt.warehouse.biz.warehouseansbilldetail.WarehouseAnsBillDetailService; |
||||
|
import com.yxt.warehouse.biz.warehouseansbilldetail.WarehouseAnsListDetailsVo; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.Collections; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class OperationRecordService extends MybatisBaseService<OperationRecordMapper, OperationRecord> { |
||||
|
|
||||
|
|
||||
|
|
||||
|
public ResultBean<String> save(OperationRecordDto dto) { |
||||
|
ResultBean<String> rb = ResultBean.fireFail(); |
||||
|
String sid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(sid)) { |
||||
|
OperationRecord WarehouseAnsBill = new OperationRecord(); |
||||
|
BeanUtil.copyProperties(dto, WarehouseAnsBill, "sid"); |
||||
|
sid = WarehouseAnsBill.getSid(); |
||||
|
WarehouseAnsBill.setCreateTime(new DateTime()); |
||||
|
WarehouseAnsBill.setCreateBySid(dto.getUserSid()); |
||||
|
baseMapper.insert(WarehouseAnsBill); |
||||
|
|
||||
|
} |
||||
|
return rb.success().setData(sid); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
public ResultBean<List<OperationRecordVo>> details(String sid) { |
||||
|
ResultBean<List<OperationRecordVo>> rb = ResultBean.fireFail(); |
||||
|
List<OperationRecordVo> operationRecordVoList = baseMapper.details(sid); |
||||
|
return rb.success().setData(operationRecordVoList); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.warehouse.biz.operationrecord; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OperationRecordVo { |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; |
||||
|
@ApiModelProperty("修改用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("修改用户") |
||||
|
private String userName; |
||||
|
@ApiModelProperty("内容") |
||||
|
private String content; |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseansbill; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 15:24 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarehouseAnsBillExcelVo { |
||||
|
|
||||
|
} |
@ -1,60 +0,0 @@ |
|||||
package com.yxt.warehouse.biz.warehouseansbill; |
|
||||
|
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
|
||||
import io.swagger.annotations.ApiModelProperty; |
|
||||
import lombok.Data; |
|
||||
|
|
||||
import java.util.Date; |
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* @author wangpengfei |
|
||||
* @date 2024/7/23 16:26 |
|
||||
*/ |
|
||||
@Data |
|
||||
public class WarehouseAnsSupplierVo { |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
||||
@ApiModelProperty("申请时间") |
|
||||
private Date applicationTime; |
|
||||
@ApiModelProperty("单据编号") |
|
||||
private String billNo; |
|
||||
@ApiModelProperty("业务类型key(采购预约、调拨预约、其他预约)") |
|
||||
private String busTypeKey; |
|
||||
@ApiModelProperty("业务类型value(采购预约、调拨预约、其他预约)") |
|
||||
private String busTypeValue; |
|
||||
@ApiModelProperty("交接状态") |
|
||||
private String handoverStatus; |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
||||
@ApiModelProperty("交接时间") |
|
||||
private Date handoverTime; |
|
||||
@ApiModelProperty("货物状态(在途、部分收货、已收货、已取消)") |
|
||||
private Integer billState; |
|
||||
@ApiModelProperty("仓库sid") |
|
||||
private Integer warehouseSid; |
|
||||
@ApiModelProperty("仓库名") |
|
||||
private String warehouseName; |
|
||||
@ApiModelProperty("库区sid") |
|
||||
private String warehouseRackSid; |
|
||||
@ApiModelProperty("库区名") |
|
||||
private String warehouseRackName; |
|
||||
@ApiModelProperty("申请人") |
|
||||
private String applicant; |
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
||||
@ApiModelProperty("预约时间") |
|
||||
private Date reservationTime; |
|
||||
@ApiModelProperty("供应商sid") |
|
||||
private String supplierSid; |
|
||||
@ApiModelProperty("供应商") |
|
||||
private String supplierName; |
|
||||
@ApiModelProperty("外部单号") |
|
||||
private String sourceBillNo; |
|
||||
@ApiModelProperty("联系人") |
|
||||
private String contact; |
|
||||
@ApiModelProperty("联系电话") |
|
||||
private String mobile; |
|
||||
@ApiModelProperty("使用组织sid") |
|
||||
private String useOrgSid; |
|
||||
@ApiModelProperty("创建组织sid") |
|
||||
private String createOrgSid; |
|
||||
|
|
||||
} |
|
Loading…
Reference in new issue