1.添加根据客户ID查询启用的垛号规则的数据接口

master
x_z 3 years ago
parent a120995e1c
commit 2c0268f7d9

@ -87,4 +87,19 @@ public class StockRulesController {
return ResultVOUtils.success("删除成功");
}
/**
* ID
*
* @param customerId
* @return
*/
@GetMapping("/udims/stockRules/getEnableStockRule")
public BaseResponse getEnableStockRule(String customerId) {
if (StrUtil.isBlank(customerId)) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
StockRulesEntity stockRulesEntity = stockRulesService.getEnableStockRule(customerId);
return ResultVOUtils.success(stockRulesEntity);
}
}

@ -80,9 +80,23 @@ public class StockRulesService {
/**
*
*
* @param id
* @param id ID
*/
public void delete(String id) {
stockRulesDao.deleteById(id);
}
/**
* ID
*
* @param customerId ID
* @return
*/
public StockRulesEntity getEnableStockRule(String customerId) {
StockRulesEntity stockRulesEntity = stockRulesDao.selectOne(new QueryWrapper<StockRulesEntity>()
.eq(StockRulesEntity.COL_CUSTOMERID, customerId)
.eq(StockRulesEntity.COL_STATUS, 1));
return stockRulesEntity;
}
}

Loading…
Cancel
Save