入库盘点
This commit is contained in:
parent
0f4ae97bad
commit
b42e9e9ab3
|
|
@ -0,0 +1,36 @@
|
|||
package com.bonus.sgzb.material.controller;
|
||||
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.material.domain.PutInStorageBean;
|
||||
import com.bonus.sgzb.material.service.InventoryAndWarehousingService;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @description 入库盘点
|
||||
* @author hay
|
||||
* @date 2024/3/27 13:28
|
||||
*/
|
||||
@Api(tags = " 入库盘点")
|
||||
@RestController
|
||||
@RequestMapping("/inventoryAndWarehousing")
|
||||
public class InventoryAndWarehousingController extends BaseController {
|
||||
@Autowired
|
||||
private InventoryAndWarehousingService inventoryAndWarehousingService;
|
||||
|
||||
/**
|
||||
* 查询入库盘点列表
|
||||
*/
|
||||
@ApiOperation(value = "获取入库盘点列表")
|
||||
@GetMapping("/getList")
|
||||
public TableDataInfo getList(PutInStorageBean bean) {
|
||||
startPage();
|
||||
List<PutInStorageBean> list = inventoryAndWarehousingService.getList(bean);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
package com.bonus.sgzb.material.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 入库盘点
|
||||
* @author hay
|
||||
* @date 2024/3/27 16:30
|
||||
*/
|
||||
@Data
|
||||
public class PutInStorageBean extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
/** 入库形式 */
|
||||
@ApiModelProperty(value = "入库形式")
|
||||
private String putInType;
|
||||
|
||||
/** 入库数量 */
|
||||
@ApiModelProperty(value = "入库数量")
|
||||
private BigDecimal num;
|
||||
|
||||
/** 创建者 */
|
||||
@ApiModelProperty(value = "创建者")
|
||||
private Integer creator;
|
||||
|
||||
/** 入库人 */
|
||||
@ApiModelProperty(value = "入库人")
|
||||
private String userName;
|
||||
|
||||
/** 盘点入库单号 */
|
||||
@ApiModelProperty(value = "盘点入库单号")
|
||||
private String code;
|
||||
|
||||
/** 单位ID */
|
||||
@ApiModelProperty(value = "单位ID")
|
||||
private String unitId;
|
||||
|
||||
/** 单位名称 */
|
||||
@ApiModelProperty(value = "单位名称")
|
||||
private String unitName;
|
||||
|
||||
/** 工程ID */
|
||||
@ApiModelProperty(value = "工程ID")
|
||||
private String projectId;
|
||||
|
||||
/** 工程名称 */
|
||||
@ApiModelProperty(value = "工程名称")
|
||||
private String projectName;
|
||||
|
||||
/** 创建日期 */
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private String createDate;
|
||||
|
||||
/** 备注 */
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
|
||||
|
||||
/** 主信息 */
|
||||
@ApiModelProperty(value = "主信息")
|
||||
private Integer info;
|
||||
|
||||
/** 库房 */
|
||||
@ApiModelProperty(value = "库房")
|
||||
private Integer ram;
|
||||
|
||||
/** 设备工器具类型 */
|
||||
@ApiModelProperty(value = "设备工器具类型")
|
||||
private Integer type;
|
||||
|
||||
/** 设备工器具类型名称 */
|
||||
@ApiModelProperty(value = "设备工器具类型名称")
|
||||
private String typeName;
|
||||
|
||||
/** 设备主键 */
|
||||
@ApiModelProperty(value = "设备主键")
|
||||
private Integer machine;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.bonus.sgzb.material.mapper;
|
||||
|
||||
import com.bonus.sgzb.material.domain.PutInStorageBean;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 入库盘点
|
||||
* @author hay
|
||||
* @date 2024/3/27 13:33
|
||||
*/
|
||||
@Mapper
|
||||
public interface InventoryAndWarehousingMapper {
|
||||
|
||||
/**
|
||||
* 查询入库盘点列表
|
||||
* @param bean
|
||||
* @return 结果
|
||||
*/
|
||||
List<PutInStorageBean> getList(PutInStorageBean bean);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package com.bonus.sgzb.material.service;
|
||||
|
||||
|
||||
import com.bonus.sgzb.material.domain.PutInStorageBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 入库盘点
|
||||
* @author hay
|
||||
* @date 2024/3/27 13:31
|
||||
*/
|
||||
public interface InventoryAndWarehousingService {
|
||||
|
||||
/**
|
||||
* 查询入库盘点列表
|
||||
* @param bean
|
||||
* @return 结果
|
||||
*/
|
||||
List<PutInStorageBean> getList(PutInStorageBean bean);
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.bonus.sgzb.material.service.impl;
|
||||
|
||||
import com.bonus.sgzb.material.domain.PutInStorageBean;
|
||||
import com.bonus.sgzb.material.mapper.InventoryAndWarehousingMapper;
|
||||
import com.bonus.sgzb.material.service.InventoryAndWarehousingService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 入库盘点
|
||||
* @author hay
|
||||
* @date 2024/3/27 13:32
|
||||
*/
|
||||
@Service
|
||||
public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousingService {
|
||||
|
||||
@Autowired
|
||||
private InventoryAndWarehousingMapper inventoryAndWarehousingMapper;
|
||||
|
||||
@Override
|
||||
public List<PutInStorageBean> getList(PutInStorageBean bean) {
|
||||
return inventoryAndWarehousingMapper.getList(bean);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<?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.bonus.sgzb.material.mapper.InventoryAndWarehousingMapper">
|
||||
|
||||
<select id="getList" resultType="com.bonus.sgzb.material.domain.PutInStorageBean">
|
||||
SELECT
|
||||
pisi.PUT_IN_TYPE as putInType,
|
||||
lot.lot_name as projectName,
|
||||
bui.unit_name as unitName,
|
||||
pisi.`CODE` as code,
|
||||
mt2.type_name as typeName,
|
||||
su.user_name as userName,
|
||||
pisi.CREATE_DATE as createDate
|
||||
FROM
|
||||
ma_type_put_in_storage_info pisi
|
||||
LEFT JOIN ma_type_put_in_storage_details pisd on pisi.id=pisd.INFO
|
||||
LEFT JOIN bm_project_lot lot on lot.lot_id=pisi.PROJECT_ID
|
||||
LEFT JOIN bm_unit_info bui on bui.unit_id=pisi.UNIT_ID
|
||||
LEFT JOIN ma_type mt on mt.type_id=pisd.TYPE
|
||||
LEFT JOIN ma_type mt2 on mt2.type_id=mt.parent_id
|
||||
LEFT JOIN sys_user su on su.user_id=pisi.CREATOR
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue