| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.DecimalFormat; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | result.put("deptId", deptId); |
| | | |
| | | //获取分库编码对应的分库名称 |
| | | String deptName = ""; |
| | | SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null)); |
| | | if (null != subDept) { |
| | | deptName = subDept.getDeptName(); |
| | | } |
| | | // String deptName = ""; |
| | | // SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null)); |
| | | // if (null != subDept) { |
| | | // deptName = subDept.getDeptName(); |
| | | // } |
| | | String title = "汇总表"; |
| | | if ("IN".equals(type)) { |
| | | title= deptName + "入库明细汇总"; |
| | | title = "入库明细汇总"; |
| | | } |
| | | if ("OUT".equals(type)) { |
| | | title= deptName + "出库明细汇总"; |
| | | title = "出库明细汇总"; |
| | | } |
| | | if ("STORE".equals(type)) { |
| | | title= deptName + "库存汇总表"; |
| | | title = "库存汇总表"; |
| | | } |
| | | |
| | | result.put("end", new Date()); |
| | |
| | | result.put("createTime", new Date()); |
| | | result.put("title", title); |
| | | result.put("type", type); |
| | | |
| | | |
| | | return result; |
| | | } |
| | |
| | | result.put("deptId", deptId); |
| | | |
| | | //获取分库编码对应的分库名称 |
| | | String deptName = ""; |
| | | SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null)); |
| | | if (null != subDept) { |
| | | deptName = subDept.getDeptName(); |
| | | } |
| | | String title = deptName + "库存汇总表"; |
| | | // String deptName = ""; |
| | | // SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null)); |
| | | // if (null != subDept) { |
| | | // deptName = subDept.getDeptName(); |
| | | // } |
| | | String title = "库存汇总表"; |
| | | |
| | | result.put("end", new Date()); |
| | | Date start = DateUtil.getNewByDay(new Date(), -30); |
| | |
| | | result.put("createUser", ContextUtil.getLoginUserName()); |
| | | result.put("createTime", new Date()); |
| | | result.put("title", title); |
| | | |
| | | |
| | | return result; |
| | | } |