【一期物料主数据】制作物料申请

This commit is contained in:
10001392 2024-07-26 10:02:46 +08:00
parent 77e2cea585
commit 092d010cf0
2 changed files with 16 additions and 0 deletions

View File

@ -152,4 +152,14 @@ public class MaterialAttrValueApi extends BaseApi {
return materialAttrValueService.getI18n21(attrValueCn);
}
/**
* 获取制作物料名称国际化表
* @param
*/
@GetMapping("getI18n21List")
@ApiOperation("auto-获取制作物料名称国际化表")
public ResultVO<List<MaterialAttrValueI18n21Entity>> getI18n21List(@RequestParam("attrValueCn") String attrValueCn) {
return materialAttrValueService.getI18n21List(attrValueCn);
}
}

View File

@ -167,4 +167,10 @@ public class MaterialAttrValueService extends ServiceImpl<MaterialAttrValueMappe
queryWrapper.eq(MaterialAttrValueI18n21Entity::getAttrValueCn, attrValueCn);
return ResultVO.success(materialAttrValueI18n21Mapper.selectOne(queryWrapper));
}
public ResultVO<List<MaterialAttrValueI18n21Entity>> getI18n21List(String attrValueCn) {
LambdaQueryWrapper<MaterialAttrValueI18n21Entity> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.like(MaterialAttrValueI18n21Entity::getAttrValueCn, attrValueCn);
return ResultVO.success(materialAttrValueI18n21Mapper.selectList(queryWrapper));
}
}