|
@@ -19,6 +19,7 @@ import com.yvan.Model;
|
|
|
import com.yvan.PageDb;
|
|
|
import com.yvan.mvc.JsonBody;
|
|
|
import com.yvan.mvc.Pd;
|
|
|
+import com.yvan.platform.Conv;
|
|
|
import com.yvan.springmvc.HttpParameterParser;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -64,6 +65,8 @@ public class ScanAdminController {
|
|
|
@Autowired
|
|
|
private UptownUnitMapper uptownUnitMapper;
|
|
|
@Autowired
|
|
|
+ private SysUptownUnitMapper sysUptownUnitMapper;
|
|
|
+ @Autowired
|
|
|
private RbMapper rbMapper;
|
|
|
|
|
|
@ApiOperation("出入查询")
|
|
@@ -85,14 +88,26 @@ public class ScanAdminController {
|
|
|
@ApiOperation("凌云用户管理导出")
|
|
|
@GetMapping("/whepi/sweepCode/exSelectLingyunUser")
|
|
|
@SneakyThrows
|
|
|
- public void exSelectLingyunUser(HttpParameterParser parser,HttpServletResponse resp,@Pd(name = "queryProperties", required = false, defaultValue = "") String queryProperties,
|
|
|
- @Pd(name = "unitId", required = false, defaultValue = "0") Long unitId) {
|
|
|
+ public void exSelectLingyunUser(HttpParameterParser parser,HttpServletResponse resp,
|
|
|
+ @Pd(name = "queryProperties", required = false, defaultValue = "") String queryProperties,
|
|
|
+ @Pd(name = "unitId", required = false, defaultValue = "0") Long unitId,
|
|
|
+ @Pd(name = "date") String date) {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("queryProperties", queryProperties);
|
|
|
+ Long userId = JwtHelper.getUserId();
|
|
|
+ if (userId > 7000 && userId < 8000) {
|
|
|
+ unitId = userId;
|
|
|
+ }
|
|
|
map.put("unitId", unitId);
|
|
|
+ map.put("date", date);
|
|
|
+ String unitName = "";
|
|
|
+ List<UptownUnit> uptownUnits = sysUptownUnitMapper.selectByUnitId(unitId);
|
|
|
+ if (uptownUnits!=null && uptownUnits.size()>0) {
|
|
|
+ unitName = uptownUnits.get(0).getRidgepole()+uptownUnits.get(0).getUnit();
|
|
|
+ }
|
|
|
List<ExcelRiBaoLYBM4> list = sweepCodeService.exSelectLingyunUser(map);
|
|
|
- ExcelUtils.writeSheet(ExcelRiBaoLYBM4.class, list).export(resp, "上报信息-" + sdf.format(new Date()));
|
|
|
+ ExcelUtils.writeSheet(ExcelRiBaoLYBM4.class, list).export(resp, unitName + "上报信息-" + date);
|
|
|
}
|
|
|
|
|
|
@ApiOperation("导出")
|