|
|
@@ -223,6 +223,15 @@ public class CardBusiness {
|
|
|
return cardVos.stream().filter(p -> ObjectUtil.equal(p.getStatus(), CardStatusEnum.NORMAL.code().toString())).findFirst().orElse(null);
|
|
|
}
|
|
|
|
|
|
+ public PtCardVo getCardByFactoryId(Long factoryId){
|
|
|
+ PtCardBo bo = new PtCardBo();
|
|
|
+ bo.setFactoryId(factoryId);
|
|
|
+ List<PtCardVo> cardVos = ptCardService.queryList(bo);
|
|
|
+ if (CollectionUtil.isEmpty(cardVos)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return cardVos.get(0);
|
|
|
+ }
|
|
|
private R<ResultInfo> checkParam(PtCardBo cardBo, PtUserAccountVo userAccountVo, PtWorkstationVo workstationVo) {
|
|
|
Long factoryId = cardBo.getFactoryId();
|
|
|
Long userId = cardBo.getUserId();
|