| | |
| | | @ApiModelProperty("1草稿") |
| | | private Integer status; |
| | | |
| | | |
| | | @ApiModelProperty("商品信息") |
| | | private List<clinicWarehouseGoodsDto> dtos; |
| | | } |
| | |
| | | // Map<String, List<clinicWarehouseGoodsDto>> collect = dtos.stream().collect(Collectors.groupingBy(clinicWarehouseGoodsDto::getSupplierId)); |
| | | |
| | | // for (Map.Entry<String, List<clinicWarehouseGoodsDto>> stringListEntry : collect.entrySet()) { |
| | | if(dtos.getStatus()==null || dtos.getStatus()!=1 ){ |
| | | // 草稿-》正式 移除所有草稿 |
| | | this.baseMapper.delete(new LambdaQueryWrapper<TErpClinicWarehousing>().eq(TErpClinicWarehousing::getClinicId,supplierClinicId).eq(TErpClinicWarehousing::getStatus,1)); |
| | | } |
| | | |
| | | |
| | | TErpClinicWarehousing tErpClinicWarehousing = new TErpClinicWarehousing(); |
| | | tErpClinicWarehousing.setClinicId(supplierClinicId); |
| | | tErpClinicWarehousing.setCreateId(user.getUserId().toString()); |
| | |
| | | @Override |
| | | public PageInfo<TErpIssueReportingVO> pageList(TErpIssueReportingQuery query) { |
| | | PageInfo<TErpIssueReportingVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | if(query.getReportStartTime()!=null && !query.getReportStartTime().isEmpty() && query.getReportEndTime()!=null && !query.getReportEndTime().isEmpty()){ |
| | | query.setReportStartTime(query.getReportStartTime()+" 00:00:00"); |
| | | query.setReportEndTime(query.getReportEndTime()+" 23:59:59"); |
| | | } |
| | | List<TErpIssueReportingVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | if(CollectionUtils.isEmpty(list)){ |
| | | return pageInfo; |
| | |
| | | <if test="query.status != null"> |
| | | AND status = #{query.status} |
| | | </if> |
| | | <if test="query.reportType != null and query.reportUserId !=null"> |
| | | AND report_type = #{query.reportType} and report_user_id =#{query.reportUserId} |
| | | <if test="query.reportType != null "> |
| | | AND report_type = #{query.reportType} |
| | | </if> |
| | | <if test="query.reportUserId !=null"> |
| | | and report_user_id =#{query.reportUserId} |
| | | </if> |
| | | <if test="query.createBy != null and query.createBy != ''"> |
| | | AND create_by LIKE concat('%',#{query.createBy},'%') |
| | |
| | | left join (select id,app_user_id, max(check_time) as lastInspectionTime from t_sys_inspection limit 1) tsi on tsi.app_user_id = tsau.id |
| | | <where> |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | and tsau.phone = #{query.phone} |
| | | and tsau.phone like concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.nickName != null and query.nickName != ''"> |
| | | and tsau.nick_name like concat('%',#{query.nickName},'%') |
| | |
| | | left join (select id,app_user_id, max(check_time) as lastInspectionTime from t_sys_inspection limit 1) tsi on tsi.app_user_id = tsau.id |
| | | <where> |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | and tsau.phone = #{query.phone} |
| | | and tsau.phone like concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.nickName != null and query.nickName != ''"> |
| | | and tsau.nick_name like concat('%',#{query.nickName},'%') |