4 changed files with 36 additions and 4 deletions
@ -0,0 +1,12 @@
|
||||
<?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.logpm.report.mapper.InLibraryDeliverMapper"> |
||||
<select id="obtainTheNumberOfInventoryListings" resultType="java.lang.Integer"> |
||||
select SUM( |
||||
quantity |
||||
) as con |
||||
from logpm_distribution_parcel_list |
||||
where warehouse_id = #{id} |
||||
|
||||
</select> |
||||
</mapper> |
@ -1,12 +1,24 @@
|
||||
package com.logpm.report.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.report.mapper.InLibraryDeliverMapper; |
||||
import com.logpm.report.service.InLibraryDeliverService; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Service |
||||
@AllArgsConstructor |
||||
public class InLibraryDeliverServiceImpl implements InLibraryDeliverService { |
||||
|
||||
private InLibraryDeliverMapper inLibraryDeliverMapper; |
||||
|
||||
@Override |
||||
public IPage<InLibraryDeliverService> DistributionParcelListPage() { |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public Integer indexCount(Long id) { |
||||
return inLibraryDeliverMapper.obtainTheNumberOfInventoryListings(id); |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue