все продуктовые компании в большей иль в меньшей мере обязаны иметь вакцинированных сотрудниковвообще далеко не все. Только некоторые области, например общепит (привет мак) или торговля (привет х5 retail group). Никто не заставляет устраиваться именно туда.
DO UPDATE SET ... WHERE condition
melkij=> create temp table foo (item int primary key, d date, price numeric);
CREATE TABLE
melkij=> insert into foo values (1, '2021-07-30', 100) on conflict (item) do update set price = excluded.price, d = excluded.d where excluded.d > foo.d;
INSERT 0 1
melkij=> table foo;
item | d | price
------+------------+-------
1 | 2021-07-30 | 100
(1 строка)
melkij=> insert into foo values (1, '2021-08-01', 110) on conflict (item) do update set price = excluded.price, d = excluded.d where excluded.d > foo.d;
INSERT 0 1
melkij=> table foo;
item | d | price
------+------------+-------
1 | 2021-08-01 | 110
(1 строка)
melkij=> insert into foo values (1, '2021-07-20', 80) on conflict (item) do update set price = excluded.price, d = excluded.d where excluded.d > foo.d;
INSERT 0 0
melkij=> table foo;
item | d | price
------+------------+-------
1 | 2021-08-01 | 110
(1 строка)
Если в вакансии указано «наличие профильного технического образования», то важно ли, какой вуз заканчивать — престижный или региональный?
@RestController
@RequestMapping(produces = APPLICATION_JSON_UTF8_VALUE)
public class MyController {
@PostMapping("process-json")
@ResponseBody
public ResponseEntity<String> processJson(@RequestParam(value = "stringArray")List<String> stringArray) {
return process(stringArray);
}
}