|  | @@ -91,13 +91,6 @@ public class LuckDrawController extends BaseController {
 | 
	
		
			
				|  |  |  	@PostMapping(value = "luckDrawPrize/batchAdd", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
 | 
	
		
			
				|  |  |  	@PreAuthorize("@pcs.hasPermissions('luckDrawPrize/batchAdd')")
 | 
	
		
			
				|  |  |  	public Object batchAdd(@RequestBody List<LuckDrawPrize> luckDrawPrizeList) {
 | 
	
		
			
				|  |  | -		BigDecimal totalChanceRate = new BigDecimal(0);
 | 
	
		
			
				|  |  | -		for (LuckDrawPrize luckDrawPrize : luckDrawPrizeList) {
 | 
	
		
			
				|  |  | -			totalChanceRate.add(new BigDecimal(luckDrawPrize.getChances()));
 | 
	
		
			
				|  |  | -		}
 | 
	
		
			
				|  |  | -		if (totalChanceRate.doubleValue() != 1) {
 | 
	
		
			
				|  |  | -			throw new BizException("所有奖品的概率之和必须等于100%或1");
 | 
	
		
			
				|  |  | -		}
 | 
	
		
			
				|  |  |  		return luckDrawPrizeService.batchInsert(luckDrawPrizeList) ? succeed() : failed();
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 |