Browse Source

[feat]

委外加工 委外报价
新增mapper及接口查询导出委外报价列表方法;
dev
王晓迪 4 months ago
parent
commit
d3d57d16ed
  1. 5
      ruoyi-admin/src/main/java/com/ruoyi/system/service/IOutsourceQuoteService.java
  2. 10
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/OutsourceQuoteServiceImpl.java
  3. 7
      ruoyi-admin/src/main/resources/mapper/system/OutsourceQuoteMapper.xml

5
ruoyi-admin/src/main/java/com/ruoyi/system/service/IOutsourceQuoteService.java

@ -77,4 +77,9 @@ public interface IOutsourceQuoteService
* 作废委外报价单
* */
int cancelOutsourceQuoteById(Long id);
/**
* 导出列表
* */
List<OutsourceQuoteVO> getExportList(OutsourceQuoteVO outsourceQuote);
}

10
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/OutsourceQuoteServiceImpl.java

@ -133,6 +133,11 @@ public class OutsourceQuoteServiceImpl implements IOutsourceQuoteService
} else {
tempOutsourceQuoteVO.setTaskName("未启动");
}
if(tempOutsourceQuoteVO.getAuditStatus().equals("1")){
tempOutsourceQuoteVO.setTaskName("审核通过");
}else if(tempOutsourceQuoteVO.getAuditStatus().equals("2")){
tempOutsourceQuoteVO.setTaskName("审核拒绝");
}
returnList.add(tempOutsourceQuoteVO);
}
returnList.setTotal(org.springframework.util.CollectionUtils.isEmpty(list) ? 0 : list.getTotal());
@ -260,6 +265,11 @@ public class OutsourceQuoteServiceImpl implements IOutsourceQuoteService
return 0;
}
@Override
public List<OutsourceQuoteVO> getExportList(OutsourceQuoteVO outsourceQuoteVO) {
return outsourceQuoteMapper.selectOutsourceQuoteList(outsourceQuoteVO);
}
/**
* 创建委外报价审核流程

7
ruoyi-admin/src/main/resources/mapper/system/OutsourceQuoteMapper.xml

@ -168,7 +168,12 @@
</foreach>
</delete>
<select id="selectQuoteListByQuoteCodes" parameterType="String" resultMap="OutsourceQuoteResult">
<include refid="selectOutsourceQuoteVo"/>
<foreach item="outsourceQuoteCode" collection="array" open="(" separator="," close=")">
#{outsourceQuoteCode}
</foreach>
</select>
<delete id="deleteOutsourceQuoteChildByOutsourceProcessCode" parameterType="String">
delete from outsource_quote_child where outsource_process_code in

Loading…
Cancel
Save