Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH
This commit is contained in:
+5
-1
@@ -215,7 +215,11 @@ public class OtaBaCxListController extends JeroController<OtaBaCxList, IOtaBaCxL
|
|||||||
@GetMapping(value = "/exportData")
|
@GetMapping(value = "/exportData")
|
||||||
// @RequiresPermissions("otaBaCx:exportTemplate")
|
// @RequiresPermissions("otaBaCx:exportTemplate")
|
||||||
public void exportData(@RequestParam(value = "otaId", required = false) String otaId, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
public void exportData(@RequestParam(value = "otaId", required = false) String otaId, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
this.otaBaCxListService.exportData(otaId, response, request);
|
try {
|
||||||
|
this.otaBaCxListService.exportData(otaId, response, request);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+140
-138
@@ -4,6 +4,7 @@ import java.util.Arrays;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.jero.common.api.vo.Result;
|
import com.jero.common.api.vo.Result;
|
||||||
import com.jero.common.system.query.QueryGenerator;
|
import com.jero.common.system.query.QueryGenerator;
|
||||||
import com.jero.modules.ota.entity.OtaBaCxLsjl;
|
import com.jero.modules.ota.entity.OtaBaCxLsjl;
|
||||||
@@ -22,163 +23,164 @@ import io.swagger.annotations.ApiOperation;
|
|||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 车型备案-历史记录
|
* @Description: 车型备案-历史记录
|
||||||
* @Author: jero-boot
|
* @Author: jero-boot
|
||||||
* @Date: 2023-03-17
|
* @Date: 2023-03-17
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Api(tags="车型备案-历史记录")
|
@Api(tags = "车型备案-历史记录")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/ota/otaBaCxLsjl")
|
@RequestMapping("/ota/otaBaCxLsjl")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class OtaBaCxLsjlController extends JeroController<OtaBaCxLsjl, IOtaBaCxLsjlService> {
|
public class OtaBaCxLsjlController extends JeroController<OtaBaCxLsjl, IOtaBaCxLsjlService> {
|
||||||
@Autowired
|
@Autowired
|
||||||
private IOtaBaCxLsjlService otaBaCxLsjlService;
|
private IOtaBaCxLsjlService otaBaCxLsjlService;
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param otaBaCxLsjl
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "车型备案-历史记录-分页列表查询")
|
|
||||||
@ApiOperation(value="车型备案-历史记录-分页列表查询", notes="车型备案-历史记录-分页列表查询")
|
|
||||||
@GetMapping(value = "/page")
|
|
||||||
public Result<?> queryPageList(OtaBaCxLsjl otaBaCxLsjl,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<OtaBaCxLsjl> queryWrapper = QueryGenerator.initQueryWrapper(otaBaCxLsjl, req.getParameterMap());
|
|
||||||
Page<OtaBaCxLsjl> page = new Page<OtaBaCxLsjl>(pageNo, pageSize);
|
|
||||||
IPage<OtaBaCxLsjl> pageList = otaBaCxLsjlService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 列表查询
|
* 分页列表查询
|
||||||
*
|
*
|
||||||
* @return
|
* @param otaBaCxLsjl
|
||||||
*/
|
* @param pageNo
|
||||||
@AutoLog(value = "车型备案-历史记录-列表查询")
|
* @param pageSize
|
||||||
@ApiOperation(value="车型备案-历史记录-列表查询", notes="车型备案-历史记录-列表查询")
|
* @param req
|
||||||
@GetMapping(value = "/list")
|
* @return
|
||||||
public Result<List<OtaBaCxLsjl>> queryList() {
|
*/
|
||||||
List<OtaBaCxLsjl> list = otaBaCxLsjlService.queryList();
|
@AutoLog(value = "车型备案-历史记录-分页列表查询")
|
||||||
|
@ApiOperation(value = "车型备案-历史记录-分页列表查询", notes = "车型备案-历史记录-分页列表查询")
|
||||||
|
@GetMapping(value = "/page")
|
||||||
|
public Result<?> queryPageList(OtaBaCxLsjl otaBaCxLsjl,
|
||||||
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||||
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
QueryWrapper<OtaBaCxLsjl> queryWrapper = QueryGenerator.initQueryWrapper(otaBaCxLsjl, req.getParameterMap());
|
||||||
|
queryWrapper.orderByDesc("create_time");
|
||||||
|
Page<OtaBaCxLsjl> page = new Page<OtaBaCxLsjl>(pageNo, pageSize);
|
||||||
|
IPage<OtaBaCxLsjl> pageList = otaBaCxLsjlService.page(page, queryWrapper);
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表查询
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "车型备案-历史记录-列表查询")
|
||||||
|
@ApiOperation(value = "车型备案-历史记录-列表查询", notes = "车型备案-历史记录-列表查询")
|
||||||
|
@GetMapping(value = "/list")
|
||||||
|
public Result<List<OtaBaCxLsjl>> queryList() {
|
||||||
|
List<OtaBaCxLsjl> list = otaBaCxLsjlService.list();
|
||||||
return Result.OK(list);
|
return Result.OK(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param otaBaCxLsjl
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "车型备案-历史记录-添加")
|
|
||||||
@ApiOperation(value="车型备案-历史记录-添加", notes="车型备案-历史记录-添加")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<?> add(@Validated @RequestBody OtaBaCxLsjl otaBaCxLsjl) {
|
|
||||||
otaBaCxLsjlService.add(otaBaCxLsjl);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param otaBaCxLsjl
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "车型备案-历史记录-编辑")
|
|
||||||
@ApiOperation(value="车型备案-历史记录-编辑", notes="车型备案-历史记录-编辑")
|
|
||||||
@PutMapping(value = "/edit")
|
|
||||||
public Result<?> edit(@Validated @RequestBody OtaBaCxLsjl otaBaCxLsjl) {
|
|
||||||
otaBaCxLsjlService.editById(otaBaCxLsjl);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "车型备案-历史记录-通过id删除")
|
|
||||||
@ApiOperation(value="车型备案-历史记录-通过id删除", notes="车型备案-历史记录-通过id删除")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
otaBaCxLsjlService.deleteById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "车型备案-历史记录-批量删除")
|
|
||||||
@ApiOperation(value="车型备案-历史记录-批量删除", notes="车型备案-历史记录-批量删除")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.otaBaCxLsjlService.deleteByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "车型备案-历史记录-通过id查询")
|
|
||||||
@ApiOperation(value="车型备案-历史记录-通过id查询", notes="车型备案-历史记录-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
OtaBaCxLsjl otaBaCxLsjl = otaBaCxLsjlService.queryById(id);
|
|
||||||
if(otaBaCxLsjl==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(otaBaCxLsjl);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过otaId查询
|
|
||||||
*
|
|
||||||
* @param otaId
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "车型备案-历史记录-通过otaId查询")
|
|
||||||
@ApiOperation(value="车型备案-历史记录-通过otaId查询", notes="车型备案-历史记录-通过otaId查询")
|
|
||||||
@GetMapping(value = "/queryByOtaId")
|
|
||||||
public Result<?> queryByOtaId(@RequestParam(name="otaId",required=true) String otaId) {
|
|
||||||
List<OtaBaCxLsjl> otaBaCxLsjlList = otaBaCxLsjlService.queryByOtaId(otaId);
|
|
||||||
if(otaBaCxLsjlList==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(otaBaCxLsjlList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出excel
|
* 添加
|
||||||
*
|
*
|
||||||
* @param request
|
* @param otaBaCxLsjl
|
||||||
* @param otaBaCxLsjl
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@AutoLog(value = "车型备案-历史记录-添加")
|
||||||
|
@ApiOperation(value = "车型备案-历史记录-添加", notes = "车型备案-历史记录-添加")
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public Result<?> add(@Validated @RequestBody OtaBaCxLsjl otaBaCxLsjl) {
|
||||||
|
otaBaCxLsjlService.add(otaBaCxLsjl);
|
||||||
|
return Result.OK("添加成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
*
|
||||||
|
* @param otaBaCxLsjl
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "车型备案-历史记录-编辑")
|
||||||
|
@ApiOperation(value = "车型备案-历史记录-编辑", notes = "车型备案-历史记录-编辑")
|
||||||
|
@PutMapping(value = "/edit")
|
||||||
|
public Result<?> edit(@Validated @RequestBody OtaBaCxLsjl otaBaCxLsjl) {
|
||||||
|
otaBaCxLsjlService.editById(otaBaCxLsjl);
|
||||||
|
return Result.OK("编辑成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id删除
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "车型备案-历史记录-通过id删除")
|
||||||
|
@ApiOperation(value = "车型备案-历史记录-通过id删除", notes = "车型备案-历史记录-通过id删除")
|
||||||
|
@DeleteMapping(value = "/delete")
|
||||||
|
public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
|
||||||
|
otaBaCxLsjlService.deleteById(id);
|
||||||
|
return Result.OK("删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "车型备案-历史记录-批量删除")
|
||||||
|
@ApiOperation(value = "车型备案-历史记录-批量删除", notes = "车型备案-历史记录-批量删除")
|
||||||
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
|
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||||
|
this.otaBaCxLsjlService.deleteByIds(Arrays.asList(ids.split(",")));
|
||||||
|
return Result.OK("批量删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "车型备案-历史记录-通过id查询")
|
||||||
|
@ApiOperation(value = "车型备案-历史记录-通过id查询", notes = "车型备案-历史记录-通过id查询")
|
||||||
|
@GetMapping(value = "/queryById")
|
||||||
|
public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||||
|
OtaBaCxLsjl otaBaCxLsjl = otaBaCxLsjlService.queryById(id);
|
||||||
|
if (otaBaCxLsjl == null) {
|
||||||
|
return Result.error("未找到对应数据");
|
||||||
|
}
|
||||||
|
return Result.OK(otaBaCxLsjl);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过otaId查询
|
||||||
|
*
|
||||||
|
* @param otaId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "车型备案-历史记录-通过otaId查询")
|
||||||
|
@ApiOperation(value = "车型备案-历史记录-通过otaId查询", notes = "车型备案-历史记录-通过otaId查询")
|
||||||
|
@GetMapping(value = "/queryByOtaId")
|
||||||
|
public Result<?> queryByOtaId(@RequestParam(name = "otaId", required = true) String otaId) {
|
||||||
|
List<OtaBaCxLsjl> otaBaCxLsjlList = otaBaCxLsjlService.queryByOtaId(otaId);
|
||||||
|
if (otaBaCxLsjlList == null) {
|
||||||
|
return Result.error("未找到对应数据");
|
||||||
|
}
|
||||||
|
return Result.OK(otaBaCxLsjlList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出excel
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param otaBaCxLsjl
|
||||||
|
*/
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, OtaBaCxLsjl otaBaCxLsjl) {
|
public ModelAndView exportXls(HttpServletRequest request, OtaBaCxLsjl otaBaCxLsjl) {
|
||||||
return super.exportXls(request, otaBaCxLsjl, OtaBaCxLsjl.class, "车型备案-历史记录");
|
return super.exportXls(request, otaBaCxLsjl, OtaBaCxLsjl.class, "车型备案-历史记录");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过excel导入数据
|
* 通过excel导入数据
|
||||||
*
|
*
|
||||||
* @param request
|
* @param request
|
||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
return super.importExcel(request, response, OtaBaCxLsjl.class);
|
return super.importExcel(request, response, OtaBaCxLsjl.class);
|
||||||
|
|||||||
+1
@@ -53,6 +53,7 @@ public class OtaBaCxTxjlController extends JeroController<OtaBaCxTxjl, IOtaBaCxT
|
|||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
HttpServletRequest req) {
|
HttpServletRequest req) {
|
||||||
QueryWrapper<OtaBaCxTxjl> queryWrapper = QueryGenerator.initQueryWrapper(otaBaCxTxjl, req.getParameterMap());
|
QueryWrapper<OtaBaCxTxjl> queryWrapper = QueryGenerator.initQueryWrapper(otaBaCxTxjl, req.getParameterMap());
|
||||||
|
queryWrapper.orderByDesc("create_time");
|
||||||
Page<OtaBaCxTxjl> page = new Page<OtaBaCxTxjl>(pageNo, pageSize);
|
Page<OtaBaCxTxjl> page = new Page<OtaBaCxTxjl>(pageNo, pageSize);
|
||||||
IPage<OtaBaCxTxjl> pageList = otaBaCxTxjlService.page(page, queryWrapper);
|
IPage<OtaBaCxTxjl> pageList = otaBaCxTxjlService.page(page, queryWrapper);
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
|
|||||||
+1
@@ -54,6 +54,7 @@ public class OtaBaSjListController extends JeroController<OtaBaSjList, IOtaBaSjL
|
|||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
HttpServletRequest req) {
|
HttpServletRequest req) {
|
||||||
QueryWrapper<OtaBaSjList> queryWrapper = QueryGenerator.initQueryWrapper(otaBaSjList, req.getParameterMap());
|
QueryWrapper<OtaBaSjList> queryWrapper = QueryGenerator.initQueryWrapper(otaBaSjList, req.getParameterMap());
|
||||||
|
queryWrapper.orderByDesc("create_time");
|
||||||
Page<OtaBaSjList> page = new Page<OtaBaSjList>(pageNo, pageSize);
|
Page<OtaBaSjList> page = new Page<OtaBaSjList>(pageNo, pageSize);
|
||||||
IPage<OtaBaSjList> pageList = otaBaSjListService.page(page, queryWrapper);
|
IPage<OtaBaSjList> pageList = otaBaSjListService.page(page, queryWrapper);
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
|
|||||||
+1
@@ -53,6 +53,7 @@ public class OtaBaSjLsjlController extends JeroController<OtaBaSjLsjl, IOtaBaSjL
|
|||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
HttpServletRequest req) {
|
HttpServletRequest req) {
|
||||||
QueryWrapper<OtaBaSjLsjl> queryWrapper = QueryGenerator.initQueryWrapper(otaBaSjLsjl, req.getParameterMap());
|
QueryWrapper<OtaBaSjLsjl> queryWrapper = QueryGenerator.initQueryWrapper(otaBaSjLsjl, req.getParameterMap());
|
||||||
|
queryWrapper.orderByDesc("create_time");
|
||||||
Page<OtaBaSjLsjl> page = new Page<OtaBaSjLsjl>(pageNo, pageSize);
|
Page<OtaBaSjLsjl> page = new Page<OtaBaSjLsjl>(pageNo, pageSize);
|
||||||
IPage<OtaBaSjLsjl> pageList = otaBaSjLsjlService.page(page, queryWrapper);
|
IPage<OtaBaSjLsjl> pageList = otaBaSjLsjlService.page(page, queryWrapper);
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
|
|||||||
+2
@@ -71,4 +71,6 @@ public interface IOtaBaCxAqcsService extends IService<OtaBaCxAqcs> {
|
|||||||
OtaBaCxAqcs importData(MultipartFile file, String otaId, String cut) throws Exception;
|
OtaBaCxAqcs importData(MultipartFile file, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
OtaBaCxAqcs parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
OtaBaCxAqcs parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
|
void exportData(File file, File attFile, String otaId, String cut) throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -71,4 +71,6 @@ public interface IOtaBaCxJbxxService extends IService<OtaBaCxJbxx> {
|
|||||||
OtaBaCxJbxx importData(MultipartFile file, String otaId, String cut) throws Exception;
|
OtaBaCxJbxx importData(MultipartFile file, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
OtaBaCxJbxx parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
OtaBaCxJbxx parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
|
void exportData(File file, String otaId, String cut) throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -71,4 +71,6 @@ public interface IOtaBaCxJsfzbacsService extends IService<OtaBaCxJsfzbacs> {
|
|||||||
void importData(MultipartFile file, String otaId, String cut) throws Exception;
|
void importData(MultipartFile file, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
void parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
void parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
|
void exportData(File file, String otaId, String cut) throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -71,4 +71,6 @@ public interface IOtaBaCxKsjjsmccsService extends IService<OtaBaCxKsjjsmccs> {
|
|||||||
void importData(MultipartFile file, String otaId, String cut) throws Exception;
|
void importData(MultipartFile file, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
void parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
void parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
|
void exportData(File file, File attFile, String otaId, String cut) throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -71,4 +71,6 @@ public interface IOtaBaCxKsjxtmccsService extends IService<OtaBaCxKsjxtmccs> {
|
|||||||
void importData(MultipartFile file, String otaId, String cut) throws Exception;
|
void importData(MultipartFile file, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
void parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
void parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
|
void exportData(File file, File attFile, String otaId, String cut) throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
+38
-38
@@ -11,65 +11,65 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* @Description: 车型及功能备案列表
|
* @Description: 车型及功能备案列表
|
||||||
* @Author: jero-boot
|
* @Author: jero-boot
|
||||||
* @Date: 2023-03-17
|
* @Date: 2023-03-17
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
public interface IOtaBaCxListService extends IService<OtaBaCxList> {
|
public interface IOtaBaCxListService extends IService<OtaBaCxList> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
*
|
*
|
||||||
* @param otaBaCxList
|
* @param otaBaCxList
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
void add(OtaBaCxList otaBaCxList);
|
void add(OtaBaCxList otaBaCxList);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新
|
* 更新
|
||||||
*
|
*
|
||||||
* @param otaBaCxList
|
* @param otaBaCxList
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
void editById(OtaBaCxList otaBaCxList);
|
void editById(OtaBaCxList otaBaCxList);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过id删除
|
* 通过id删除
|
||||||
*
|
*
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
void deleteById(String id);
|
void deleteById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
*
|
*
|
||||||
* @param ids
|
* @param ids
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
void deleteByIds(List<String> ids);
|
void deleteByIds(List<String> ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过id查询
|
* 通过id查询
|
||||||
*
|
*
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
OtaBaCxList queryById(String id);
|
OtaBaCxList queryById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 列表查询
|
* 列表查询
|
||||||
*/
|
*/
|
||||||
List<OtaBaCxList> queryList();
|
List<OtaBaCxList> queryList();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 备案维护
|
* 备案维护
|
||||||
*/
|
*/
|
||||||
void batchRecord(String ids, String bazt, String batjsj, String bz, String cut);
|
void batchRecord(String ids, String bazt, String batjsj, String bz, String cut);
|
||||||
|
|
||||||
void exportTemplate(HttpServletResponse response, HttpServletRequest request);
|
void exportTemplate(HttpServletResponse response, HttpServletRequest request);
|
||||||
|
|
||||||
void importData(MultipartFile file, String cut) throws Exception;
|
void importData(MultipartFile file, String cut) throws Exception;
|
||||||
|
|
||||||
void exportData(String otaId, HttpServletResponse response, HttpServletRequest request);
|
void exportData(String otaId, HttpServletResponse response, HttpServletRequest request) throws Exception;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -72,4 +72,6 @@ public interface IOtaBaCxZxsjyqService extends IService<OtaBaCxZxsjyq> {
|
|||||||
OtaBaCxZxsjyq importData(MultipartFile file, String otaId, String cut) throws Exception;
|
OtaBaCxZxsjyq importData(MultipartFile file, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
OtaBaCxZxsjyq parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
OtaBaCxZxsjyq parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception;
|
||||||
|
|
||||||
|
void exportData(File file, File attFile,String otaId, String cut) throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
+48
-1
@@ -3,6 +3,7 @@ package com.jero.modules.ota.service.impl;
|
|||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.jero.common.exception.JeroBootException;
|
import com.jero.common.exception.JeroBootException;
|
||||||
|
import com.jero.common.util.oss.CosBootUtil;
|
||||||
import com.jero.modules.oss.entity.OSSFile;
|
import com.jero.modules.oss.entity.OSSFile;
|
||||||
import com.jero.modules.oss.service.IOSSFileService;
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import com.jero.modules.ota.entity.*;
|
import com.jero.modules.ota.entity.*;
|
||||||
@@ -24,6 +25,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.InputStream;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@@ -86,7 +88,7 @@ public class OtaBaCxAqcsServiceImpl extends ServiceImpl<OtaBaCxAqcsMapper, OtaBa
|
|||||||
if (ObjectUtils.isEmpty(otaBaCxAqcsOld)) {
|
if (ObjectUtils.isEmpty(otaBaCxAqcsOld)) {
|
||||||
otaBaCxAqcsOld = new OtaBaCxAqcs();
|
otaBaCxAqcsOld = new OtaBaCxAqcs();
|
||||||
}
|
}
|
||||||
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaCxAqcsOld.getOtaId(), OtaModuleEnum.CX_AQCS, otaBaCxAqcsOld, otaBaCxAqcs, sysDictService);
|
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaCxAqcs.getOtaId(), OtaModuleEnum.CX_AQCS, otaBaCxAqcsOld, otaBaCxAqcs, sysDictService);
|
||||||
otaBaCxTxjlService.saveBatch(reList);
|
otaBaCxTxjlService.saveBatch(reList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -233,4 +235,49 @@ public class OtaBaCxAqcsServiceImpl extends ServiceImpl<OtaBaCxAqcsMapper, OtaBa
|
|||||||
aqcs.setZmcl(obj.toString());
|
aqcs.setZmcl(obj.toString());
|
||||||
return aqcs;
|
return aqcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void exportData(File file, File attFile, String otaId, String cut) throws Exception {
|
||||||
|
OtaBaCxAqcs aqcs = getByOtaId(otaId);
|
||||||
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
|
Sheet s = wb.getSheetAt(0);
|
||||||
|
|
||||||
|
Row row = s.getRow(2);
|
||||||
|
Cell cell = row.getCell(2);
|
||||||
|
cell.setCellValue(sysDictService.queryDictItemByValue("protection_mechanism", aqcs.getBhjz(), cut));
|
||||||
|
|
||||||
|
row = s.getRow(3);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(sysDictService.queryDictItemByValue("fail_safe_mechanism", aqcs.getFsxjz(), cut));
|
||||||
|
|
||||||
|
row = s.getRow(4);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(sysDictService.queryDictItemByValue("upgrade_failure", aqcs.getSjsbcs(), cut));
|
||||||
|
|
||||||
|
row = s.getRow(5);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(sysDictService.queryDictItemByValue("Information_security_mechanism", aqcs.getXxaqjz(), cut));
|
||||||
|
|
||||||
|
row = s.getRow(2);
|
||||||
|
cell = row.getCell(3);
|
||||||
|
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
String attStr = aqcs.getZmcl();
|
||||||
|
List<AttachmentEO> attList = JSONArray.parseArray(attStr, AttachmentEO.class);
|
||||||
|
if (ObjectUtils.isNotEmpty(attList)) {
|
||||||
|
for (AttachmentEO aeo : attList) {
|
||||||
|
List<OSSFile> ossFileList = ossFileService.getFileInfos(aeo.getId());
|
||||||
|
for (OSSFile ossFile : ossFileList) {
|
||||||
|
String filePath = ossFile.getUrl();
|
||||||
|
boolean b = CosBootUtil.doesObjectExist(filePath);
|
||||||
|
if (b) {
|
||||||
|
InputStream download = CosBootUtil.download(filePath);
|
||||||
|
ImportFileUtil.writeToLocal(attFile.getCanonicalPath() + "/" + ossFile.getFileName(), download);
|
||||||
|
sb.append(ossFile.getFileName()).append(",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cell.setCellValue(sb.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+43
@@ -236,5 +236,48 @@ public class OtaBaCxJbxxServiceImpl extends ServiceImpl<OtaBaCxJbxxMapper, OtaBa
|
|||||||
return jbxx;
|
return jbxx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void exportData(File file, String otaId, String cut) throws Exception {
|
||||||
|
OtaBaCxJbxx jbxx = this.getByOtaId(otaId);
|
||||||
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
|
Sheet s = wb.getSheetAt(0);
|
||||||
|
|
||||||
|
Row row = s.getRow(1);
|
||||||
|
Cell cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getQymc());
|
||||||
|
|
||||||
|
row = s.getRow(2);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getDjbh());
|
||||||
|
|
||||||
|
row = s.getRow(3);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getCplb());
|
||||||
|
row = s.getRow(4);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getGgpc());
|
||||||
|
row = s.getRow(5);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getCpsb());
|
||||||
|
row = s.getRow(6);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getCpmc());
|
||||||
|
row = s.getRow(7);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getCpxh());
|
||||||
|
row = s.getRow(8);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getDllx1());
|
||||||
|
row = s.getRow(9);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getDllx2());
|
||||||
|
row = s.getRow(10);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(sysDictService.queryDictItemByValue("communication_terminal", jbxx.getTxzd(), cut));
|
||||||
|
row = s.getRow(11);
|
||||||
|
cell = row.getCell(1);
|
||||||
|
cell.setCellValue(jbxx.getCdotasj());
|
||||||
|
wb.write(new FileOutputStream(file));
|
||||||
|
wb.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+303
-19
@@ -248,6 +248,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
parseFileList(upLoadFiles, otaId, cut);
|
parseFileList(upLoadFiles, otaId, cut);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception {
|
public void parseFileList(List<File> upLoadFiles, String otaId, String cut) throws Exception {
|
||||||
File upFile = null;
|
File upFile = null;
|
||||||
@@ -326,7 +327,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
Row row = s.getRow(2);
|
Row row = s.getRow(2);
|
||||||
Cell cell = row.getCell(2);
|
Cell cell = row.getCell(2);
|
||||||
bass.setJsfzczjPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setJsfzczjPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(2);
|
row = s.getRow(2);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setJgldSl(ImportFileUtil.getCellValue(cell, wb));
|
bass.setJgldSl(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -342,7 +343,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(6);
|
row = s.getRow(6);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setHmbldPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setHmbldPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(6);
|
row = s.getRow(6);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setHmbldSl(ImportFileUtil.getCellValue(cell, wb));
|
bass.setHmbldSl(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -359,7 +360,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(10);
|
row = s.getRow(10);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setCsbldPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setCsbldPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(10);
|
row = s.getRow(10);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setCsbldSl(ImportFileUtil.getCellValue(cell, wb));
|
bass.setCsbldSl(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -376,7 +377,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(14);
|
row = s.getRow(14);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setSxthsPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setSxthsPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(14);
|
row = s.getRow(14);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setSxthsSl(ImportFileUtil.getCellValue(cell, wb));
|
bass.setSxthsSl(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -392,7 +393,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(18);
|
row = s.getRow(18);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setSxtdsdPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setSxtdsdPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(18);
|
row = s.getRow(18);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setSxtdsdSl(ImportFileUtil.getCellValue(cell, wb));
|
bass.setSxtdsdSl(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -408,7 +409,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(22);
|
row = s.getRow(22);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setJsyjkPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setJsyjkPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(22);
|
row = s.getRow(22);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setJsyjkSl(ImportFileUtil.getCellValue(cell, wb));
|
bass.setJsyjkSl(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -424,7 +425,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(26);
|
row = s.getRow(26);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setJsyhwPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setJsyhwPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(26);
|
row = s.getRow(26);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setJsyhwSl(ImportFileUtil.getCellValue(cell, wb));
|
bass.setJsyhwSl(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -440,7 +441,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(30);
|
row = s.getRow(30);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setCzwxdwPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setCzwxdwPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(30);
|
row = s.getRow(30);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setCzwxdwGgxh(ImportFileUtil.getCellValue(cell, wb));
|
bass.setCzwxdwGgxh(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -450,7 +451,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(32);
|
row = s.getRow(32);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setGxdhPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setGxdhPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(32);
|
row = s.getRow(32);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setGxdhGgxh(ImportFileUtil.getCellValue(cell, wb));
|
bass.setGxdhGgxh(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -460,7 +461,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(34);
|
row = s.getRow(34);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setLsjPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setLsjPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(34);
|
row = s.getRow(34);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setLsjGgxh(ImportFileUtil.getCellValue(cell, wb));
|
bass.setLsjGgxh(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -470,7 +471,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(36);
|
row = s.getRow(36);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setGjddtPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setGjddtPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(36);
|
row = s.getRow(36);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setGjddtGgxh(ImportFileUtil.getCellValue(cell, wb));
|
bass.setGjddtGgxh(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -480,14 +481,14 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(38);
|
row = s.getRow(38);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setDzwlPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setDzwlPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(38);
|
row = s.getRow(38);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setDzwlDxxgcs(ImportFileUtil.getCellValue(cell, wb));
|
bass.setDzwlDxxgcs(ImportFileUtil.getCellValue(cell, wb));
|
||||||
|
|
||||||
row = s.getRow(39);
|
row = s.getRow(39);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setCztxPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setCztxPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(39);
|
row = s.getRow(39);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setCztxXtmc(ImportFileUtil.getCellValue(cell, wb));
|
bass.setCztxXtmc(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -506,7 +507,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(44);
|
row = s.getRow(44);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setJsfzczjPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setJsfzczjPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(44);
|
row = s.getRow(44);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setJsfzczjMc(ImportFileUtil.getCellValue(cell, wb));
|
bass.setJsfzczjMc(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -519,7 +520,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(47);
|
row = s.getRow(47);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setJsfzzsqPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setJsfzzsqPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(47);
|
row = s.getRow(47);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setJsfzzsqMc(ImportFileUtil.getCellValue(cell, wb));
|
bass.setJsfzzsqMc(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -532,7 +533,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(50);
|
row = s.getRow(50);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setFxptstsPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setFxptstsPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(50);
|
row = s.getRow(50);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setFxptstsMc(ImportFileUtil.getCellValue(cell, wb));
|
bass.setFxptstsMc(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -545,7 +546,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(53);
|
row = s.getRow(53);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setJsyzyltsPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setJsyzyltsPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(53);
|
row = s.getRow(53);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setJsyzyltsMc(ImportFileUtil.getCellValue(cell, wb));
|
bass.setJsyzyltsMc(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -558,7 +559,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(56);
|
row = s.getRow(56);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setDssadPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setDssadPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(56);
|
row = s.getRow(56);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setDssadGgxh(ImportFileUtil.getCellValue(cell, wb));
|
bass.setDssadGgxh(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -568,7 +569,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
|
|
||||||
row = s.getRow(58);
|
row = s.getRow(58);
|
||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
bass.setEdrPz(Integer.parseInt(ImportFileUtil.getCellValueYesOrNo(cell, wb)));
|
bass.setEdrPz(ImportFileUtil.getCellValueYesOrNoInt(cell, wb));
|
||||||
row = s.getRow(58);
|
row = s.getRow(58);
|
||||||
cell = row.getCell(4);
|
cell = row.getCell(4);
|
||||||
bass.setEdrGgxh(ImportFileUtil.getCellValue(cell, wb));
|
bass.setEdrGgxh(ImportFileUtil.getCellValue(cell, wb));
|
||||||
@@ -577,4 +578,287 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
bass.setEdrScqy(ImportFileUtil.getCellValue(cell, wb));
|
bass.setEdrScqy(ImportFileUtil.getCellValue(cell, wb));
|
||||||
return bass;
|
return bass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void exportData(File file, String otaId, String cut) throws Exception {
|
||||||
|
OtaBaCxJsfzbacs bass = getByOtaId(otaId);
|
||||||
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
|
Sheet s = wb.getSheetAt(0);
|
||||||
|
bass.setOtaId(otaId);
|
||||||
|
|
||||||
|
Row row = s.getRow(2);
|
||||||
|
Cell cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getJsfzczjPz()));
|
||||||
|
row = s.getRow(2);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJgldSl());
|
||||||
|
row = s.getRow(3);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJgldBzwz());
|
||||||
|
row = s.getRow(4);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJgldGgxh());
|
||||||
|
row = s.getRow(5);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJgldScqy());
|
||||||
|
|
||||||
|
row = s.getRow(6);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getHmbldPz()));
|
||||||
|
row = s.getRow(6);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getHmbldSl());
|
||||||
|
row = s.getRow(7);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getHmbldBzwz());
|
||||||
|
row = s.getRow(8);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getHmbldGgxh());
|
||||||
|
row = s.getRow(9);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getHmbldScqy());
|
||||||
|
row = s.getRow(10);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getCsbldPz()));
|
||||||
|
row = s.getRow(10);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCsbldSl());
|
||||||
|
row = s.getRow(11);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCsbldBzwz());
|
||||||
|
row = s.getRow(12);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCsbldGgxh());
|
||||||
|
row = s.getRow(13);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCsbldScqy());
|
||||||
|
|
||||||
|
row = s.getRow(14);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getSxthsPz()));
|
||||||
|
row = s.getRow(14);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getSxthsSl());
|
||||||
|
row = s.getRow(15);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getSxthsBzwz());
|
||||||
|
row = s.getRow(16);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getSxthsGgxh());
|
||||||
|
row = s.getRow(17);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getSxthsScqy());
|
||||||
|
|
||||||
|
row = s.getRow(18);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getSxtdsdPz()));
|
||||||
|
row = s.getRow(18);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getSxtdsdSl());
|
||||||
|
row = s.getRow(19);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getSxtdsdBzwz());
|
||||||
|
row = s.getRow(20);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getSxtdsdGgxh());
|
||||||
|
row = s.getRow(21);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getSxtdsdScqy());
|
||||||
|
|
||||||
|
row = s.getRow(22);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getJsyjkPz()));
|
||||||
|
row = s.getRow(22);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyjkSl());
|
||||||
|
row = s.getRow(23);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyjkBzwz());
|
||||||
|
row = s.getRow(24);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyjkGgxh());
|
||||||
|
row = s.getRow(25);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyjkScqy());
|
||||||
|
|
||||||
|
row = s.getRow(26);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getJsyhwPz()));
|
||||||
|
row = s.getRow(26);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyhwSl());
|
||||||
|
row = s.getRow(27);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyhwBzwz());
|
||||||
|
row = s.getRow(28);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyhwGgxh());
|
||||||
|
row = s.getRow(29);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyhwScqy());
|
||||||
|
|
||||||
|
row = s.getRow(30);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getCzwxdwPz()));
|
||||||
|
row = s.getRow(30);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCzwxdwGgxh());
|
||||||
|
row = s.getRow(31);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCzwxdwScqy());
|
||||||
|
|
||||||
|
row = s.getRow(32);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getGxdhPz()));
|
||||||
|
row = s.getRow(32);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getGxdhGgxh());
|
||||||
|
row = s.getRow(33);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getGxdhScqy());
|
||||||
|
|
||||||
|
row = s.getRow(34);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getLsjPz()));
|
||||||
|
row = s.getRow(34);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getLsjGgxh());
|
||||||
|
row = s.getRow(35);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getLsjScqy());
|
||||||
|
|
||||||
|
row = s.getRow(36);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getGjddtPz()));
|
||||||
|
row = s.getRow(36);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getGjddtGgxh());
|
||||||
|
row = s.getRow(37);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getGjddtScqy());
|
||||||
|
|
||||||
|
row = s.getRow(38);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getDzwlPz()));
|
||||||
|
row = s.getRow(38);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getDzwlDxxgcs());
|
||||||
|
|
||||||
|
row = s.getRow(39);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getCztxPz()));
|
||||||
|
row = s.getRow(39);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCztxXtmc());
|
||||||
|
row = s.getRow(40);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCztxGgxh());
|
||||||
|
row = s.getRow(41);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCztxScqy());
|
||||||
|
row = s.getRow(42);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCztxBbh());
|
||||||
|
row = s.getRow(43);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getCztxKfqy());
|
||||||
|
|
||||||
|
row = s.getRow(44);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getJsfzczjPz()));
|
||||||
|
row = s.getRow(44);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsfzczjMc());
|
||||||
|
row = s.getRow(45);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsfzczjYjxh());
|
||||||
|
row = s.getRow(46);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsfzczjScqy());
|
||||||
|
|
||||||
|
row = s.getRow(47);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getJsfzzsqPz()));
|
||||||
|
row = s.getRow(47);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsfzzsqMc());
|
||||||
|
row = s.getRow(48);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsfzzsqYjxh());
|
||||||
|
row = s.getRow(49);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsfzzsqScqy());
|
||||||
|
|
||||||
|
row = s.getRow(50);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getFxptstsPz()));
|
||||||
|
row = s.getRow(50);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getFxptstsMc());
|
||||||
|
row = s.getRow(51);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getFxptstsYjxh());
|
||||||
|
row = s.getRow(52);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getFxptstsScqy());
|
||||||
|
|
||||||
|
row = s.getRow(53);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getJsyzyltsPz()));
|
||||||
|
row = s.getRow(53);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyzyltsMc());
|
||||||
|
row = s.getRow(54);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyzyltsYjxh());
|
||||||
|
row = s.getRow(55);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getJsyzyltsScqy());
|
||||||
|
|
||||||
|
row = s.getRow(56);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getDssadPz()));
|
||||||
|
row = s.getRow(56);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getDssadGgxh());
|
||||||
|
row = s.getRow(57);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getDssadScqy());
|
||||||
|
|
||||||
|
row = s.getRow(58);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNoInt(bass.getEdrPz()));
|
||||||
|
row = s.getRow(58);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getEdrGgxh());
|
||||||
|
row = s.getRow(59);
|
||||||
|
cell = row.getCell(4);
|
||||||
|
cell.setCellValue(bass.getEdrScqy());
|
||||||
|
|
||||||
|
|
||||||
|
List<OtaBaCxSjmk> sjmkList = OtaBaCxSjmkService.queryByOtaId(otaId);
|
||||||
|
int startRow = 63;
|
||||||
|
for (OtaBaCxSjmk sjmk : sjmkList) {
|
||||||
|
row = s.getRow(startRow);
|
||||||
|
cell = row.createCell(0);
|
||||||
|
cell.setCellValue(sjmk.getBjmc());
|
||||||
|
cell = row.createCell(1);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(sjmk.getPzqk()));
|
||||||
|
cell = row.createCell(2);
|
||||||
|
cell.setCellValue(sjmk.getKzqmc());
|
||||||
|
cell = row.createCell(3);
|
||||||
|
cell.setCellValue(sjmk.getYjggxh());
|
||||||
|
cell = row.createCell(4);
|
||||||
|
cell.setCellValue(sjmk.getYjscqy());
|
||||||
|
cell = row.createCell(5);
|
||||||
|
cell.setCellValue(sjmk.getRjbb());
|
||||||
|
cell = row.createCell(6);
|
||||||
|
cell.setCellValue(sjmk.getRjkfqy());
|
||||||
|
cell = row.createCell(7);
|
||||||
|
cell.setCellValue(sjmk.getBzwz());
|
||||||
|
startRow++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+77
-3
@@ -5,6 +5,9 @@ import com.alibaba.fastjson.JSONArray;
|
|||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.jero.common.exception.JeroBootException;
|
import com.jero.common.exception.JeroBootException;
|
||||||
|
import com.jero.common.util.oss.CosBootUtil;
|
||||||
|
import com.jero.modules.oss.entity.OSSFile;
|
||||||
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import com.jero.modules.ota.entity.*;
|
import com.jero.modules.ota.entity.*;
|
||||||
import com.jero.modules.ota.enums.OtaModuleEnum;
|
import com.jero.modules.ota.enums.OtaModuleEnum;
|
||||||
import com.jero.modules.ota.enums.OtaTitleEnum;
|
import com.jero.modules.ota.enums.OtaTitleEnum;
|
||||||
@@ -26,6 +29,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.InputStream;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@@ -60,6 +64,9 @@ public class OtaBaCxKsjjsmccsServiceImpl extends ServiceImpl<OtaBaCxKsjjsmccsMap
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ISysDictService sysDictService;
|
private ISysDictService sysDictService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IOSSFileService ossFileService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
*
|
*
|
||||||
@@ -229,7 +236,7 @@ public class OtaBaCxKsjjsmccsServiceImpl extends ServiceImpl<OtaBaCxKsjjsmccsMap
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<OtaBaCxKsjjsmccs> oldList = getByOtaId(otaId);
|
List<OtaBaCxKsjjsmccs> oldList = getByOtaId(otaId);
|
||||||
List<OtaBaCxKsjjsmccs> mccsList = parseFile(upFile, otaId, cut);
|
List<OtaBaCxKsjjsmccs> mccsList = parseFile(upFile, attFile, otaId, cut);
|
||||||
ComparisonUtil cu = new ComparisonUtil();
|
ComparisonUtil cu = new ComparisonUtil();
|
||||||
List<OtaBaCxTxjl> reList = cu.comparisonListRecord(otaId, OtaModuleEnum.CX_KZXSJDJSFZGNMCYCS, OtaTitleEnum.GNMC.getName(), oldList, mccsList, sysDictService);
|
List<OtaBaCxTxjl> reList = cu.comparisonListRecord(otaId, OtaModuleEnum.CX_KZXSJDJSFZGNMCYCS, OtaTitleEnum.GNMC.getName(), oldList, mccsList, sysDictService);
|
||||||
deleteByOtaId(otaId);
|
deleteByOtaId(otaId);
|
||||||
@@ -238,7 +245,7 @@ public class OtaBaCxKsjjsmccsServiceImpl extends ServiceImpl<OtaBaCxKsjjsmccsMap
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<OtaBaCxKsjjsmccs> parseFile(File upFile, String otaId, String cut) throws Exception {
|
private List<OtaBaCxKsjjsmccs> parseFile(File upFile, File attFile, String otaId, String cut) throws Exception {
|
||||||
Date now = new Date();
|
Date now = new Date();
|
||||||
List<OtaBaCxKsjjsmccs> mccsList = new ArrayList<>();
|
List<OtaBaCxKsjjsmccs> mccsList = new ArrayList<>();
|
||||||
Workbook wb = ImportFileUtil.readExcel(upFile);
|
Workbook wb = ImportFileUtil.readExcel(upFile);
|
||||||
@@ -253,7 +260,10 @@ public class OtaBaCxKsjjsmccsServiceImpl extends ServiceImpl<OtaBaCxKsjjsmccsMap
|
|||||||
//列表数据数量,在证明材料处结束
|
//列表数据数量,在证明材料处结束
|
||||||
OtaBaCxList otaBaCxList = otaBaCxListService.queryById(otaId);
|
OtaBaCxList otaBaCxList = otaBaCxListService.queryById(otaId);
|
||||||
if (ObjectUtils.isNotEmpty(otaBaCxList)) {
|
if (ObjectUtils.isNotEmpty(otaBaCxList)) {
|
||||||
otaBaCxList.setZxsjjsfj(str);
|
cell = row.getCell(1);
|
||||||
|
str = ImportFileUtil.getCellValue(cell, wb);
|
||||||
|
String[] strs = str.split(",");
|
||||||
|
otaBaCxList.setZxsjjsfj(ImportFileUtil.uploadFiles(attFile, strs, ossFileService));
|
||||||
otaBaCxListService.editById(otaBaCxList);
|
otaBaCxListService.editById(otaBaCxList);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -292,4 +302,68 @@ public class OtaBaCxKsjjsmccsServiceImpl extends ServiceImpl<OtaBaCxKsjjsmccsMap
|
|||||||
}
|
}
|
||||||
return mccsList;
|
return mccsList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void exportData(File file, File attFile, String otaId, String cut) throws Exception {
|
||||||
|
List<OtaBaCxKsjjsmccs> mccsList = this.getByOtaId(otaId);
|
||||||
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
|
Sheet s = wb.getSheetAt(0);
|
||||||
|
int startRow = 3;
|
||||||
|
for (OtaBaCxKsjjsmccs mccs : mccsList) {
|
||||||
|
Row row = s.getRow(startRow);
|
||||||
|
Cell cell = row.createCell(0);
|
||||||
|
cell.setCellValue(mccs.getGnmc());
|
||||||
|
cell = row.createCell(1);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(mccs.getPzqk()));
|
||||||
|
cell = row.createCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(mccs.getSfksj()));
|
||||||
|
cell = row.createCell(3);
|
||||||
|
cell.setCellValue(mccs.getJszdhjb());
|
||||||
|
cell = row.createCell(4);
|
||||||
|
cell.setCellValue(mccs.getSjggcs());
|
||||||
|
cell = row.createCell(5);
|
||||||
|
cell.setCellValue(mccs.getGnms());
|
||||||
|
cell = row.createCell(6);
|
||||||
|
cell.setCellValue(mccs.getSytj());
|
||||||
|
cell = row.createCell(7);
|
||||||
|
cell.setCellValue(mccs.getKzqmc());
|
||||||
|
cell = row.createCell(8);
|
||||||
|
cell.setCellValue(mccs.getKzqscqy());
|
||||||
|
cell = row.createCell(9);
|
||||||
|
cell.setCellValue(mccs.getKzqxh());
|
||||||
|
cell = row.createCell(10);
|
||||||
|
cell.setCellValue(mccs.getYjbbxx());
|
||||||
|
cell = row.createCell(11);
|
||||||
|
cell.setCellValue(mccs.getRjkfqy());
|
||||||
|
cell = row.createCell(12);
|
||||||
|
cell.setCellValue(mccs.getCzxtbbh());
|
||||||
|
cell = row.createCell(13);
|
||||||
|
cell.setCellValue(mccs.getCsyzsj());
|
||||||
|
}
|
||||||
|
Row row = s.getRow(startRow);
|
||||||
|
Cell cell = row.createCell(0);
|
||||||
|
cell.setCellValue("证明材料");
|
||||||
|
cell = row.getCell(1);
|
||||||
|
OtaBaCxList otaBaCxList = otaBaCxListService.queryById(otaId);
|
||||||
|
if (ObjectUtils.isNotEmpty(otaBaCxList)) {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
String fj = otaBaCxList.getZxsjjsfj();
|
||||||
|
if (StringUtils.isNotEmpty(fj)) {
|
||||||
|
String[] strs = fj.split(",");
|
||||||
|
for (String str : strs) {
|
||||||
|
List<OSSFile> ossFileList = ossFileService.getFileInfos(str);
|
||||||
|
for (OSSFile ossFile : ossFileList) {
|
||||||
|
String filePath = ossFile.getUrl();
|
||||||
|
boolean b = CosBootUtil.doesObjectExist(filePath);
|
||||||
|
if (b) {
|
||||||
|
InputStream download = CosBootUtil.download(filePath);
|
||||||
|
ImportFileUtil.writeToLocal(attFile.getCanonicalPath() + "/" + ossFile.getFileName(), download);
|
||||||
|
sb.append(ossFile.getFileName()).append(",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cell.setCellValue(sb.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+97
-4
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
|
|||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.jero.common.exception.JeroBootException;
|
import com.jero.common.exception.JeroBootException;
|
||||||
|
import com.jero.common.util.oss.CosBootUtil;
|
||||||
import com.jero.modules.oss.entity.OSSFile;
|
import com.jero.modules.oss.entity.OSSFile;
|
||||||
import com.jero.modules.oss.service.IOSSFileService;
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import com.jero.modules.ota.entity.*;
|
import com.jero.modules.ota.entity.*;
|
||||||
@@ -28,6 +29,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.InputStream;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@@ -254,6 +256,8 @@ public class OtaBaCxKsjxtmccsServiceImpl extends ServiceImpl<OtaBaCxKsjxtmccsMap
|
|||||||
//列表数据数量,在证明材料处结束
|
//列表数据数量,在证明材料处结束
|
||||||
OtaBaCxList otaBaCxList = otaBaCxListService.queryById(otaId);
|
OtaBaCxList otaBaCxList = otaBaCxListService.queryById(otaId);
|
||||||
if (ObjectUtils.isNotEmpty(otaBaCxList)) {
|
if (ObjectUtils.isNotEmpty(otaBaCxList)) {
|
||||||
|
cell = row.getCell(1);
|
||||||
|
str = ImportFileUtil.getCellValue(cell, wb);
|
||||||
String[] strs = str.split(",");
|
String[] strs = str.split(",");
|
||||||
otaBaCxList.setZxsjxtfj(ImportFileUtil.uploadFiles(attFile, strs, ossFileService));
|
otaBaCxList.setZxsjxtfj(ImportFileUtil.uploadFiles(attFile, strs, ossFileService));
|
||||||
otaBaCxListService.editById(otaBaCxList);
|
otaBaCxListService.editById(otaBaCxList);
|
||||||
@@ -267,10 +271,10 @@ public class OtaBaCxKsjxtmccsServiceImpl extends ServiceImpl<OtaBaCxKsjxtmccsMap
|
|||||||
cell = row.getCell(2);
|
cell = row.getCell(2);
|
||||||
mssc.setSjbgcs(ImportFileUtil.getCellValue(cell, wb));
|
mssc.setSjbgcs(ImportFileUtil.getCellValue(cell, wb));
|
||||||
cell = row.getCell(3);
|
cell = row.getCell(3);
|
||||||
mssc.setTpt(ImportFileUtil.getCellValue(cell, wb));
|
|
||||||
cell = row.getCell(4);
|
|
||||||
String[] strs = ImportFileUtil.getCellValue(cell, wb).split(",");
|
String[] strs = ImportFileUtil.getCellValue(cell, wb).split(",");
|
||||||
mssc.setKzqmc(ImportFileUtil.uploadFiles(attFile, strs, ossFileService));
|
mssc.setTpt(ImportFileUtil.uploadFiles(attFile, strs, ossFileService));
|
||||||
|
cell = row.getCell(4);
|
||||||
|
mssc.setKzqmc(ImportFileUtil.getCellValue(cell, wb));
|
||||||
cell = row.getCell(5);
|
cell = row.getCell(5);
|
||||||
mssc.setAqwzxdj(ImportFileUtil.getCellValue(cell, wb));
|
mssc.setAqwzxdj(ImportFileUtil.getCellValue(cell, wb));
|
||||||
cell = row.getCell(6);
|
cell = row.getCell(6);
|
||||||
@@ -298,4 +302,93 @@ public class OtaBaCxKsjxtmccsServiceImpl extends ServiceImpl<OtaBaCxKsjxtmccsMap
|
|||||||
}
|
}
|
||||||
return mccsList;
|
return mccsList;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void exportData(File file, File attFile, String otaId, String cut) throws Exception {
|
||||||
|
List<OtaBaCxKsjxtmccs> mccsList = this.getByOtaId(otaId);
|
||||||
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
|
Sheet s = wb.getSheetAt(0);
|
||||||
|
|
||||||
|
int startRow = 3;
|
||||||
|
for (OtaBaCxKsjxtmccs mccs : mccsList) {
|
||||||
|
Row row = s.getRow(startRow);
|
||||||
|
Cell cell = row.createCell(0);
|
||||||
|
cell.setCellValue(mccs.getXtlb());
|
||||||
|
|
||||||
|
cell = row.createCell(1);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(mccs.getSfksj()));
|
||||||
|
|
||||||
|
cell = row.createCell(2);
|
||||||
|
cell.setCellValue(mccs.getSjbgcs());
|
||||||
|
cell = row.createCell(3);
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
String tptStr = mccs.getTpt();
|
||||||
|
if (StringUtils.isNotEmpty(tptStr)) {
|
||||||
|
String[] strs = tptStr.split(",");
|
||||||
|
for (String str : strs) {
|
||||||
|
List<OSSFile> ossFileList = ossFileService.getFileInfos(str);
|
||||||
|
for (OSSFile ossFile : ossFileList) {
|
||||||
|
String filePath = ossFile.getUrl();
|
||||||
|
boolean b = CosBootUtil.doesObjectExist(filePath);
|
||||||
|
if (b) {
|
||||||
|
InputStream download = CosBootUtil.download(filePath);
|
||||||
|
ImportFileUtil.writeToLocal(attFile.getCanonicalPath() + "/" + ossFile.getFileName(), download);
|
||||||
|
sb.append(ossFile.getFileName()).append(",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cell.setCellValue(sb.toString());
|
||||||
|
}
|
||||||
|
cell = row.createCell(4);
|
||||||
|
cell.setCellValue(mccs.getKzqmc());
|
||||||
|
cell = row.createCell(5);
|
||||||
|
cell.setCellValue(mccs.getAqwzxdj());
|
||||||
|
cell = row.createCell(6);
|
||||||
|
cell.setCellValue(mccs.getKzqscqy());
|
||||||
|
cell = row.createCell(7);
|
||||||
|
cell.setCellValue(mccs.getKzqxh());
|
||||||
|
cell = row.createCell(8);
|
||||||
|
cell.setCellValue(mccs.getYjbbxx());
|
||||||
|
cell = row.createCell(9);
|
||||||
|
cell.setCellValue(mccs.getCsrjbbh());
|
||||||
|
cell = row.createCell(10);
|
||||||
|
cell.setCellValue(mccs.getCsrjbwzsj());
|
||||||
|
cell = row.createCell(11);
|
||||||
|
cell.setCellValue(mccs.getSjsfyx());
|
||||||
|
cell = row.createCell(12);
|
||||||
|
cell.setCellValue(mccs.getCzxtlx());
|
||||||
|
cell = row.createCell(13);
|
||||||
|
cell.setCellValue(mccs.getCzxtscqy());
|
||||||
|
cell = row.createCell(14);
|
||||||
|
cell.setCellValue(mccs.getCzxtbbh());
|
||||||
|
startRow++;
|
||||||
|
}
|
||||||
|
Row row = s.getRow(startRow);
|
||||||
|
Cell cell = row.createCell(0);
|
||||||
|
cell.setCellValue("证明材料");
|
||||||
|
cell = row.getCell(1);
|
||||||
|
OtaBaCxList otaBaCxList = otaBaCxListService.queryById(otaId);
|
||||||
|
if (ObjectUtils.isNotEmpty(otaBaCxList)) {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
String fj = otaBaCxList.getZxsjxtfj();
|
||||||
|
if (StringUtils.isNotEmpty(fj)) {
|
||||||
|
String[] strs = fj.split(",");
|
||||||
|
for (String str : strs) {
|
||||||
|
List<OSSFile> ossFileList = ossFileService.getFileInfos(str);
|
||||||
|
for (OSSFile ossFile : ossFileList) {
|
||||||
|
String filePath = ossFile.getUrl();
|
||||||
|
boolean b = CosBootUtil.doesObjectExist(filePath);
|
||||||
|
if (b) {
|
||||||
|
InputStream download = CosBootUtil.download(filePath);
|
||||||
|
ImportFileUtil.writeToLocal(attFile.getCanonicalPath() + "/" + ossFile.getFileName(), download);
|
||||||
|
sb.append(ossFile.getFileName()).append(",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cell.setCellValue(sb.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+34
-27
@@ -10,6 +10,7 @@ import com.jero.modules.ota.mapper.OtaBaCxListMapper;
|
|||||||
import com.jero.modules.ota.service.*;
|
import com.jero.modules.ota.service.*;
|
||||||
import com.jero.modules.ota.utils.ImportFileUtil;
|
import com.jero.modules.ota.utils.ImportFileUtil;
|
||||||
import com.jero.modules.system.util.StringUtils;
|
import com.jero.modules.system.util.StringUtils;
|
||||||
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.ibatis.logging.Log;
|
import org.apache.ibatis.logging.Log;
|
||||||
import org.apache.ibatis.logging.LogFactory;
|
import org.apache.ibatis.logging.LogFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -19,10 +20,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.*;
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileInputStream;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -187,28 +185,37 @@ public class OtaBaCxListServiceImpl extends ServiceImpl<OtaBaCxListMapper, OtaBa
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exportData(String otaId, HttpServletResponse response, HttpServletRequest request) {
|
public void exportData(String otaId, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||||
log.error("otaId:" + otaId);
|
String cut = "cn";
|
||||||
File template = new File("D://opt//ota//车型及功能备案.zip");
|
File template = new File(templatePath + "车型及功能备案导出.zip");
|
||||||
BufferedOutputStream os = null;
|
File exportFile = ImportFileUtil.copyZip(ImportFileUtil.createMfileByFile(template), cut, uploadPath);
|
||||||
InputStream in = null;
|
File jbxxFile = ImportFileUtil.findFile(exportFile, "车型基本信息.xlsx");
|
||||||
try {
|
otaBaCxJbxxService.exportData(jbxxFile, otaId, cut);
|
||||||
in = new FileInputStream(template);
|
|
||||||
response.setHeader("Content-disposition", "attachment;filename=" + template.getName());
|
File sjyqFile = ImportFileUtil.findFile(exportFile, "在线升级要求.xlsx");
|
||||||
response.setContentType("application/octet-stream;charset=UTF-8");
|
File sjyqAttFile = ImportFileUtil.findFoder(exportFile, "在线升级要求");
|
||||||
os = new BufferedOutputStream(response.getOutputStream());
|
otaBaCxZxsjyqService.exportData(sjyqFile, sjyqAttFile, otaId, cut);
|
||||||
int len;
|
|
||||||
while ((len = in.read()) != -1) {
|
|
||||||
os.write(len);
|
File aqcsFile = ImportFileUtil.findFile(exportFile, "安全措施.xlsx");
|
||||||
os.flush();
|
File aqcsAttFile = ImportFileUtil.findFoder(exportFile, "安全措施");
|
||||||
}
|
otaBaCxAqcsService.exportData(aqcsFile, aqcsAttFile, otaId, cut);
|
||||||
in.close();
|
|
||||||
os.close();
|
File mccsFile = ImportFileUtil.findFile(exportFile, "可在线升级的系统名称与参数.xlsx");
|
||||||
} catch (Exception e) {
|
File mccsAttFile = ImportFileUtil.findFoder(exportFile, "可在线升级的系统名称与参数");
|
||||||
throw new JeroBootException("下载文件失败,请重试");
|
otaBaCxKsjxtmccsService.exportData(mccsFile, mccsAttFile, otaId, cut);
|
||||||
} finally {
|
|
||||||
IOUtils.closeQuietly(in);
|
File jsmccsFile = ImportFileUtil.findFile(exportFile, "可在线升级的驾驶辅助功能名称与参数.xlsx");
|
||||||
IOUtils.closeQuietly(os);
|
File jsmccsAttFile = ImportFileUtil.findFoder(exportFile, "可在线升级的驾驶辅助功能名称与参数");
|
||||||
}
|
otaBaCxKsjjsmccsService.exportData(jsmccsFile, jsmccsAttFile, otaId, cut);
|
||||||
|
|
||||||
|
File bacsFile = ImportFileUtil.findFile(exportFile, "驾驶辅助系统基础备案参数.xlsx");
|
||||||
|
otaBaCxJsfzbacsService.exportData(bacsFile, otaId, cut);
|
||||||
|
|
||||||
|
|
||||||
|
String outPath = uploadPath + "/车型及功能备案" + System.currentTimeMillis() + ".zip";
|
||||||
|
FileOutputStream fos1 = new FileOutputStream(outPath);
|
||||||
|
ImportFileUtil.toZip(exportFile.getCanonicalPath(), fos1, true);
|
||||||
|
ImportFileUtil.exportTemplate(response, outPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -93,6 +93,7 @@ public class OtaBaCxLsjlServiceImpl extends ServiceImpl<OtaBaCxLsjlMapper, OtaBa
|
|||||||
public List<OtaBaCxLsjl> queryByOtaId(String otaId) {
|
public List<OtaBaCxLsjl> queryByOtaId(String otaId) {
|
||||||
LambdaQueryWrapper<OtaBaCxLsjl> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<OtaBaCxLsjl> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.eq(OtaBaCxLsjl::getOtaId, otaId);
|
queryWrapper.eq(OtaBaCxLsjl::getOtaId, otaId);
|
||||||
|
queryWrapper.orderByDesc(OtaBaCxLsjl::getCreateTime);
|
||||||
List<OtaBaCxLsjl> res = this.list(queryWrapper);
|
List<OtaBaCxLsjl> res = this.list(queryWrapper);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|||||||
+62
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.jero.common.exception.JeroBootException;
|
import com.jero.common.exception.JeroBootException;
|
||||||
|
import com.jero.common.util.oss.CosBootUtil;
|
||||||
import com.jero.modules.oss.entity.OSSFile;
|
import com.jero.modules.oss.entity.OSSFile;
|
||||||
import com.jero.modules.oss.service.IOSSFileService;
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import com.jero.modules.ota.entity.AttachmentEO;
|
import com.jero.modules.ota.entity.AttachmentEO;
|
||||||
@@ -16,6 +17,8 @@ import com.jero.modules.ota.service.IOtaBaCxZxsjyqService;
|
|||||||
import com.jero.modules.ota.utils.ComparisonUtil;
|
import com.jero.modules.ota.utils.ComparisonUtil;
|
||||||
import com.jero.modules.ota.utils.ImportFileUtil;
|
import com.jero.modules.ota.utils.ImportFileUtil;
|
||||||
import com.jero.modules.system.service.ISysDictService;
|
import com.jero.modules.system.service.ISysDictService;
|
||||||
|
import org.apache.commons.collections4.ListUtils;
|
||||||
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.poi.ss.usermodel.Cell;
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
@@ -30,6 +33,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.InputStream;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -250,4 +254,62 @@ public class OtaBaCxZxsjyqServiceImpl extends ServiceImpl<OtaBaCxZxsjyqMapper, O
|
|||||||
otaBaCxZxsjyq.setZmcl(obj.toString());
|
otaBaCxZxsjyq.setZmcl(obj.toString());
|
||||||
return otaBaCxZxsjyq;
|
return otaBaCxZxsjyq;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void exportData(File file, File attFile, String otaId, String cut) throws Exception {
|
||||||
|
OtaBaCxZxsjyq otaBaCxZxsjyq = this.getByOtaId(otaId);
|
||||||
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
|
Sheet s = wb.getSheetAt(0);
|
||||||
|
Row row = s.getRow(2);
|
||||||
|
Cell cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getBhsjb()));
|
||||||
|
row = s.getRow(3);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getBhclbb()));
|
||||||
|
row = s.getRow(4);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getClgxnl()));
|
||||||
|
row = s.getRow(5);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getClsjtj()));
|
||||||
|
row = s.getRow(6);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getClsjdl()));
|
||||||
|
row = s.getRow(7);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getSjbhaq()));
|
||||||
|
row = s.getRow(8);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getSjantj()));
|
||||||
|
row = s.getRow(9);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getSjsbaq()));
|
||||||
|
row = s.getRow(10);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getSjgg()));
|
||||||
|
row = s.getRow(11);
|
||||||
|
cell = row.getCell(2);
|
||||||
|
cell.setCellValue(ImportFileUtil.getCellValueYesOrNo(otaBaCxZxsjyq.getSjzt()));
|
||||||
|
|
||||||
|
row = s.getRow(2);
|
||||||
|
cell = row.getCell(3);
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
String attStr = otaBaCxZxsjyq.getZmcl();
|
||||||
|
List<AttachmentEO> attList = JSONArray.parseArray(attStr, AttachmentEO.class);
|
||||||
|
if (ObjectUtils.isNotEmpty(attList)) {
|
||||||
|
for (AttachmentEO aeo : attList) {
|
||||||
|
List<OSSFile> ossFileList = ossFileService.getFileInfos(aeo.getId());
|
||||||
|
for (OSSFile ossFile : ossFileList) {
|
||||||
|
String filePath = ossFile.getUrl();
|
||||||
|
boolean b = CosBootUtil.doesObjectExist(filePath);
|
||||||
|
if (b) {
|
||||||
|
InputStream download = CosBootUtil.download(filePath);
|
||||||
|
ImportFileUtil.writeToLocal(attFile.getCanonicalPath() + "/" + ossFile.getFileName(), download);
|
||||||
|
sb.append(ossFile.getFileName()).append(",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cell.setCellValue(sb.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-10
@@ -70,7 +70,7 @@ public class ComparisonUtil<T> {
|
|||||||
Object newVal = field.get(newObj);
|
Object newVal = field.get(newObj);
|
||||||
String newStr = "";
|
String newStr = "";
|
||||||
if (ObjectUtils.isNotEmpty(newVal) && !field.getName().equals(tableField.getName())) {
|
if (ObjectUtils.isNotEmpty(newVal) && !field.getName().equals(tableField.getName())) {
|
||||||
newStr = newVal.toString();
|
newStr = parseDictText(ote, field, newObj, sysDictService);
|
||||||
content = tableField.get(newObj).toString() + "-" + title + "由'空'改为'" + newStr + "'";
|
content = tableField.get(newObj).toString() + "-" + title + "由'空'改为'" + newStr + "'";
|
||||||
resList.add(new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content));
|
resList.add(new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content));
|
||||||
}
|
}
|
||||||
@@ -86,6 +86,7 @@ public class ComparisonUtil<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (T oldObj : oldList) {
|
for (T oldObj : oldList) {
|
||||||
|
boolean flag = true;
|
||||||
if (ObjectUtils.isNotEmpty(oldObj)) {
|
if (ObjectUtils.isNotEmpty(oldObj)) {
|
||||||
Field idField = oldObj.getClass().getDeclaredField("id");
|
Field idField = oldObj.getClass().getDeclaredField("id");
|
||||||
idField.setAccessible(true);
|
idField.setAccessible(true);
|
||||||
@@ -94,19 +95,22 @@ public class ComparisonUtil<T> {
|
|||||||
if (ObjectUtils.isNotEmpty(newObj)) {
|
if (ObjectUtils.isNotEmpty(newObj)) {
|
||||||
Object newId = idField.get(newObj);
|
Object newId = idField.get(newObj);
|
||||||
if (ObjectUtils.isNotEmpty(newId) && oldId.equals(newId.toString())) {
|
if (ObjectUtils.isNotEmpty(newId) && oldId.equals(newId.toString())) {
|
||||||
|
flag = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Field tableTitleField = oldObj.getClass().getDeclaredField(tableTitle);
|
if (flag) {
|
||||||
tableTitleField.setAccessible(true);
|
Field tableTitleField = oldObj.getClass().getDeclaredField(tableTitle);
|
||||||
Object tableTitleObj = tableTitleField.get(oldObj);
|
tableTitleField.setAccessible(true);
|
||||||
String tableTitleObjStr = "空";
|
Object tableTitleObj = tableTitleField.get(oldObj);
|
||||||
if (ObjectUtils.isNotEmpty(tableTitleObj)) {
|
String tableTitleObjStr = "空";
|
||||||
tableTitleObjStr = tableTitleObj.toString();
|
if (ObjectUtils.isNotEmpty(tableTitleObj)) {
|
||||||
|
tableTitleObjStr = tableTitleObj.toString();
|
||||||
|
}
|
||||||
|
String content = "删除了'" + tableTitleObjStr + "'";
|
||||||
|
resList.add(new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content));
|
||||||
}
|
}
|
||||||
String content = "删除了'" + tableTitleObjStr + "'";
|
|
||||||
resList.add(new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IllegalAccessException | NoSuchFieldException e) {
|
} catch (IllegalAccessException | NoSuchFieldException e) {
|
||||||
@@ -136,7 +140,7 @@ public class ComparisonUtil<T> {
|
|||||||
Object newVal = field.get(newClazz);
|
Object newVal = field.get(newClazz);
|
||||||
String newTitleStr = "空";
|
String newTitleStr = "空";
|
||||||
if (ObjectUtils.isNotEmpty(newVal)) {
|
if (ObjectUtils.isNotEmpty(newVal)) {
|
||||||
Field tableField = newVal.getClass().getDeclaredField(tableTitle);
|
Field tableField = newClazz.getClass().getDeclaredField(tableTitle);
|
||||||
tableField.setAccessible(true);
|
tableField.setAccessible(true);
|
||||||
Object newTitleVal = tableField.get(newVal);
|
Object newTitleVal = tableField.get(newVal);
|
||||||
if (ObjectUtils.isNotEmpty(newTitleVal)) {
|
if (ObjectUtils.isNotEmpty(newTitleVal)) {
|
||||||
|
|||||||
+246
-25
@@ -12,15 +12,22 @@ import org.apache.commons.lang3.ObjectUtils;
|
|||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.http.entity.ContentType;
|
import org.apache.http.entity.ContentType;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
import org.apache.poi.ss.usermodel.*;
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
|
import org.apache.poi.ss.usermodel.DataFormatter;
|
||||||
|
import org.apache.poi.ss.usermodel.FormulaEvaluator;
|
||||||
|
import org.apache.poi.ss.usermodel.Workbook;
|
||||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||||
import org.springframework.mock.web.MockMultipartFile;
|
import org.springframework.mock.web.MockMultipartFile;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
import java.nio.file.*;
|
||||||
|
import java.nio.file.attribute.BasicFileAttributes;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.zip.ZipEntry;
|
||||||
|
import java.util.zip.ZipOutputStream;
|
||||||
|
|
||||||
public class ImportFileUtil {
|
public class ImportFileUtil {
|
||||||
|
|
||||||
@@ -52,8 +59,7 @@ public class ImportFileUtil {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<File> importZip(MultipartFile file, String cut, String uploadPath) throws Exception {
|
public static File copyZip(MultipartFile file, String cut, String uploadPath) throws Exception {
|
||||||
List<File> fileList = new ArrayList<>();
|
|
||||||
int pos = file.getOriginalFilename().lastIndexOf(".");
|
int pos = file.getOriginalFilename().lastIndexOf(".");
|
||||||
String str = file.getOriginalFilename().substring(pos + 1).toLowerCase();
|
String str = file.getOriginalFilename().substring(pos + 1).toLowerCase();
|
||||||
String filenameorg = file.getOriginalFilename().substring(0, pos);
|
String filenameorg = file.getOriginalFilename().substring(0, pos);
|
||||||
@@ -77,7 +83,12 @@ public class ImportFileUtil {
|
|||||||
if (str.equals("zip")) {
|
if (str.equals("zip")) {
|
||||||
zipEntryName = FileUnZip.unZipFiles(path + File.separator + file.getOriginalFilename(), path);
|
zipEntryName = FileUnZip.unZipFiles(path + File.separator + file.getOriginalFilename(), path);
|
||||||
}
|
}
|
||||||
File fileNew = new File(path);
|
return new File(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static List<File> importZip(MultipartFile file, String cut, String uploadPath) throws Exception {
|
||||||
|
List<File> fileList = new ArrayList<>();
|
||||||
|
File fileNew = ImportFileUtil.copyZip(file, cut, uploadPath);
|
||||||
for (File file1 : fileNew.listFiles()) {
|
for (File file1 : fileNew.listFiles()) {
|
||||||
if (file1.getName().contains(".xls") || file1.getName().contains(".xlsx") || file1.isDirectory()
|
if (file1.getName().contains(".xls") || file1.getName().contains(".xlsx") || file1.isDirectory()
|
||||||
|| file1.getName().contains(".docx") || file1.getName().contains(".doc")) {
|
|| file1.getName().contains(".docx") || file1.getName().contains(".doc")) {
|
||||||
@@ -112,7 +123,6 @@ public class ImportFileUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Workbook readExcel(File file) {
|
public static Workbook readExcel(File file) {
|
||||||
Workbook wb = null;
|
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -121,9 +131,9 @@ public class ImportFileUtil {
|
|||||||
try {
|
try {
|
||||||
is = new FileInputStream(file);
|
is = new FileInputStream(file);
|
||||||
if (".xls".equals(extString)) {
|
if (".xls".equals(extString)) {
|
||||||
return wb = new HSSFWorkbook(is);
|
return new HSSFWorkbook(is);
|
||||||
} else if (".xlsx".equals(extString)) {
|
} else if (".xlsx".equals(extString)) {
|
||||||
return wb = new XSSFWorkbook(is);
|
return new XSSFWorkbook(is);
|
||||||
}
|
}
|
||||||
is.close();
|
is.close();
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
@@ -133,7 +143,7 @@ public class ImportFileUtil {
|
|||||||
} finally {
|
} finally {
|
||||||
IOUtils.closeQuietly(is);
|
IOUtils.closeQuietly(is);
|
||||||
}
|
}
|
||||||
return wb;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getCellValue(Cell cell, Workbook workbook) throws Exception {
|
public static String getCellValue(Cell cell, Workbook workbook) throws Exception {
|
||||||
@@ -147,6 +157,15 @@ public class ImportFileUtil {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Integer getCellValueYesOrNoInt(Cell cell, Workbook workbook) throws Exception {
|
||||||
|
Integer res = null;
|
||||||
|
String str = getCellValueYesOrNo(cell, workbook);
|
||||||
|
if (StringUtils.isNotEmpty(str)) {
|
||||||
|
res = Integer.parseInt(str);
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
public static String getCellValueYesOrNo(Cell cell, Workbook workbook) throws Exception {
|
public static String getCellValueYesOrNo(Cell cell, Workbook workbook) throws Exception {
|
||||||
String res = "";
|
String res = "";
|
||||||
String str = getCellValue(cell, workbook);
|
String str = getCellValue(cell, workbook);
|
||||||
@@ -160,6 +179,30 @@ public class ImportFileUtil {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String getCellValueYesOrNoInt(Integer val) throws Exception {
|
||||||
|
String res = "";
|
||||||
|
if (ObjectUtils.isNotEmpty(val)) {
|
||||||
|
if (val.equals(1)) {
|
||||||
|
res = "是";
|
||||||
|
} else if (val.equals(2)) {
|
||||||
|
res = "否";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getCellValueYesOrNo(String str) throws Exception {
|
||||||
|
String res = "";
|
||||||
|
if (StringUtils.isNotEmpty(str)) {
|
||||||
|
if (str.equals("1")) {
|
||||||
|
res = "是";
|
||||||
|
} else if (str.equals("2")) {
|
||||||
|
res = "否";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
public static String getCellValueDict(Cell cell, Workbook wb, String dictType, ISysDictService sysDictService, String cut) throws Exception {
|
public static String getCellValueDict(Cell cell, Workbook wb, String dictType, ISysDictService sysDictService, String cut) throws Exception {
|
||||||
String res = "";
|
String res = "";
|
||||||
String str = ImportFileUtil.getCellValue(cell, wb);
|
String str = ImportFileUtil.getCellValue(cell, wb);
|
||||||
@@ -193,6 +236,34 @@ public class ImportFileUtil {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static File findFoder(File file, String fileName) throws Exception {
|
||||||
|
// 获取此地址中的所有文件以及文件夹(File[] list)
|
||||||
|
File[] listFiles = file.listFiles();// 获取此地址中的所有文件以及文件夹(File[] list)
|
||||||
|
for (File file1 : listFiles) {// 遍历数组
|
||||||
|
// 判断当前的File对象是否为文件夹
|
||||||
|
if (file1.isDirectory()) {
|
||||||
|
String name = file1.getName();
|
||||||
|
if (name.equals(fileName)) {
|
||||||
|
return file1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static File findFile(List<File> file, String fileName) throws Exception {
|
||||||
|
for (File file1 : file) {// 遍历数组
|
||||||
|
// 判断当前的File对象是否为文件夹
|
||||||
|
if (!file1.isDirectory()) {
|
||||||
|
String name = file1.getName();
|
||||||
|
if (name.equals(fileName)) {
|
||||||
|
return file1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public static MultipartFile createMfileByFile(File file) {
|
public static MultipartFile createMfileByFile(File file) {
|
||||||
MultipartFile mFile = null;
|
MultipartFile mFile = null;
|
||||||
try {
|
try {
|
||||||
@@ -209,13 +280,15 @@ public class ImportFileUtil {
|
|||||||
public static List<OSSFile> uploadFiles1(File attFile, String[] strs, IOSSFileService ossFileService) throws Exception {
|
public static List<OSSFile> uploadFiles1(File attFile, String[] strs, IOSSFileService ossFileService) throws Exception {
|
||||||
List<OSSFile> res = new ArrayList<>();
|
List<OSSFile> res = new ArrayList<>();
|
||||||
for (int i = 0; i < strs.length; i++) {
|
for (int i = 0; i < strs.length; i++) {
|
||||||
File file = ImportFileUtil.findFile(attFile, strs[i]);
|
if (StringUtils.isNotEmpty(strs[i])) {
|
||||||
if (null == file) {
|
File file = ImportFileUtil.findFile(attFile, strs[i]);
|
||||||
throw new JeroBootException("找不到文件:" + strs[i]);
|
if (null == file) {
|
||||||
}
|
throw new JeroBootException("找不到文件:" + strs[i]);
|
||||||
OSSFile ossFile = ossFileService.uploadLocalOfCos(ImportFileUtil.createMfileByFile(file), "", null, null);
|
}
|
||||||
if (ObjectUtils.isNotEmpty(ossFile)) {
|
OSSFile ossFile = ossFileService.uploadLocalOfCos(ImportFileUtil.createMfileByFile(file), "", null, null);
|
||||||
res.add(ossFile);
|
if (ObjectUtils.isNotEmpty(ossFile)) {
|
||||||
|
res.add(ossFile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
@@ -224,20 +297,168 @@ public class ImportFileUtil {
|
|||||||
public static String uploadFiles(File attFile, String[] strs, IOSSFileService ossFileService) throws Exception {
|
public static String uploadFiles(File attFile, String[] strs, IOSSFileService ossFileService) throws Exception {
|
||||||
String res = "";
|
String res = "";
|
||||||
for (int i = 0; i < strs.length; i++) {
|
for (int i = 0; i < strs.length; i++) {
|
||||||
File file = ImportFileUtil.findFile(attFile, strs[i]);
|
if (StringUtils.isNotEmpty(strs[i])) {
|
||||||
if (null == file) {
|
File file = ImportFileUtil.findFile(attFile, strs[i]);
|
||||||
throw new JeroBootException("找不到文件:" + strs[i]);
|
if (null == file) {
|
||||||
}
|
throw new JeroBootException("找不到文件:" + strs[i]);
|
||||||
OSSFile ossFile = ossFileService.uploadLocalOfCos(ImportFileUtil.createMfileByFile(file), "", null, null);
|
}
|
||||||
if (ObjectUtils.isNotEmpty(ossFile)) {
|
OSSFile ossFile = ossFileService.uploadLocalOfCos(ImportFileUtil.createMfileByFile(file), "", null, null);
|
||||||
if (i >= strs.length - 1) {
|
if (ObjectUtils.isNotEmpty(ossFile)) {
|
||||||
res += ossFile.getId();
|
if (i >= strs.length - 1) {
|
||||||
} else {
|
res += ossFile.getId();
|
||||||
res += ossFile.getId() + ",";
|
} else {
|
||||||
|
res += ossFile.getId() + ",";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static final int BUFFER_SIZE = 2 * 1024;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 压缩成ZIP 方法1
|
||||||
|
*
|
||||||
|
* @param srcDir 压缩文件夹路径
|
||||||
|
* @param out 压缩文件输出流
|
||||||
|
* @param KeepDirStructure 是否保留原来的目录结构,true:保留目录结构;
|
||||||
|
* false:所有文件跑到压缩包根目录下(注意:不保留目录结构可能会出现同名文件,会压缩失败)
|
||||||
|
* @throws RuntimeException 压缩失败会抛出运行时异常
|
||||||
|
*/
|
||||||
|
public static void toZip(String srcDir, OutputStream out, boolean KeepDirStructure)
|
||||||
|
throws RuntimeException {
|
||||||
|
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
ZipOutputStream zos = null;
|
||||||
|
try {
|
||||||
|
zos = new ZipOutputStream(out);
|
||||||
|
File sourceFile = new File(srcDir);
|
||||||
|
compress(sourceFile, zos, sourceFile.getName(), KeepDirStructure);
|
||||||
|
long end = System.currentTimeMillis();
|
||||||
|
System.out.println("压缩完成,耗时:" + (end - start) + " ms");
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException("zip error from ZipUtils", e);
|
||||||
|
} finally {
|
||||||
|
if (zos != null) {
|
||||||
|
try {
|
||||||
|
zos.close();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 压缩成ZIP 方法2
|
||||||
|
*
|
||||||
|
* @param srcFiles 需要压缩的文件列表
|
||||||
|
* @param out 压缩文件输出流
|
||||||
|
* @throws RuntimeException 压缩失败会抛出运行时异常
|
||||||
|
*/
|
||||||
|
public static void toZip(List<File> srcFiles, OutputStream out) throws RuntimeException {
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
ZipOutputStream zos = null;
|
||||||
|
try {
|
||||||
|
zos = new ZipOutputStream(out);
|
||||||
|
for (File srcFile : srcFiles) {
|
||||||
|
byte[] buf = new byte[BUFFER_SIZE];
|
||||||
|
zos.putNextEntry(new ZipEntry(srcFile.getName()));
|
||||||
|
int len;
|
||||||
|
FileInputStream in = new FileInputStream(srcFile);
|
||||||
|
while ((len = in.read(buf)) != -1) {
|
||||||
|
zos.write(buf, 0, len);
|
||||||
|
}
|
||||||
|
zos.closeEntry();
|
||||||
|
in.close();
|
||||||
|
}
|
||||||
|
long end = System.currentTimeMillis();
|
||||||
|
System.out.println("压缩完成,耗时:" + (end - start) + " ms");
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException("zip error from ZipUtils", e);
|
||||||
|
} finally {
|
||||||
|
if (zos != null) {
|
||||||
|
try {
|
||||||
|
zos.close();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 递归压缩方法
|
||||||
|
*
|
||||||
|
* @param sourceFile 源文件
|
||||||
|
* @param zos zip输出流
|
||||||
|
* @param name 压缩后的名称
|
||||||
|
* @param KeepDirStructure 是否保留原来的目录结构,true:保留目录结构;
|
||||||
|
* false:所有文件跑到压缩包根目录下(注意:不保留目录结构可能会出现同名文件,会压缩失败)
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
private static void compress(File sourceFile, ZipOutputStream zos, String name,
|
||||||
|
boolean KeepDirStructure) throws Exception {
|
||||||
|
byte[] buf = new byte[BUFFER_SIZE];
|
||||||
|
if (sourceFile.isFile()) {
|
||||||
|
// 向zip输出流中添加一个zip实体,构造器中name为zip实体的文件的名字
|
||||||
|
zos.putNextEntry(new ZipEntry(name));
|
||||||
|
// copy文件到zip输出流中
|
||||||
|
int len;
|
||||||
|
FileInputStream in = new FileInputStream(sourceFile);
|
||||||
|
while ((len = in.read(buf)) != -1) {
|
||||||
|
zos.write(buf, 0, len);
|
||||||
|
}
|
||||||
|
// Complete the entry
|
||||||
|
zos.closeEntry();
|
||||||
|
in.close();
|
||||||
|
} else {
|
||||||
|
File[] listFiles = sourceFile.listFiles();
|
||||||
|
if (listFiles == null || listFiles.length == 0) {
|
||||||
|
// 需要保留原来的文件结构时,需要对空文件夹进行处理
|
||||||
|
if (KeepDirStructure) {
|
||||||
|
// 空文件夹的处理
|
||||||
|
zos.putNextEntry(new ZipEntry(name + "/"));
|
||||||
|
// 没有文件,不需要文件的copy
|
||||||
|
zos.closeEntry();
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
for (File file : listFiles) {
|
||||||
|
// 判断是否需要保留原来的文件结构
|
||||||
|
if (KeepDirStructure) {
|
||||||
|
// 注意:file.getName()前面需要带上父文件夹的名字加一斜杠,
|
||||||
|
// 不然最后压缩包中就不能保留原来的文件结构,即:所有文件都跑到压缩包根目录下了
|
||||||
|
compress(file, zos, name + "/" + file.getName(), KeepDirStructure);
|
||||||
|
} else {
|
||||||
|
compress(file, zos, file.getName(), KeepDirStructure);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将InputStream写入本地文件
|
||||||
|
*
|
||||||
|
* @param input 输入流
|
||||||
|
* @throws IOException IOException
|
||||||
|
*/
|
||||||
|
public static void writeToLocal(String path, InputStream input)
|
||||||
|
throws IOException {
|
||||||
|
int index;
|
||||||
|
byte[] bytes = new byte[1024];
|
||||||
|
FileOutputStream downloadFile = new FileOutputStream(path);
|
||||||
|
while ((index = input.read(bytes)) != -1) {
|
||||||
|
downloadFile.write(bytes, 0, index);
|
||||||
|
downloadFile.flush();
|
||||||
|
}
|
||||||
|
input.close();
|
||||||
|
downloadFile.close();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1721,5 +1721,6 @@ module.exports = {
|
|||||||
cantTransferToYourself:"Can't transfer to yourself",
|
cantTransferToYourself:"Can't transfer to yourself",
|
||||||
theDataYouInitiate:'The data you selected does not meet the process initiation criteria. Please recheck and initiate',
|
theDataYouInitiate:'The data you selected does not meet the process initiation criteria. Please recheck and initiate',
|
||||||
dataWithProcessReleasedCannotBeReset:'Data with a process status of list to be released cannot be reset',
|
dataWithProcessReleasedCannotBeReset:'Data with a process status of list to be released cannot be reset',
|
||||||
|
reasonForReturnOfDesignCompliance:'Reason for return of design compliance',
|
||||||
noteone:'Note: CSV format is supported. The value is within 20M and the number is 1 to 10',
|
noteone:'Note: CSV format is supported. The value is within 20M and the number is 1 to 10',
|
||||||
}
|
}
|
||||||
@@ -1824,4 +1824,5 @@ module.exports = {
|
|||||||
noteone:'注:支持CSV格式,大小20M以内,数量1-10个',
|
noteone:'注:支持CSV格式,大小20M以内,数量1-10个',
|
||||||
theDataYouInitiate:'您所选的数据,均不符合流程发起条件,请重新检查后发起',
|
theDataYouInitiate:'您所选的数据,均不符合流程发起条件,请重新检查后发起',
|
||||||
dataWithProcessReleasedCannotBeReset:'流程状态为清单待发布的数据不能被重置',
|
dataWithProcessReleasedCannotBeReset:'流程状态为清单待发布的数据不能被重置',
|
||||||
|
reasonForReturnOfDesignCompliance:'设计符合性退回原因',
|
||||||
}
|
}
|
||||||
+52
-22
@@ -49,7 +49,7 @@
|
|||||||
<span class='text-text' style='height: 450px;line-height: 450px' :title="$t('positioningandnavigationsystem')">
|
<span class='text-text' style='height: 450px;line-height: 450px' :title="$t('positioningandnavigationsystem')">
|
||||||
{{$t('positioningandnavigationsystem')}}
|
{{$t('positioningandnavigationsystem')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-three' :title="$t('vehiclesatellitepositioningequipment')">
|
<span style="padding: 5px" class='text-text-three' :title="$t('vehiclesatellitepositioningequipment')">
|
||||||
{{$t('vehiclesatellitepositioningequipment')}}
|
{{$t('vehiclesatellitepositioningequipment')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-three' :title="$t('inertialnavigationsystem')">
|
<span class='text-text-three' :title="$t('inertialnavigationsystem')">
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
{{$t('vehiclecommunicationsystem')}}
|
{{$t('vehiclecommunicationsystem')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-box-four'>
|
<span class='text-box-four'>
|
||||||
<span class='four-text-text' :title="$t('signalingdevices')">
|
<span style="padding: 10px" class='four-text-text' :title="$t('signalingdevices')">
|
||||||
{{$t('signalingdevices')}}
|
{{$t('signalingdevices')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='four-text' :title="$t('driverassistancefunctioncontrols')">
|
<span class='four-text' :title="$t('driverassistancefunctioncontrols')">
|
||||||
@@ -307,7 +307,7 @@ export default {
|
|||||||
fillincontent:this.$t('yesisselected'),
|
fillincontent:this.$t('yesisselected'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'jgldBzwz',
|
key: 'jgldBzwz',
|
||||||
val:'',
|
val:'',
|
||||||
componentname: this.$t('networksecurityrequirements'),
|
componentname: this.$t('networksecurityrequirements'),
|
||||||
configuration: this.$t('ineffectiveupgrades'),
|
configuration: this.$t('ineffectiveupgrades'),
|
||||||
@@ -887,7 +887,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.dataSourceList=res.result.kzq
|
this.dataSourceList=res.result.kzq
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dataSource.forEach(item=>{
|
this.dataSource.forEach(item=>{
|
||||||
for(let key in res.result.bj){
|
for(let key in res.result.bj){
|
||||||
if(item.key==key){
|
if(item.key==key){
|
||||||
@@ -895,7 +895,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// res.result.bj.forEach(item=>{
|
// res.result.bj.forEach(item=>{
|
||||||
// if(Number(item) !=NaN){
|
// if(Number(item) !=NaN){
|
||||||
@@ -905,7 +905,7 @@ export default {
|
|||||||
this.query=res.result.bj
|
this.query=res.result.bj
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
click(value){
|
click(value){
|
||||||
this.fileList = value
|
this.fileList = value
|
||||||
@@ -1060,6 +1060,7 @@ button{
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
line-height: 200px;
|
line-height: 200px;
|
||||||
@@ -1068,6 +1069,7 @@ button{
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
line-height: 100px;
|
line-height: 100px;
|
||||||
@@ -1076,6 +1078,7 @@ button{
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
@@ -1084,6 +1087,7 @@ button{
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
line-height: 250px;
|
line-height: 250px;
|
||||||
@@ -1092,6 +1096,7 @@ button{
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
line-height: 150px;
|
line-height: 150px;
|
||||||
@@ -1099,55 +1104,73 @@ button{
|
|||||||
.text-box{
|
.text-box{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
/*border: #e8e8e8 solid 1px;*/
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
line-height: 400px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
.text-box-two{
|
.text-box-two{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
/*border: #e8e8e8 solid 1px;*/
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 450px;
|
height: 450px;
|
||||||
line-height: 450px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
.text-text{
|
.text-text{
|
||||||
display: inline-block;
|
/*display: inline-block;*/
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
line-height: 400px;
|
line-height: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: left;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.text-text-two{
|
.text-text-two{
|
||||||
display: inline-block;
|
/*display: inline-block;*/
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
line-height: 200px;
|
padding: 10px;
|
||||||
|
line-height: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: left;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.text-text-three{
|
.text-text-three{
|
||||||
display: inline-block;
|
/*display: inline-block;*/
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
line-height: 100px;
|
line-height: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: left;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.text-text-five{
|
.text-text-five{
|
||||||
display: inline-block;
|
/*display: inline-block;*/
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: left;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.text-box-three{
|
.text-box-three{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
line-height: 250px;
|
line-height: 250px;
|
||||||
@@ -1155,15 +1178,16 @@ button{
|
|||||||
.text-box-four{
|
.text-box-four{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
/*border: #e8e8e8 solid 1px;*/
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
line-height: 600px;
|
line-height: 600px;
|
||||||
}
|
}
|
||||||
.four-text-text{
|
.four-text-text{
|
||||||
display: inline-block;
|
/*display: inline-block;*/
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
@@ -1172,17 +1196,23 @@ button{
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.four-text{
|
.four-text{
|
||||||
display: inline-block;
|
/*display: inline-block;*/
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
line-height: 150px;
|
display: flex;
|
||||||
|
line-height: 20px;
|
||||||
|
justify-content: left;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.text-box-five{
|
.text-box-five{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
border: #e8e8e8 solid 1px;
|
border: #e8e8e8 solid 1px;
|
||||||
|
border-right: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
line-height: 100px;
|
line-height: 100px;
|
||||||
@@ -1190,7 +1220,7 @@ button{
|
|||||||
span{
|
span{
|
||||||
/* overflow: hidden; /*超出部分隐藏*/
|
/* overflow: hidden; /*超出部分隐藏*/
|
||||||
/* text-overflow: ellipsis; 超出部分省略号表示 */
|
/* text-overflow: ellipsis; 超出部分省略号表示 */
|
||||||
white-space: wrap;
|
white-space: normal;
|
||||||
/* word-wrap: normal; */
|
/* word-wrap: normal; */
|
||||||
}
|
}
|
||||||
.item-input{
|
.item-input{
|
||||||
|
|||||||
+248
-233
@@ -33,8 +33,8 @@
|
|||||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
<a-col :md="12" :sm="24">
|
<a-col :md="12" :sm="24">
|
||||||
<!-- <globalAdvancedQuery ref="globalAdvancedQueryRef"-->
|
<!-- <globalAdvancedQuery ref="globalAdvancedQueryRef"-->
|
||||||
<!-- @handleSuperQuery="handleSuperQuery"-->
|
<!-- @handleSuperQuery="handleSuperQuery"-->
|
||||||
<!-- :fieldList="fieldList"/>-->
|
<!-- :fieldList="fieldList"/>-->
|
||||||
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
||||||
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -52,18 +52,18 @@
|
|||||||
:loading="loading">
|
:loading="loading">
|
||||||
|
|
||||||
</a-table>
|
</a-table>
|
||||||
<!-- <div class="page" v-if="dataList.length > 0">-->
|
<!-- <div class="page" v-if="dataList.length > 0">-->
|
||||||
<!-- <a-pagination-->
|
<!-- <a-pagination-->
|
||||||
<!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"-->
|
<!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"-->
|
||||||
<!-- show-quick-jumper-->
|
<!-- show-quick-jumper-->
|
||||||
<!-- show-size-changer-->
|
<!-- show-size-changer-->
|
||||||
<!-- :page-size.sync="pageSize"-->
|
<!-- :page-size.sync="pageSize"-->
|
||||||
<!-- :total="total"-->
|
<!-- :total="total"-->
|
||||||
<!-- :current="pageNo"-->
|
<!-- :current="pageNo"-->
|
||||||
<!-- @change="onChange"-->
|
<!-- @change="onChange"-->
|
||||||
<!-- @showSizeChange="SizeChange"-->
|
<!-- @showSizeChange="SizeChange"-->
|
||||||
<!-- />-->
|
<!-- />-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="drawer-bootom-button">
|
<div class="drawer-bootom-button">
|
||||||
@@ -74,241 +74,256 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'transferList',
|
name: 'transferList',
|
||||||
components: {
|
components: {
|
||||||
globalAdvancedQuery
|
globalAdvancedQuery
|
||||||
},
|
|
||||||
props: ['url'],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
queryParam: {},
|
|
||||||
confirmLoading: false,
|
|
||||||
selectedRowKeys: [],
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: this.$t('category'),
|
|
||||||
align: 'left',
|
|
||||||
dataIndex: 'category',
|
|
||||||
width: 150,
|
|
||||||
ellipsis: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('inspectionItems'),
|
|
||||||
align: 'left',
|
|
||||||
dataIndex: 'inspectionItem',
|
|
||||||
width: 150,
|
|
||||||
ellipsis: true,
|
|
||||||
scopedSlots: { customRender: 'inspectionItems' }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'WVTA ID',
|
|
||||||
align: 'left',
|
|
||||||
dataIndex: 'wvtaId',
|
|
||||||
width: 150,
|
|
||||||
ellipsis: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('standard'),
|
|
||||||
align: 'left',
|
|
||||||
dataIndex: 'serialNumber',
|
|
||||||
width: 150,
|
|
||||||
ellipsis: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('areaOfResponsibility'),
|
|
||||||
align: 'left',
|
|
||||||
dataIndex: 'dutyTerritoryName',
|
|
||||||
width: 200,
|
|
||||||
ellipsis: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('typeOfDeliverables'),
|
|
||||||
align: 'left',
|
|
||||||
dataIndex: 'deliverableTypeName',
|
|
||||||
width: 200,
|
|
||||||
ellipsis: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
fieldList: [
|
|
||||||
{
|
|
||||||
type: 'string',
|
|
||||||
value: 'wvtaId',
|
|
||||||
text: 'WVTA ID'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'string',
|
|
||||||
value: 'inspectionItem',
|
|
||||||
text: this.$t('inspectionItems'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: '',
|
|
||||||
value: 'dutyTerritory',
|
|
||||||
text: this.$t('areaOfResponsibility'),
|
|
||||||
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
|
||||||
},
|
|
||||||
],
|
|
||||||
dataList: [],
|
|
||||||
content: [],
|
|
||||||
loading: false,
|
|
||||||
dummyInventoryBaseId:'',
|
|
||||||
pageNo: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
total: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
transferModel(id) {
|
|
||||||
this.visible = true
|
|
||||||
this.dummyInventoryBaseId = id
|
|
||||||
this.queryParam = {}
|
|
||||||
this.selectedRowKeys = []
|
|
||||||
this.replacePage()
|
|
||||||
},
|
},
|
||||||
searchQuery() {
|
props: ['url'],
|
||||||
this.pageNo = 1
|
data() {
|
||||||
this.replacePage()
|
return {
|
||||||
},
|
visible: false,
|
||||||
searchReset() {
|
queryParam: {},
|
||||||
this.pageNo = 1
|
confirmLoading: false,
|
||||||
this.queryParam = {}
|
selectedRowKeys: [],
|
||||||
this.replacePage()
|
columns: [
|
||||||
// this.$refs.globalAdvancedQueryRef.resetLine()
|
{
|
||||||
// this.$refs.globalAdvancedQueryRef.emitCallback()
|
title: this.$t('category'),
|
||||||
},
|
align: 'left',
|
||||||
onChange(page, pageSize) {
|
dataIndex: 'category',
|
||||||
this.pageNo = page
|
width: 150,
|
||||||
this.replacePage()
|
ellipsis: true
|
||||||
},
|
},
|
||||||
SizeChange(page, pageSize) {
|
{
|
||||||
this.pageNo = 1
|
title: this.$t('inspectionItems'),
|
||||||
this.pageSize = pageSize
|
align: 'left',
|
||||||
this.replacePage()
|
dataIndex: 'inspectionItem',
|
||||||
},
|
width: 150,
|
||||||
// handleSuperQuery(params, matchType) {
|
ellipsis: true,
|
||||||
// let sqp = {}
|
scopedSlots: { customRender: 'inspectionItems' }
|
||||||
// if (!params || (params && params.length == 0)) {
|
},
|
||||||
// sqp['superQueryParams'] = ''
|
{
|
||||||
// this.$refs.globalAdvancedQueryRef.superQueryFlag = false
|
title: 'WVTA ID',
|
||||||
// } else {
|
align: 'left',
|
||||||
// this.$refs.globalAdvancedQueryRef.superQueryFlag = true
|
dataIndex: 'wvtaId',
|
||||||
// sqp['superQueryParams'] = encodeURI(JSON.stringify(params))
|
width: 150,
|
||||||
// sqp['superQueryMatchType'] = matchType
|
ellipsis: true
|
||||||
// }
|
},
|
||||||
// this.queryParamQuery = sqp
|
{
|
||||||
// this.replacePage()
|
title: this.$t('standard'),
|
||||||
// },
|
align: 'left',
|
||||||
replacePage() {
|
dataIndex: 'serialNumber',
|
||||||
let query = {
|
width: 150,
|
||||||
// pageNo: this.pageNo,
|
ellipsis: true
|
||||||
// pageSize: this.pageSize,
|
},
|
||||||
...this.queryParamQuery,
|
{
|
||||||
...this.queryParam,
|
title: this.$t('areaOfResponsibility'),
|
||||||
authDummyInventoryBaseId: this.dummyInventoryBaseId
|
align: 'left',
|
||||||
|
dataIndex: 'dutyTerritoryName',
|
||||||
|
width: 200,
|
||||||
|
ellipsis: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('typeOfDeliverables'),
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'deliverableTypeName',
|
||||||
|
width: 200,
|
||||||
|
ellipsis: true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
fieldList: [
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
value: 'wvtaId',
|
||||||
|
text: 'WVTA ID'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
value: 'inspectionItem',
|
||||||
|
text: this.$t('inspectionItems')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'dutyTerritory',
|
||||||
|
text: this.$t('areaOfResponsibility'),
|
||||||
|
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
}
|
||||||
|
],
|
||||||
|
dataList: [],
|
||||||
|
content: [],
|
||||||
|
loading: false,
|
||||||
|
dummyInventoryBaseId: '',
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
total: 0
|
||||||
}
|
}
|
||||||
this.loading = true
|
},
|
||||||
getAction('/authDummy/authDummyInventoryInfoEO/list', query).then((res) => {
|
mounted() {
|
||||||
if (res.success) {
|
|
||||||
this.dataList = res.result || []
|
},
|
||||||
this.loading = false
|
methods: {
|
||||||
} else {
|
transferModel(id) {
|
||||||
this.loading = false
|
this.visible = true
|
||||||
|
this.dummyInventoryBaseId = id
|
||||||
|
this.queryParam = {}
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
searchReset() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.queryParam = {}
|
||||||
|
this.replacePage()
|
||||||
|
// this.$refs.globalAdvancedQueryRef.resetLine()
|
||||||
|
// this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||||
|
},
|
||||||
|
onChange(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
// handleSuperQuery(params, matchType) {
|
||||||
|
// let sqp = {}
|
||||||
|
// if (!params || (params && params.length == 0)) {
|
||||||
|
// sqp['superQueryParams'] = ''
|
||||||
|
// this.$refs.globalAdvancedQueryRef.superQueryFlag = false
|
||||||
|
// } else {
|
||||||
|
// this.$refs.globalAdvancedQueryRef.superQueryFlag = true
|
||||||
|
// sqp['superQueryParams'] = encodeURI(JSON.stringify(params))
|
||||||
|
// sqp['superQueryMatchType'] = matchType
|
||||||
|
// }
|
||||||
|
// this.queryParamQuery = sqp
|
||||||
|
// this.replacePage()
|
||||||
|
// },
|
||||||
|
replacePage() {
|
||||||
|
let query = {
|
||||||
|
// pageNo: this.pageNo,
|
||||||
|
// pageSize: this.pageSize,
|
||||||
|
...this.queryParamQuery,
|
||||||
|
...this.queryParam,
|
||||||
|
authDummyInventoryBaseId: this.dummyInventoryBaseId
|
||||||
}
|
}
|
||||||
})
|
this.loading = true
|
||||||
},
|
getAction('/authDummy/authDummyInventoryInfoEO/list', query).then((res) => {
|
||||||
onSelectChange(value) {
|
|
||||||
this.selectedRowKeys = value
|
|
||||||
// if (this.selectedRowKeys.length > 1) {
|
|
||||||
// this.selectedRowKeys.shift()
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
handleCancel() {
|
|
||||||
this.visible = false
|
|
||||||
},
|
|
||||||
handleSubmit(flag) {
|
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
|
||||||
this.confirmLoading = true
|
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
|
||||||
postAction('project/projectCertificationInventoryEO/callAdd', {
|
|
||||||
authDummyInventoryBaseId: this.dummyInventoryBaseId,
|
|
||||||
projectLibraryId: this.$route.query.id,
|
|
||||||
authDummyInventoryInfoIds: selectedRowKeys.join(','),
|
|
||||||
}).then((res) => {
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.confirmLoading = false
|
this.dataList = res.result || []
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.loading = false
|
||||||
this.visible = false
|
|
||||||
this.selectedRowKeys = []
|
|
||||||
this.$emit('transferListFormHomo')
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.loading = false
|
||||||
this.confirmLoading = false
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
},
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
onSelectChange(value) {
|
||||||
|
this.selectedRowKeys = value
|
||||||
|
// if (this.selectedRowKeys.length > 1) {
|
||||||
|
// this.selectedRowKeys.shift()
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSubmit(flag) {
|
||||||
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
|
this.confirmLoading = true
|
||||||
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
postAction('project/projectCertificationInventoryEO/callAdd', {
|
||||||
|
authDummyInventoryBaseId: this.dummyInventoryBaseId,
|
||||||
|
projectLibraryId: this.$route.query.id,
|
||||||
|
authDummyInventoryInfoIds: selectedRowKeys.join(',')
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.confirmLoading = false
|
||||||
|
if (res.result && res.result.length > 0) {
|
||||||
|
let detailedWarningList = []
|
||||||
|
res.result.forEach(val => {
|
||||||
|
detailedWarningList.push(
|
||||||
|
< div > { val } < /div>)
|
||||||
|
})
|
||||||
|
this.$warning({
|
||||||
|
content: (
|
||||||
|
< div >
|
||||||
|
{ detailedWarningList }
|
||||||
|
< /div>
|
||||||
|
)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
}
|
||||||
|
this.visible = false
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
this.$emit('transferListFormHomo')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.page {
|
.page {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-bootom-button {
|
.drawer-bootom-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-top: 1px solid #e8e8e8;
|
border-top: 1px solid #e8e8e8;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
left: 0;
|
left: 0;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 0 0 2px 2px;
|
border-radius: 0 0 2px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-title-text {
|
.box-title-text {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-text {
|
.title-text {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
min-width: 110px;
|
min-width: 110px;
|
||||||
color: #000F16;
|
color: #000F16;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-input {
|
.box-input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-button {
|
.box-button {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -782,95 +782,95 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<!-- <div class="header-text" v-if="rejectCauseList && rejectCauseList.length > 0">-->
|
<div class="header-text" v-if="rejectCauseList && rejectCauseList.length > 0">
|
||||||
<!-- {{$t('listConfirmationRejectionReason')}}-->
|
{{$t('listConfirmationRejectionReason')}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
|
|
||||||
<!-- <div v-if="rejectCauseList && rejectCauseList.length > 0"-->
|
<div v-if="rejectCauseList && rejectCauseList.length > 0"
|
||||||
<!-- v-for="(item,index) in rejectCauseList">-->
|
v-for="(item,index) in rejectCauseList">
|
||||||
<!-- <a-row :gutter="24">-->
|
<a-row :gutter="24">
|
||||||
<!-- <a-col :span="12">-->
|
<a-col :span="12">
|
||||||
<!-- <div class="box-title-text">-->
|
<div class="box-title-text">
|
||||||
<!-- <div class="title-text">-->
|
<div class="title-text">
|
||||||
<!-- <span class="title-text-text"-->
|
<span class="title-text-text"
|
||||||
<!-- :title="$t('rejectedBy')">{{$t('rejectedBy')}}</span>-->
|
:title="$t('rejectedBy')">{{$t('rejectedBy')}}</span>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- <div class="itemModel-reject">-->
|
<div class="itemModel-reject">
|
||||||
<!-- {{item.createBy ? item.createBy : '--'}}-->
|
{{item.createBy ? item.createBy : '--'}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </a-col>-->
|
</a-col>
|
||||||
<!-- <a-col :span="12">-->
|
<a-col :span="12">
|
||||||
<!-- <div class="box-title-text">-->
|
<div class="box-title-text">
|
||||||
<!-- <div class="title-text">-->
|
<div class="title-text">
|
||||||
<!-- <span class="title-text-text"-->
|
<span class="title-text-text"
|
||||||
<!-- :title="$t('rejectionTime')">{{$t('rejectionTime')}}</span>-->
|
:title="$t('rejectionTime')">{{$t('rejectionTime')}}</span>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- <div class="itemModel-reject">-->
|
<div class="itemModel-reject">
|
||||||
<!-- {{item.rejectTime ? item.rejectTime : '--'}}-->
|
{{item.rejectTime ? item.rejectTime : '--'}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </a-col>-->
|
</a-col>
|
||||||
<!-- </a-row>-->
|
</a-row>
|
||||||
<!-- <a-row :gutter="24">-->
|
<a-row :gutter="24">
|
||||||
<!-- <a-col :span="24">-->
|
<a-col :span="24">
|
||||||
<!-- <div class="box-title-text">-->
|
<div class="box-title-text">
|
||||||
<!-- <div class="title-text">-->
|
<div class="title-text">
|
||||||
<!-- <span class="title-text-text"-->
|
<span class="title-text-text"
|
||||||
<!-- :title="$t('rejectReason')">{{$t('rejectReason')}}</span>-->
|
:title="$t('rejectReason')">{{$t('rejectReason')}}</span>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- <div class="itemModel-reject">-->
|
<div class="itemModel-reject">
|
||||||
<!-- {{item.rejectCause ? item.rejectCause : '--'}}-->
|
{{item.rejectCause ? item.rejectCause : '--'}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </a-col>-->
|
</a-col>
|
||||||
<!-- </a-row>-->
|
</a-row>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
|
|
||||||
<!-- <div class="header-text" v-if="rejectCauseListOne && rejectCauseListOne.length > 0">-->
|
<div class="header-text" v-if="rejectCauseListOne && rejectCauseListOne.length > 0">
|
||||||
<!-- {{$t('taskConfirmationRejectionReason')}}-->
|
{{$t('taskConfirmationRejectionReason')}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
|
|
||||||
<!-- <div v-if="rejectCauseListOne && rejectCauseListOne.length > 0"-->
|
<div v-if="rejectCauseListOne && rejectCauseListOne.length > 0"
|
||||||
<!-- v-for="(item,index) in rejectCauseListOne">-->
|
v-for="(item,index) in rejectCauseListOne">
|
||||||
<!-- <a-row :gutter="24">-->
|
<a-row :gutter="24">
|
||||||
<!-- <a-col :span="12">-->
|
<a-col :span="12">
|
||||||
<!-- <div class="box-title-text">-->
|
<div class="box-title-text">
|
||||||
<!-- <div class="title-text">-->
|
<div class="title-text">
|
||||||
<!-- <span class="title-text-text"-->
|
<span class="title-text-text"
|
||||||
<!-- :title="$t('rejectedBy')">{{$t('rejectedBy')}}</span>-->
|
:title="$t('rejectedBy')">{{$t('rejectedBy')}}</span>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- <div class="itemModel-reject">-->
|
<div class="itemModel-reject">
|
||||||
<!-- {{item.createBy ? item.createBy : '--'}}-->
|
{{item.createBy ? item.createBy : '--'}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </a-col>-->
|
</a-col>
|
||||||
<!-- <a-col :span="12">-->
|
<a-col :span="12">
|
||||||
<!-- <div class="box-title-text">-->
|
<div class="box-title-text">
|
||||||
<!-- <div class="title-text">-->
|
<div class="title-text">
|
||||||
<!-- <span class="title-text-text"-->
|
<span class="title-text-text"
|
||||||
<!-- :title="$t('rejectionTime')">{{$t('rejectionTime')}}</span>-->
|
:title="$t('rejectionTime')">{{$t('rejectionTime')}}</span>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- <div class="itemModel-reject">-->
|
<div class="itemModel-reject">
|
||||||
<!-- {{item.rejectTime ? item.rejectTime : '--'}}-->
|
{{item.rejectTime ? item.rejectTime : '--'}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </a-col>-->
|
</a-col>
|
||||||
<!-- </a-row>-->
|
</a-row>
|
||||||
<!-- <a-row :gutter="24">-->
|
<a-row :gutter="24">
|
||||||
<!-- <a-col :span="24">-->
|
<a-col :span="24">
|
||||||
<!-- <div class="box-title-text">-->
|
<div class="box-title-text">
|
||||||
<!-- <div class="title-text">-->
|
<div class="title-text">
|
||||||
<!-- <span class="title-text-text"-->
|
<span class="title-text-text"
|
||||||
<!-- :title="$t('rejectReason')">{{$t('rejectReason')}}</span>-->
|
:title="$t('rejectReason')">{{$t('rejectReason')}}</span>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- <div class="itemModel-reject">-->
|
<div class="itemModel-reject">
|
||||||
<!-- {{item.rejectCause ? item.rejectCause : '--'}}-->
|
{{item.rejectCause ? item.rejectCause : '--'}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- </a-col>-->
|
</a-col>
|
||||||
<!-- </a-row>-->
|
</a-row>
|
||||||
<!-- </div>-->
|
</div>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<div class="drawer-bootom-button">
|
<div class="drawer-bootom-button">
|
||||||
|
|||||||
Reference in New Issue
Block a user