|
|
|
@ -12,9 +12,6 @@ import com.hxhq.common.core.utils.StringUtils; |
|
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
|
import com.hxhq.system.api.model.LoginUser; |
|
|
|
import com.itextpdf.text.*; |
|
|
|
import com.itextpdf.text.pdf.BaseFont; |
|
|
|
import com.itextpdf.text.pdf.PdfPCell; |
|
|
|
import com.itextpdf.text.pdf.PdfPTable; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
@ -30,8 +27,8 @@ import java.util.Map; |
|
|
|
* |
|
|
|
* @author tanfei |
|
|
|
*/ |
|
|
|
public class MBMJYLQSQD { |
|
|
|
private static final Logger logger = LoggerFactory.getLogger(MBMJYLQSQD.class.getName()); |
|
|
|
public class Mbmjylqsqd { |
|
|
|
private static final Logger logger = LoggerFactory.getLogger(Mbmjylqsqd.class.getName()); |
|
|
|
public String language = "zh"; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -69,7 +66,8 @@ public class MBMJYLQSQD { |
|
|
|
formData2.put(getName("需要量"), (StringUtils.isNoneBlank(bdnr.getString("xyl")) ? bdnr.getString("xyl") : "") + TemplateBaseUtil.getCheck("_xyl", zdgxjl) + TemplateBaseUtil.getFh("_xyl", fhyjjl)); |
|
|
|
formData2.put(getName("需要时间"), (StringUtils.isNoneBlank(bdnr.getString("xysj")) ? bdnr.getString("xysj") : "") + TemplateBaseUtil.getCheck("_xysj", zdgxjl) + TemplateBaseUtil.getFh("_xysj", fhyjjl)); |
|
|
|
formData2.put(getName("预计归还时间"), (StringUtils.isNoneBlank(bdnr.getString("yjghsj")) ? bdnr.getString("yjghsj") : "") + TemplateBaseUtil.getCheck("_yjghsj", zdgxjl) + TemplateBaseUtil.getFh("_yjghsj", fhyjjl)); |
|
|
|
if(StringUtils.isNoneBlank(bdnr.getString("dwzsOther"))){ |
|
|
|
String dwzsOther="dwzsOther"; |
|
|
|
if(StringUtils.isNoneBlank(bdnr.getString(dwzsOther))){ |
|
|
|
formData2.put(getName("动物种属"), |
|
|
|
getName("其他")+ TemplateBaseUtil.getCheck("_dwzs", zdgxjl) + TemplateBaseUtil.getFh("_dwzs", fhyjjl) + |
|
|
|
(StringUtils.isNoneBlank(bdnr.getString("dwzsOther")) ? bdnr.getString("dwzsOther") : "") + TemplateBaseUtil.getCheck("_dwzsOther", zdgxjl) + TemplateBaseUtil.getFh("_dwzsOther", fhyjjl)); |
|
|
|
@ -77,7 +75,7 @@ public class MBMJYLQSQD { |
|
|
|
formData2.put(getName("动物种属"), (StringUtils.isNoneBlank(bdnr.getString("dwzs")) ? bdnr.getString("dwzs") : "") + TemplateBaseUtil.getCheck("_dwzs", zdgxjl) + TemplateBaseUtil.getFh("_dwzs", fhyjjl)); |
|
|
|
} |
|
|
|
formData2.put(getName("动物平均体重"), (StringUtils.isNoneBlank(bdnr.getString("dwpjtz")) ? bdnr.getString("dwpjtz") : "") + TemplateBaseUtil.getCheck("_dwpjtz", zdgxjl) + TemplateBaseUtil.getFh("_dwpjtz", fhyjjl)); |
|
|
|
if(StringUtils.isNoneBlank(bdnr.getString("dwslOther"))) { |
|
|
|
if(StringUtils.isNoneBlank(bdnr.getString(dwzsOther))) { |
|
|
|
formData2.put(getName("动物数量"), |
|
|
|
(StringUtils.isNoneBlank(bdnr.getString("dwsl")) ? bdnr.getString("dwsl") : "") + TemplateBaseUtil.getCheck("_dwsl", zdgxjl) + TemplateBaseUtil.getFh("_dwsl", fhyjjl)+ |
|
|
|
getName("其他")+ TemplateBaseUtil.getCheck("_dwslUnit", zdgxjl) + TemplateBaseUtil.getFh("_dwslUnit", fhyjjl) + |