| | |
| | | * @param entityList 数据列表 |
| | | */ |
| | | @Transactional |
| | | private void saveIfNotExists(List<QinzheFgb> entityList) { |
| | | void saveIfNotExists(List<QinzheFgb> entityList) { |
| | | |
| | | List<QinzheFgb> willSaveList = entityList.stream().filter(e -> !exists(e)).toList(); |
| | | this.saveBatch(willSaveList); |
| | |
| | | .eq(QinzheFgb::getCph, entity.getCph()).eq(QinzheFgb::getZggy, entity.getZggy()).count() > 0; |
| | | } |
| | | |
| | | /** |
| | | * 修改勤哲分工表数据 |
| | | * @param fgb 数据实体 |
| | | */ |
| | | public void updateFgb(QinzheFgb fgb) { |
| | | lambdaUpdate().eq(QinzheFgb::getLjh, fgb.getLjh()) |
| | | .set(QinzheFgb::getZggy, fgb.getZggy()) |
| | | .set(QinzheFgb::getLjh, fgb.getLjh()) |
| | | .set(QinzheFgb::getCph, fgb.getCph()).set(QinzheFgb::getSource, "MDM").update(); |
| | | } |
| | | } |