| | |
| | | picture = uploadPicture(file);
|
| | | }
|
| | |
|
| | | // 适用类型 : 0通用 1新人
|
| | | Integer type = record.getType();
|
| | | if (type == null) {
|
| | | record.setType(0);
|
| | | }
|
| | | |
| | | Long id = record.getId();
|
| | | if (id == null) {
|
| | | int maxOrder = floatADMapper.getMaxOrderByPosition(position);
|
| | |
| | | record.setState(0);
|
| | | }
|
| | |
|
| | | Integer type = record.getType();
|
| | | if (type == null) {
|
| | | record.setType(0);
|
| | | }
|
| | | record.setOrder(maxOrder + 1);
|
| | | record.setCreateTime(new Date());
|
| | | record.setUpdateTime(new Date());
|
| | |
| | | record.setPicture(resultObj.getPicture());
|
| | | }
|
| | |
|
| | | record.setType(resultObj.getType());
|
| | | record.setOrder(resultObj.getOrder());
|
| | | record.setCreateTime(resultObj.getCreateTime());
|
| | | record.setUpdateTime(new Date());
|