|
@@ -36,13 +36,21 @@ public class Print {
|
|
|
//绑定数据
|
|
|
Context context = new Context();
|
|
|
//涉及太多只写了一个单独的
|
|
|
- context.putVar("userName", subsidy.getFarmerName());
|
|
|
+
|
|
|
+
|
|
|
// context.putVar("orderTime", new Date());
|
|
|
context.putVar("address",subsidy.getCargoOwnedetailedAdressr());
|
|
|
- if (subsidy.getFarmerType() == 0) {
|
|
|
- context.putVar("type","动态动态监测对象");
|
|
|
- } else {
|
|
|
+
|
|
|
+ if (subsidy.getSubsidyType() ==0){
|
|
|
+ if (subsidy.getFarmerType() == 0) {
|
|
|
+ context.putVar("type","动态动态监测对象");
|
|
|
+ } else {
|
|
|
+ context.putVar("type", "已脱贫及其他养殖户");
|
|
|
+ }
|
|
|
+ context.putVar("userName", subsidy.getFarmerName());
|
|
|
+ }else {
|
|
|
context.putVar("type", "已脱贫及其他养殖户");
|
|
|
+ context.putVar("userName", subsidy.getNameTwo());
|
|
|
}
|
|
|
|
|
|
context.putVar("farmName",subsidy.getFarmName());
|