|
@@ -19,15 +19,9 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
|
|
|
-import javax.crypto.Mac;
|
|
|
-import javax.crypto.SecretKey;
|
|
|
-import javax.crypto.spec.SecretKeySpec;
|
|
|
import java.io.IOException;
|
|
|
-import java.net.URL;
|
|
|
-import java.net.URLEncoder;
|
|
|
import java.security.GeneralSecurityException;
|
|
|
import java.security.MessageDigest;
|
|
|
-import java.security.NoSuchAlgorithmException;
|
|
|
import java.text.DecimalFormat;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
@@ -203,10 +197,10 @@ public class ShenChanTimer {
|
|
|
Integer monthOutPig = prodStockService.sumOutPig(farmId,beginOfMonth,DateUtil.endOfMonth(dateTime));
|
|
|
Integer yearInPig = prodStockService.sumInPig(farmId,beginOfYear);
|
|
|
Integer yearOutPig = prodStockService.sumOutPig(farmId,beginOfYear,DateUtil.endOfYear(dateTime));
|
|
|
- prodStock.setMonthInPig(monthInPig);
|
|
|
- prodStock.setMonthOutPig(monthOutPig);
|
|
|
- prodStock.setYearInPig(yearInPig);
|
|
|
- prodStock.setYearOutPig(yearOutPig);
|
|
|
+ prodStock.setMonthInPig(monthInPig + intjz);
|
|
|
+ prodStock.setMonthOutPig(monthOutPig +intsw+intsx);
|
|
|
+ prodStock.setYearInPig(yearInPig+ intjz);
|
|
|
+ prodStock.setYearOutPig(yearOutPig +intsw+intsx);
|
|
|
prodStock.setSiPig(intsw);
|
|
|
DecimalFormat df = new DecimalFormat("#.##");
|
|
|
|