| | |
| | | import com.yeshi.fanli.dao.mybatis.homemodule.FloatADMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.FloatAD;
|
| | | import com.yeshi.fanli.entity.common.JumpDetailV2;
|
| | | import com.yeshi.fanli.exception.FloatADException;
|
| | | import com.yeshi.fanli.exception.homemodule.FloatADException;
|
| | | import com.yeshi.fanli.service.inter.common.JumpDetailV2Service;
|
| | | import com.yeshi.fanli.service.inter.homemodule.FloatADService;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
| | | 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());
|