| | |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.dto.couponPropertyPool.CouponPropertyPoolDto; |
| | | import com.java110.intf.acct.ICouponPropertyPoolConfigV1InnerServiceSMO; |
| | | import com.java110.intf.acct.ICouponPropertyPoolV1InnerServiceSMO; |
| | | import com.java110.intf.community.ICommunityV1InnerServiceSMO; |
| | | import com.java110.po.couponPropertyPool.CouponPropertyPoolPo; |
| | | import com.java110.po.couponPropertyPoolConfig.CouponPropertyPoolConfigPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | |
| | | @Autowired |
| | | private ICouponPropertyPoolV1InnerServiceSMO couponPropertyPoolV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private ICouponPropertyPoolConfigV1InnerServiceSMO couponPropertyPoolConfigV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private ICommunityV1InnerServiceSMO communityV1InnerServiceSMOImpl; |
| | |
| | | throw new CmdException("保存数据失败"); |
| | | } |
| | | |
| | | JSONArray toTypes = reqJson.getJSONArray("toTypes"); |
| | | |
| | | JSONObject typeObj = null; |
| | | CouponPropertyPoolConfigPo couponPropertyPoolConfigPo = null; |
| | | for(int typeIndex = 0;typeIndex < toTypes.size(); typeIndex++){ |
| | | typeObj = toTypes.getJSONObject(typeIndex); |
| | | couponPropertyPoolConfigPo = new CouponPropertyPoolConfigPo(); |
| | | couponPropertyPoolConfigPo.setColumnKey(typeObj.getString("columnKey")); |
| | | couponPropertyPoolConfigPo.setColumnValue(typeObj.getString("columnValue")); |
| | | couponPropertyPoolConfigPo.setConfigId(GenerateCodeFactory.getGeneratorId("11")); |
| | | couponPropertyPoolConfigPo.setCouponId(couponPropertyPoolPo.getCppId()); |
| | | couponPropertyPoolConfigV1InnerServiceSMOImpl.saveCouponPropertyPoolConfig(couponPropertyPoolConfigPo); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |