|
@@ -15,6 +15,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.cuidian.srm.baseCode.service.ISerialPatternService;
|
|
|
import com.cuidian.srm.cuspCode.entity.CuspCustomerProfile;
|
|
|
+import com.cuidian.srm.cuspCode.vo.CuspSupplierDeadlineReminderVo;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.jeecg.modules.system.service.ISysUserService;
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
@@ -104,6 +105,50 @@ public class CuspSupplierProfileController {
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * 分页列表查询-供应商资质临期
|
|
|
+ *
|
|
|
+ * @param cuspSupplierProfile
|
|
|
+ * @param pageNo
|
|
|
+ * @param pageSize
|
|
|
+ * @param req
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+
|
|
|
+ @ApiOperation(value="供应商档案-供应商资质临期", notes="供应商档案-供应商资质临期")
|
|
|
+ @GetMapping(value = "/list2")
|
|
|
+ public Result<IPage<CuspSupplierDeadlineReminderVo>> queryPageList2(CuspSupplierDeadlineReminderVo cuspSupplierProfile,
|
|
|
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
|
+ HttpServletRequest req) {
|
|
|
+
|
|
|
+ Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>();
|
|
|
+
|
|
|
+ customeRuleMap.put("paymentTerms", QueryRuleEnum.LIKE_WITH_OR);
|
|
|
+ customeRuleMap.put("country", QueryRuleEnum.LIKE_WITH_OR);
|
|
|
+ customeRuleMap.put("originalFactory", QueryRuleEnum.LIKE_WITH_OR);
|
|
|
+ customeRuleMap.put("deadlineReminder", QueryRuleEnum.GT);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ QueryWrapper<CuspSupplierDeadlineReminderVo> queryWrapper = QueryGenerator.initQueryWrapper(cuspSupplierProfile, req.getParameterMap(),customeRuleMap);
|
|
|
+ Page<CuspSupplierDeadlineReminderVo> page = new Page<CuspSupplierDeadlineReminderVo>(pageNo, pageSize);
|
|
|
+ IPage<CuspSupplierDeadlineReminderVo> pageList = cuspSupplierProfileService.page2(page, queryWrapper);
|
|
|
+ return Result.OK(pageList);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* 添加
|
|
|
*
|
|
@@ -325,6 +370,40 @@ public class CuspSupplierProfileController {
|
|
|
return mv;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ * 导出excel
|
|
|
+ *
|
|
|
+ * @param request
|
|
|
+ * @param cuspSupplierProfile
|
|
|
+ */
|
|
|
+ @RequiresPermissions("cuspCode:cusp_supplier_profile:exportXls")
|
|
|
+ @RequestMapping(value = "/exportXls2")
|
|
|
+ public ModelAndView exportXls2(HttpServletRequest request, CuspSupplierDeadlineReminderVo cuspSupplierProfile) {
|
|
|
+
|
|
|
+ LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+
|
|
|
+ Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>();
|
|
|
+
|
|
|
+ customeRuleMap.put("paymentTerms", QueryRuleEnum.LIKE_WITH_OR);
|
|
|
+ customeRuleMap.put("country", QueryRuleEnum.LIKE_WITH_OR);
|
|
|
+ customeRuleMap.put("originalFactory", QueryRuleEnum.LIKE_WITH_OR);
|
|
|
+ customeRuleMap.put("deadlineReminder", QueryRuleEnum.GT);
|
|
|
+ QueryWrapper<CuspSupplierDeadlineReminderVo> queryWrapper = QueryGenerator.initQueryWrapper(cuspSupplierProfile, request.getParameterMap(),customeRuleMap);
|
|
|
+ Page<CuspSupplierDeadlineReminderVo> page = new Page<CuspSupplierDeadlineReminderVo>(1, 100000);
|
|
|
+ IPage<CuspSupplierDeadlineReminderVo> pageList2 = cuspSupplierProfileService.page2(page, queryWrapper);
|
|
|
+
|
|
|
+ List<CuspSupplierDeadlineReminderVo> pageList =pageList2.getRecords();
|
|
|
+
|
|
|
+ ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
|
|
|
+ mv.addObject(NormalExcelConstants.FILE_NAME, "供应商资质临期");
|
|
|
+ mv.addObject(NormalExcelConstants.CLASS, CuspSupplierDeadlineReminderVo.class);
|
|
|
+ mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("供应商资质临期", "导出人:"+sysUser.getRealname(), "供应商资质临期"));
|
|
|
+ mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
|
|
|
+ return mv;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
* 通过excel导入数据
|
|
|
*
|