盘点入库,入库出库查询
This commit is contained in:
parent
22a3ad16ff
commit
970f65f962
|
|
@ -8,6 +8,7 @@ import com.bonus.material.common.annotation.PreventRepeatSubmit;
|
|||
import com.bonus.material.ma.domain.PutInStorageBean;
|
||||
import com.bonus.material.ma.domain.SavePutInfoDto;
|
||||
import com.bonus.material.ma.domain.SupplierInfo;
|
||||
import com.bonus.material.ma.service.ITypeService;
|
||||
import com.bonus.material.ma.service.WarehousingService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
|
@ -28,12 +29,17 @@ public class WarehousingController extends BaseController {
|
|||
@Autowired
|
||||
private WarehousingService warehousingService;
|
||||
|
||||
@Autowired
|
||||
private ITypeService typeService;
|
||||
|
||||
/**
|
||||
* 查询入库盘点列表
|
||||
*/
|
||||
@ApiOperation(value = "获取入库盘点列表")
|
||||
@GetMapping("/getList")
|
||||
public TableDataInfo getList(PutInStorageBean bean) {
|
||||
Long deptId = typeService.getUserDeptId();
|
||||
bean.setCompanyId(deptId);
|
||||
startPage();
|
||||
List<PutInStorageBean> list = warehousingService.getList(bean);
|
||||
return getDataTable(list);
|
||||
|
|
|
|||
|
|
@ -98,4 +98,6 @@ public class PutInStorageBean extends BaseEntity {
|
|||
private String code;
|
||||
|
||||
private Integer infoId;
|
||||
|
||||
private Long companyId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@
|
|||
AND bs.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||
</if>
|
||||
<if test="companyId!=null">
|
||||
and bs.company_id = #{companyId}
|
||||
and mt.company_id = #{companyId}
|
||||
</if>
|
||||
order by bs.create_time desc
|
||||
</select>
|
||||
|
|
@ -357,7 +357,7 @@
|
|||
AND bs.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||
</if>
|
||||
<if test="companyId!=null">
|
||||
and bs.company_id = #{companyId}
|
||||
and mt.company_id = #{companyId}
|
||||
</if>
|
||||
order by bs.create_time desc
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@
|
|||
left join ma_type mt2 ON mt1.parent_id = mt2.type_id and mt2.del_flag = '0'
|
||||
left join ma_type mt3 ON mt2.parent_id = mt3.type_id and mt3.del_flag = '0'
|
||||
WHERE 1=1
|
||||
<if test="companyId !=null">
|
||||
and mt.company_id=#{companyId}
|
||||
</if>
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
AND (
|
||||
psi.code LIKE CONCAT('%',#{keyWord},'%') OR
|
||||
|
|
|
|||
Loading…
Reference in New Issue