| | |
| | | import java.sql.Timestamp; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 数据申请 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综合展示\\数据申请") |
| | | @RestController |
| | | @SuppressWarnings("ALL") |
| | | @RequestMapping("/apply") |
| | | public class ApplyController extends BaseController { |
| | | @Autowired |
| | |
| | | if (null == applyEntity) { |
| | | return fail("找不到数据申请"); |
| | | } |
| | | if (!(applyEntity.getStatus() >= -1 && applyEntity.getStatus() <= StaticData.NINE)) { |
| | | if (!(applyEntity.getStatus() >= -1 && applyEntity.getStatus() <= StaticData.I9)) { |
| | | return fail("该数据申请无法废弃"); |
| | | } |
| | | |
| | |
| | | if (null == applyEntity) { |
| | | return fail("找不到数据申请"); |
| | | } |
| | | if (!(applyEntity.getStatus() >= 0 && applyEntity.getStatus() <= StaticData.NINE)) { |
| | | if (!(applyEntity.getStatus() >= 0 && applyEntity.getStatus() <= StaticData.I9)) { |
| | | return fail("该数据申请无需打回"); |
| | | } |
| | | |
| | |
| | | int rows = applyService.updateForSubmit(ue.getId(), applyEntity.getId(), flowEntity.getId()); |
| | | |
| | | applyEntity = applyService.selectById(applyEntity.getId()); |
| | | if (StaticData.TEN == applyEntity.getStatus()) { |
| | | if (StaticData.I10 == applyEntity.getStatus()) { |
| | | UserEntity user = userService.selectUser(applyEntity.getUserid()); |
| | | applyService.zipDbData(user, applyEntity); |
| | | } |
| | |
| | | if (null == applyEntity) { |
| | | return fail("找不到数据申请"); |
| | | } |
| | | if (!(applyEntity.getStatus() >= 0 && applyEntity.getStatus() <= StaticData.NINE)) { |
| | | if (!(applyEntity.getStatus() >= 0 && applyEntity.getStatus() <= StaticData.I9)) { |
| | | return fail("该数据申请无需打回"); |
| | | } |
| | | |