| | |
| | | package project.web.admin; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import kernel.bo.RecordObjectMapper; |
| | | import kernel.web.ApplicationUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.jdbc.core.BeanPropertyRowMapper; |
| | | import org.springframework.jdbc.core.JdbcTemplate; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | import project.item.ItemService; |
| | | import project.item.model.Item; |
| | | import project.redis.RedisHandler; |
| | | import project.wallet.Wallet; |
| | | |
| | | /** |
| | | * 交割合约单 |
| | |
| | | |
| | | try { |
| | | FuturesOrder byOrderNo = futuresOrderService.findByOrderNo(orderNo); |
| | | |
| | | if(null != byOrderNo){ |
| | | byOrderNo.setRemark(remark); |
| | | List<FuturesOrder> query = futuresOrderService.findByPartyId(byOrderNo.getPartyId().toString()); |
| | | for (FuturesOrder f : query) { |
| | | System.out.println("修改之前==="+f); |
| | | f.setRemark(remark); |
| | | ApplicationUtil.executeUpdate(f); |
| | | System.out.println("修改之后==="+f); |
| | | futuresOrderService.updateCache(f.getOrder_no(), f); |
| | | redisHandler.setSync(FuturesRedisKeys.FUTURES_SUBMITTED_ORDERNO + f.getOrder_no(),f); |
| | | } |
| | | } |
| | | ApplicationUtil.executeUpdate(byOrderNo); |
| | | futuresOrderService.updateCache(byOrderNo.getOrder_no(), byOrderNo); |
| | | redisHandler.remove(FuturesRedisKeys.FUTURES_SUBMITTED_ORDERNO + byOrderNo.getOrder_no()); |
| | | } catch (BusinessException e) { |
| | | modelAndView.addObject("error", e.getMessage()); |
| | | return modelAndView; |