| | |
| | | |
| | | //右上角新增-->技术指标-->选择工序,工艺 |
| | | @Override |
| | | public List<Map<String, Object>> chooseTech(Integer specificationsId) { |
| | | return technologyMapper.chooseTech(specificationsId); |
| | | public List<Map<String, Object>> chooseTech(Integer specificationsId, Integer version) { |
| | | return technologyMapper.chooseTech(specificationsId, version); |
| | | } |
| | | |
| | | //右上角新增-->技术指标-->选择项目父类 |
| | |
| | | Product product = new Product(); |
| | | String required = productDto.getRequired(); |
| | | String internal = productDto.getInternal(); |
| | | if (ObjectUtils.isNotEmpty(required)){ |
| | | if (ObjectUtils.isNotEmpty(required)) { |
| | | char requ = required.charAt(0); |
| | | if (requ != '>' && requ != '<' && requ != '=') { |
| | | return "标准值输入格式有问题!"; |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(internal)){ |
| | | if (ObjectUtils.isNotEmpty(internal)) { |
| | | char inter = internal.charAt(0); |
| | | if (inter != '>' && inter != '<' && inter != '=') { |
| | | return "内控值输入格式有问题!"; |
| | |
| | | @Override |
| | | public String write(Integer id, String required, String internal) { |
| | | //校验标准值,内控值格式 |
| | | if (ObjectUtils.isNotEmpty(internal)) { |
| | | char inter = internal.charAt(0); |
| | | char requ = required.charAt(0); |
| | | if (inter != '>' && inter != '<' && inter != '=') { |
| | | return "内控值输入格式有问题!"; |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(required)) { |
| | | char requ = required.charAt(0); |
| | | if (requ != '>' && requ != '<' && requ != '=') { |
| | | return "标准值输入格式有问题!"; |
| | | } |
| | | } |
| | | Product product = new Product(); |
| | | product.setId(id); |
| | | product.setRequired(required); |