| | |
| | | .set(PricingParam::getName,pricingParam.getName()) |
| | | // .set(PricingParam::getStatus,pricingParam.getStatus()) |
| | | .set(PricingParam::getStartDate,pricingParam.getStartDate()) |
| | | .set(PricingParam::getEndDate,pricingParam.getEndDate()) |
| | | .set(PricingParam::getEndDate,Utils.Date.getDayOfEnd(pricingParam.getEndDate())) |
| | | .set(PricingParam::getSortnum,pricingParam.getSortnum()); |
| | | pricingParamMapper.update(null,wrapper); |
| | | } |
| | |
| | | wrapper.lambda() |
| | | .eq(PricingParam::getIsdeleted,Constants.ZERO) |
| | | .eq(PricingParam::getStatus,Constants.ZERO); |
| | | Integer integer = pricingParamMapper.selectCount(wrapper); |
| | | long integer = pricingParamMapper.selectCount(wrapper); |
| | | if (integer <= 1 ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"该定价方案必须配置"); |
| | | } |