| | |
| | | */
|
| | | @RequestNoLogin()
|
| | | @RequestMapping(value = "save")
|
| | | public void save(String callback, PushGoods pushGoods, Long uid, String idArray, HttpServletResponse response,
|
| | | public void save(String callback, PushGoods pushGoods, Long editorUid, String idArray, HttpServletResponse response,
|
| | | PrintWriter out) {
|
| | |
|
| | | response.setHeader("Access-Control-Allow-Origin", "*");
|
| | | response.setHeader("Access-Control-Allow-Methods", "*");
|
| | |
|
| | | AdminUser admin = adminUserService.selectByPrimaryKey(uid);
|
| | | AdminUser admin = adminUserService.selectByPrimaryKey(editorUid);
|
| | | if (admin == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("操作用户验证失败"));
|
| | | return;
|
| | |
| | | ( |
| | | #{item.id,jdbcType=BIGINT}, |
| | | #{item.pushId,jdbcType=BIGINT}, |
| | | #{item.commonGoods.id,jdbcType=BIGINT}, |
| | | #{item.commonGoods.id,jdbcType=BIGINT} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | |
| | | if (commonGoods != null) {
|
| | | commonGoodsService.addOrUpdateCommonGoods(commonGoods);
|
| | | Long cid = commonGoods.getId();
|
| | | if (cid == null) {
|
| | | if (cid != null) {
|
| | | listCommonId.add(cid);
|
| | | }
|
| | | }
|
| | |
| | | pushGoodsGroup.setCommonGoods(new CommonGoods(cid));
|
| | | listAdd.add(pushGoodsGroup);
|
| | | }
|
| | | |
| | | pushGoodsGroupService.insertBatch(listAdd);
|
| | | }
|
| | |
|
| | | |
| | | }
|
| | |
|
| | | @Override
|