| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | recordService.removeByIds(Func.toLongList(id)); |
| | | } |
| | | record.setStorage("1"); |
| | | record.setPermitime(new Date()); |
| | | return R.status(recordService.save(record)); |
| | | } |
| | | |
| | |
| | | Map map = recordService.selectIn(cardid); |
| | | if (map!=null){ |
| | | record.setStorage("0"); |
| | | record.setPermitime(new Date()); |
| | | recordService.updateById(record); |
| | | } |
| | | else { |
| | | record.setStorage("0"); |
| | | record.setType("2"); |
| | | record.setPtype("2"); |
| | | record.setPermitime(new Date()); |
| | | recordService.save(record); |
| | | } |
| | | return R.success("暂存成功"); |