This commit is contained in:
parent
860e5e9aa4
commit
97c0b32dc3
|
|
@ -17,4 +17,6 @@ public interface BomNewOriginalChildMapper extends BaseMapper<BomNewOriginalChil
|
||||||
|
|
||||||
|
|
||||||
void delOriginalChildNotInRowIds(@Param("rowIds")List<Long> rowIds ,@Param("parentRowId") Long parentRowId);
|
void delOriginalChildNotInRowIds(@Param("rowIds")List<Long> rowIds ,@Param("parentRowId") Long parentRowId);
|
||||||
|
|
||||||
|
List<Long> selectMaterialParent(@Param("drawingNo") String drawingNo) ;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,19 @@
|
||||||
package com.nflg.product.bomnew.service.domain.ReverseReport;
|
package com.nflg.product.bomnew.service.domain.ReverseReport;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.db.sql.SqlBuilder;
|
||||||
|
import cn.hutool.extra.spring.SpringUtil;
|
||||||
|
import com.nflg.product.bomnew.constant.ReportConstant;
|
||||||
|
import com.nflg.product.bomnew.pojo.entity.BomNewOriginalChildEntity;
|
||||||
import com.nflg.product.bomnew.pojo.query.ReverseReportQuery;
|
import com.nflg.product.bomnew.pojo.query.ReverseReportQuery;
|
||||||
|
import com.nflg.product.bomnew.pojo.vo.BomOriginalListVO;
|
||||||
|
import com.nflg.product.bomnew.service.BomNewOriginalChildService;
|
||||||
|
import com.nflg.product.bomnew.service.RedisService;
|
||||||
|
import org.omg.CORBA.PRIVATE_MEMBER;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 原始BOM-反查
|
* 原始BOM-反查
|
||||||
|
|
@ -11,7 +24,39 @@ public class OriginalBomQuery {
|
||||||
*/
|
*/
|
||||||
private ReverseReportQuery queryParam;
|
private ReverseReportQuery queryParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报表结果
|
||||||
|
*/
|
||||||
|
private List<BomOriginalListVO> reportResult;
|
||||||
|
|
||||||
|
private RedisService redisService= SpringUtil.getBean(RedisService.class);
|
||||||
|
|
||||||
|
private BomNewOriginalChildService originalChildService=SpringUtil.getBean(BomNewOriginalChildService.class);
|
||||||
|
|
||||||
public OriginalBomQuery(ReverseReportQuery inQueryParam){
|
public OriginalBomQuery(ReverseReportQuery inQueryParam){
|
||||||
this.queryParam=inQueryParam;
|
this.queryParam=inQueryParam;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void report(){
|
||||||
|
if(queryParam.getQueryType().equals(ReportConstant.QueryTypeEnum.SINGLE.getValue())){
|
||||||
|
singleLevelReport();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单层报表
|
||||||
|
*/
|
||||||
|
public void singleLevelReport(){
|
||||||
|
List<Long> parentRowIds = originalChildService.getBaseMapper().selectMaterialParent(queryParam.getDrawingNo());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,11 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
<!--报表反查-->
|
||||||
|
<select id="selectMaterialParent" resultType="java.lang.Long">
|
||||||
|
|
||||||
|
select parent_row_id parent_row_id from t_bom_new_original_child where drawing_no=#{drawingNo} and `status`=2
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue