进销存-请领单-默认生成基础代码
This commit is contained in:
parent
8308f3b24d
commit
a174388ccb
|
|
@ -0,0 +1,33 @@
|
|||
package com.nu.modules.pad.invoicing.api;
|
||||
|
||||
import com.nu.entity.MaterialCategoryEntity;
|
||||
import com.nu.modules.invoicing.api.IQinglingApi;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 请领单
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/pad/invoicing/qld")
|
||||
public class InvoicingQldApi {
|
||||
|
||||
@Autowired
|
||||
private IQinglingApi qinglingApi;
|
||||
|
||||
@ApiOperation(value = "获取物料分类树", notes = "获取物料分类树")
|
||||
@GetMapping(value = "/getMaterialTreeData")
|
||||
public Result<List<Map<String, Object>>> getMaterialTreeData(MaterialCategoryEntity configMaterialCategory) {
|
||||
configMaterialCategory.setIzEnabled("Y");
|
||||
List<Map<String, Object>> pageList = qinglingApi.getMaterialTreeData(configMaterialCategory);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,18 +1,12 @@
|
|||
package com.nu.modules.invoicing.api;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.nu.entity.MaterialInfoEntity;
|
||||
import com.nu.entity.MaterialPackageEntity;
|
||||
import com.nu.entity.MaterialCategoryEntity;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface IQinglingApi {
|
||||
IPage<MaterialInfoEntity> queryPackageList(Integer pageNo, Integer pageSize, MaterialInfoEntity materialInfoEntityDto, HttpServletRequest req);
|
||||
|
||||
String addMaterialPackageList(List<MaterialPackageEntity> infoList);
|
||||
List<Map<String, Object>> getMaterialTreeData(MaterialCategoryEntity configMaterialCategory);
|
||||
|
||||
void deletePackageById(String id);
|
||||
|
||||
IPage<MaterialInfoEntity> queryWuliaoList(Integer pageNo, Integer pageSize, MaterialInfoEntity materialInfoEntityDto, HttpServletRequest req);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,4 +29,6 @@ public interface ConfigMaterialCategoryMapper extends BaseMapper<ConfigMaterialC
|
|||
List<ConfigMaterialCategory> getGwcMaterialTreeData(@Param("params") ConfigMaterialCategory configMaterialCategory);
|
||||
|
||||
List<ConfigMaterialCategory> getWaringMaterialTreeData(@Param("params") ConfigMaterialCategory configMaterialCategory);
|
||||
|
||||
List<ConfigMaterialCategory> getAllWarehouseInfoList(@Param("params") ConfigMaterialCategory configMaterialCategory);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,42 +2,54 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.ConfigMaterial.mapper.ConfigMaterialCategoryMapper">
|
||||
<select id="selectMaterialList" resultType="com.nu.modules.ConfigMaterial.entity.ConfigMaterialCategory">
|
||||
select * from (
|
||||
select
|
||||
a.create_time,
|
||||
ifnull(c.id,ifnull(b.id,a.id)) as id,
|
||||
a.category_name,
|
||||
a.iz_enabled,
|
||||
b.type_name,
|
||||
c.medication_name,
|
||||
a.id as category_id,
|
||||
b.id as type_id,
|
||||
c.id as medication_id
|
||||
from nu_config_material_category a
|
||||
LEFT JOIN nu_config_material_type b on a.id = b.category_id and b.iz_enabled = 'Y' and b.del_flag = 0
|
||||
LEFT JOIN nu_config_material_medication c on b.id = c.type_id and c.iz_enabled = 'Y' and c.del_flag = 0
|
||||
where a.iz_enabled = 'Y' and a.del_flag = 0
|
||||
order by a.sort asc,b.id asc,c.id asc ) a
|
||||
${ew.customSqlSegment}
|
||||
select *
|
||||
from (select a.create_time,
|
||||
ifnull(c.id, ifnull(b.id, a.id)) as id,
|
||||
a.category_name,
|
||||
a.iz_enabled,
|
||||
b.type_name,
|
||||
c.medication_name,
|
||||
a.id as category_id,
|
||||
b.id as type_id,
|
||||
c.id as medication_id
|
||||
from nu_config_material_category a
|
||||
LEFT JOIN nu_config_material_type b
|
||||
on a.id = b.category_id and b.iz_enabled = 'Y' and b.del_flag = 0
|
||||
LEFT JOIN nu_config_material_medication c
|
||||
on b.id = c.type_id and c.iz_enabled = 'Y' and c.del_flag = 0
|
||||
where a.iz_enabled = 'Y'
|
||||
and a.del_flag = 0
|
||||
order by a.sort asc, b.id asc, c.id asc) a
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectIssjList" resultType="com.nu.modules.ConfigMaterial.entity.ConfigMaterialCategory">
|
||||
select a.id,count(a.id) as num from nu_config_material_category a , nu_config_material_info b
|
||||
where a.id = b.category_id and (b.type_id = '' or b.type_id is null) GROUP BY a.id
|
||||
select a.id, count(a.id) as num
|
||||
from nu_config_material_category a,
|
||||
nu_config_material_info b
|
||||
where a.id = b.category_id
|
||||
and (b.type_id = '' or b.type_id is null)
|
||||
GROUP BY a.id
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getWarehouseInfoList" resultType="com.nu.modules.ConfigMaterial.entity.ConfigMaterialCategory">
|
||||
select b.category_id,b.type_id,b.medication_id from nu_warehouse_material_info a
|
||||
left join nu_config_material_info b on a.wl_id = b.id
|
||||
where a.nu_id = #{params.nuId} and a.del_flag = 0 and a.iz_enabled = 'Y' GROUP BY b.category_id,b.type_id,b.medication_id
|
||||
select b.category_id, b.type_id, b.medication_id
|
||||
from nu_warehouse_material_info a
|
||||
left join nu_config_material_info b on a.wl_id = b.id
|
||||
where a.nu_id = #{params.nuId}
|
||||
and a.del_flag = 0
|
||||
and a.iz_enabled = 'Y'
|
||||
GROUP BY b.category_id, b.type_id, b.medication_id
|
||||
</select>
|
||||
|
||||
<select id="getCgdMaterialTreeData" resultType="com.nu.modules.ConfigMaterial.entity.ConfigMaterialCategory">
|
||||
select b.category_id,b.type_id,b.medication_id from nu_invoicing_cgd_info a
|
||||
left join nu_config_material_info b on a.wl_id = b.id
|
||||
where a.cgd_id = #{params.cgdId} GROUP BY b.category_id,b.type_id,b.medication_id
|
||||
select b.category_id, b.type_id, b.medication_id
|
||||
from nu_invoicing_cgd_info a
|
||||
left join nu_config_material_info b on a.wl_id = b.id
|
||||
where a.cgd_id = #{params.cgdId}
|
||||
GROUP BY b.category_id, b.type_id, b.medication_id
|
||||
</select>
|
||||
|
||||
<select id="getGwcMaterialTreeData" resultType="com.nu.modules.ConfigMaterial.entity.ConfigMaterialCategory">
|
||||
|
|
@ -52,7 +64,7 @@
|
|||
</select>
|
||||
|
||||
<select id="getWaringMaterialTreeData" resultType="com.nu.modules.ConfigMaterial.entity.ConfigMaterialCategory">
|
||||
select b.category_id,b.type_id,b.medication_id from nu_warehouse_material_info c ,nu_config_material_info b
|
||||
select b.category_id,b.type_id,b.medication_id from nu_warehouse_material_info c ,nu_config_material_info b
|
||||
where b.id = c.wl_id and c.del_flag = 0 and c.iz_enabled = 'Y'
|
||||
and c.kcsl - 0 <= b.lower_limit
|
||||
<if test="params.nuId != null and params.nuId != ''">
|
||||
|
|
@ -60,4 +72,13 @@
|
|||
</if>
|
||||
GROUP BY b.category_id,b.type_id,b.medication_id
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
<select id="getAllWarehouseInfoList" resultType="com.nu.modules.ConfigMaterial.entity.ConfigMaterialCategory">
|
||||
select b.category_id, b.type_id, b.medication_id
|
||||
from nu_warehouse_material_info a
|
||||
left join nu_config_material_info b on a.wl_id = b.id
|
||||
where a.del_flag = 0
|
||||
and a.iz_enabled = 'Y'
|
||||
GROUP BY b.category_id, b.type_id, b.medication_id
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -30,4 +30,6 @@ public interface IConfigMaterialCategoryService extends IService<ConfigMaterialC
|
|||
List<Map<String, Object>> getCgdMaterialTreeData(ConfigMaterialCategory configMaterialCategory);
|
||||
|
||||
List<Map<String, Object>> getWaringMaterialTreeData(ConfigMaterialCategory configMaterialCategory);
|
||||
|
||||
List<Map<String, Object>> getAllMaterialTreeData(ConfigMaterialCategory configMaterialCategory);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -776,6 +776,142 @@ public class ConfigMaterialCategoryServiceImpl extends ServiceImpl<ConfigMateria
|
|||
infoMapList.add(infoMap);
|
||||
}
|
||||
|
||||
return infoMapList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> getAllMaterialTreeData(ConfigMaterialCategory configMaterialCategory) {
|
||||
|
||||
List<ConfigMaterialCategory> groupList = baseMapper.getAllWarehouseInfoList(configMaterialCategory);
|
||||
|
||||
String oneId = "";
|
||||
String twoId = "";
|
||||
String threeId = "";
|
||||
for(ConfigMaterialCategory par:groupList){
|
||||
if(par != null){
|
||||
oneId = oneId + par.getCategoryId()+",";
|
||||
twoId = twoId + par.getTypeId()+",";
|
||||
threeId = threeId + par.getMedicationId()+",";
|
||||
}
|
||||
}
|
||||
String[] oneParts = oneId.split(",");
|
||||
Set<String> oneSet = new LinkedHashSet<>(Arrays.asList(oneParts));
|
||||
oneId = String.join(",", oneSet);
|
||||
|
||||
String[] twoParts = twoId.split(",");
|
||||
Set<String> twoSet = new LinkedHashSet<>(Arrays.asList(twoParts));
|
||||
twoId = String.join(",", twoSet);
|
||||
|
||||
String[] threeParts = threeId.split(",");
|
||||
Set<String> threeSet = new LinkedHashSet<>(Arrays.asList(threeParts));
|
||||
threeId = String.join(",", threeSet);
|
||||
|
||||
//查询护理分类信息
|
||||
QueryWrapper<ConfigMaterialCategory> categoryQueryWrapper = new QueryWrapper<>();
|
||||
categoryQueryWrapper.eq(StringUtils.isNotEmpty(configMaterialCategory.getIzEnabled()),"iz_enabled",configMaterialCategory.getIzEnabled());
|
||||
categoryQueryWrapper.in("id",oneId.split(","));
|
||||
categoryQueryWrapper.eq("del_flag","0");
|
||||
categoryQueryWrapper.orderByAsc("sort");
|
||||
List<ConfigMaterialCategory> list =baseMapper.selectList(categoryQueryWrapper);
|
||||
|
||||
//查询护理类型信息
|
||||
QueryWrapper<ConfigMaterialType> typeQueryWrapper = new QueryWrapper<>();
|
||||
typeQueryWrapper.eq(StringUtils.isNotEmpty(configMaterialCategory.getIzEnabled()),"iz_enabled",configMaterialCategory.getIzEnabled());
|
||||
typeQueryWrapper.in("id",twoId.split(","));
|
||||
typeQueryWrapper.eq("del_flag","0");
|
||||
List<ConfigMaterialType> list2 = configMaterialTypeMapper.selectList(typeQueryWrapper);
|
||||
|
||||
//查询用药类型信息
|
||||
QueryWrapper<ConfigMaterialMedication> medicationQueryWrapper = new QueryWrapper<>();
|
||||
medicationQueryWrapper.eq(StringUtils.isNotEmpty(configMaterialCategory.getIzEnabled()),"iz_enabled",configMaterialCategory.getIzEnabled());
|
||||
medicationQueryWrapper.in("id",threeId.split(","));
|
||||
medicationQueryWrapper.eq("del_flag","0");
|
||||
List<ConfigMaterialMedication> list3 = configMaterialMedicationMapper.selectList(medicationQueryWrapper);
|
||||
|
||||
|
||||
|
||||
//查询物料类别下是否有物料数据
|
||||
List<ConfigMaterialCategory> onesjlist =baseMapper.selectIssjList();
|
||||
|
||||
//查询物料类型下是否有物料数据
|
||||
List<ConfigMaterialType> twosjlist =configMaterialTypeMapper.selectIssjList();
|
||||
|
||||
|
||||
|
||||
List<Map<String,Object>> wllxMapList = new ArrayList<Map<String,Object>>();
|
||||
for(ConfigMaterialType par : list2){
|
||||
Map<String,Object> wllxMap = new HashMap<String,Object>();
|
||||
List<Map<String,Object>> yylxMapList = new ArrayList<Map<String,Object>>();
|
||||
for(ConfigMaterialMedication yylxPar:list3){
|
||||
if(StringUtils.equals(yylxPar.getTypeId(),par.getId())){
|
||||
Map<String,Object> yylxMap = new HashMap<String,Object>();
|
||||
yylxMap.put("key",yylxPar.getId());
|
||||
yylxMap.put("levle","3");
|
||||
yylxMap.put("title",yylxPar.getMedicationName());
|
||||
yylxMap.put("izEnabled",yylxPar.getIzEnabled());
|
||||
yylxMap.put("categoryId",yylxPar.getCategoryId());
|
||||
yylxMap.put("typeId",yylxPar.getTypeId());
|
||||
yylxMap.put("children","");
|
||||
yylxMap.put("parentIzEnabled",par.getIzEnabled());
|
||||
yylxMap.put("icon",yylxPar.getIcon());
|
||||
yylxMapList.add(yylxMap);
|
||||
}
|
||||
}
|
||||
int tjxj = 0;
|
||||
for(ConfigMaterialType twosjPar:twosjlist){
|
||||
if (StringUtils.equals(twosjPar.getId(),par.getId())){
|
||||
tjxj = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
wllxMap.put("tjxj",tjxj);
|
||||
wllxMap.put("key",par.getId());
|
||||
wllxMap.put("parentId",par.getCategoryId());
|
||||
wllxMap.put("title",par.getTypeName());
|
||||
wllxMap.put("levle","2");
|
||||
wllxMap.put("izEnabled",par.getIzEnabled());
|
||||
wllxMap.put("children",yylxMapList);
|
||||
wllxMap.put("categoryId",par.getCategoryId());
|
||||
wllxMap.put("typeId",par.getId());
|
||||
wllxMap.put("icon",par.getIcon());
|
||||
wllxMapList.add(wllxMap);
|
||||
}
|
||||
|
||||
List<Map<String,Object>> infoMapList = new ArrayList<Map<String,Object>>();
|
||||
int index = 0;
|
||||
for(ConfigMaterialCategory par : list){
|
||||
index++;
|
||||
Map<String,Object> infoMap = new HashMap<String,Object>();
|
||||
List<Map<String,Object>> wllxMap2List = new ArrayList<Map<String,Object>>();
|
||||
for(Map<String,Object> wllxPar : wllxMapList){
|
||||
if(StringUtils.equals(par.getId(),wllxPar.get("parentId").toString())){
|
||||
wllxPar.put("parentIzEnabled",par.getIzEnabled());
|
||||
wllxMap2List.add(wllxPar);
|
||||
}
|
||||
}
|
||||
int tjxj = 0;
|
||||
for(ConfigMaterialCategory onesjPar:onesjlist){
|
||||
if (StringUtils.equals(onesjPar.getId(),par.getId())){
|
||||
tjxj = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
infoMap.put("tjxj",tjxj);
|
||||
infoMap.put("key",par.getId());
|
||||
infoMap.put("title",par.getCategoryName());
|
||||
infoMap.put("levle","1");
|
||||
infoMap.put("izEnabled",par.getIzEnabled());
|
||||
infoMap.put("children",wllxMap2List);
|
||||
infoMap.put("categoryId",par.getId());
|
||||
infoMap.put("parentIzEnabled",par.getIzEnabled());
|
||||
infoMap.put("appIconPath",par.getAppIconPath());
|
||||
infoMap.put("appCheckIconPath",par.getAppCheckIconPath());
|
||||
infoMap.put("icon",par.getIcon());
|
||||
infoMapList.add(infoMap);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return infoMapList;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,180 @@
|
|||
package com.nu.modules.nu.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.system.query.QueryRuleEnum;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.nu.modules.nu.entity.NuInvoicingNuCrkLog;
|
||||
import com.nu.modules.nu.service.INuInvoicingNuCrkLogService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元-出入库日志
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="进销存-护理单元-出入库日志")
|
||||
@RestController
|
||||
@RequestMapping("/nu/nuInvoicingNuCrkLog")
|
||||
@Slf4j
|
||||
public class NuInvoicingNuCrkLogController extends JeecgController<NuInvoicingNuCrkLog, INuInvoicingNuCrkLogService> {
|
||||
@Autowired
|
||||
private INuInvoicingNuCrkLogService nuInvoicingNuCrkLogService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param nuInvoicingNuCrkLog
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-护理单元-出入库日志-分页列表查询")
|
||||
@ApiOperation(value="进销存-护理单元-出入库日志-分页列表查询", notes="进销存-护理单元-出入库日志-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<NuInvoicingNuCrkLog>> queryPageList(NuInvoicingNuCrkLog nuInvoicingNuCrkLog,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<NuInvoicingNuCrkLog> queryWrapper = QueryGenerator.initQueryWrapper(nuInvoicingNuCrkLog, req.getParameterMap());
|
||||
Page<NuInvoicingNuCrkLog> page = new Page<NuInvoicingNuCrkLog>(pageNo, pageSize);
|
||||
IPage<NuInvoicingNuCrkLog> pageList = nuInvoicingNuCrkLogService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param nuInvoicingNuCrkLog
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-护理单元-出入库日志-添加")
|
||||
@ApiOperation(value="进销存-护理单元-出入库日志-添加", notes="进销存-护理单元-出入库日志-添加")
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_crk_log:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody NuInvoicingNuCrkLog nuInvoicingNuCrkLog) {
|
||||
nuInvoicingNuCrkLogService.save(nuInvoicingNuCrkLog);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param nuInvoicingNuCrkLog
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-护理单元-出入库日志-编辑")
|
||||
@ApiOperation(value="进销存-护理单元-出入库日志-编辑", notes="进销存-护理单元-出入库日志-编辑")
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_crk_log:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody NuInvoicingNuCrkLog nuInvoicingNuCrkLog) {
|
||||
nuInvoicingNuCrkLogService.updateById(nuInvoicingNuCrkLog);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-护理单元-出入库日志-通过id删除")
|
||||
@ApiOperation(value="进销存-护理单元-出入库日志-通过id删除", notes="进销存-护理单元-出入库日志-通过id删除")
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_crk_log:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
nuInvoicingNuCrkLogService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-护理单元-出入库日志-批量删除")
|
||||
@ApiOperation(value="进销存-护理单元-出入库日志-批量删除", notes="进销存-护理单元-出入库日志-批量删除")
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_crk_log:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.nuInvoicingNuCrkLogService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-护理单元-出入库日志-通过id查询")
|
||||
@ApiOperation(value="进销存-护理单元-出入库日志-通过id查询", notes="进销存-护理单元-出入库日志-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<NuInvoicingNuCrkLog> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
NuInvoicingNuCrkLog nuInvoicingNuCrkLog = nuInvoicingNuCrkLogService.getById(id);
|
||||
if(nuInvoicingNuCrkLog==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(nuInvoicingNuCrkLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param nuInvoicingNuCrkLog
|
||||
*/
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_crk_log:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, NuInvoicingNuCrkLog nuInvoicingNuCrkLog) {
|
||||
return super.exportXls(request, nuInvoicingNuCrkLog, NuInvoicingNuCrkLog.class, "进销存-护理单元-出入库日志");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_crk_log:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, NuInvoicingNuCrkLog.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,180 @@
|
|||
package com.nu.modules.nu.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.system.query.QueryRuleEnum;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.nu.modules.nu.entity.NuInvoicingNuKcsl;
|
||||
import com.nu.modules.nu.service.INuInvoicingNuKcslService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元库存数量
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="进销存-护理单元库存数量")
|
||||
@RestController
|
||||
@RequestMapping("/nu/nuInvoicingNuKcsl")
|
||||
@Slf4j
|
||||
public class NuInvoicingNuKcslController extends JeecgController<NuInvoicingNuKcsl, INuInvoicingNuKcslService> {
|
||||
@Autowired
|
||||
private INuInvoicingNuKcslService nuInvoicingNuKcslService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param nuInvoicingNuKcsl
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-护理单元库存数量-分页列表查询")
|
||||
@ApiOperation(value="进销存-护理单元库存数量-分页列表查询", notes="进销存-护理单元库存数量-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<NuInvoicingNuKcsl>> queryPageList(NuInvoicingNuKcsl nuInvoicingNuKcsl,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<NuInvoicingNuKcsl> queryWrapper = QueryGenerator.initQueryWrapper(nuInvoicingNuKcsl, req.getParameterMap());
|
||||
Page<NuInvoicingNuKcsl> page = new Page<NuInvoicingNuKcsl>(pageNo, pageSize);
|
||||
IPage<NuInvoicingNuKcsl> pageList = nuInvoicingNuKcslService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param nuInvoicingNuKcsl
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-护理单元库存数量-添加")
|
||||
@ApiOperation(value="进销存-护理单元库存数量-添加", notes="进销存-护理单元库存数量-添加")
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_kcsl:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody NuInvoicingNuKcsl nuInvoicingNuKcsl) {
|
||||
nuInvoicingNuKcslService.save(nuInvoicingNuKcsl);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param nuInvoicingNuKcsl
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-护理单元库存数量-编辑")
|
||||
@ApiOperation(value="进销存-护理单元库存数量-编辑", notes="进销存-护理单元库存数量-编辑")
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_kcsl:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody NuInvoicingNuKcsl nuInvoicingNuKcsl) {
|
||||
nuInvoicingNuKcslService.updateById(nuInvoicingNuKcsl);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-护理单元库存数量-通过id删除")
|
||||
@ApiOperation(value="进销存-护理单元库存数量-通过id删除", notes="进销存-护理单元库存数量-通过id删除")
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_kcsl:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
nuInvoicingNuKcslService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-护理单元库存数量-批量删除")
|
||||
@ApiOperation(value="进销存-护理单元库存数量-批量删除", notes="进销存-护理单元库存数量-批量删除")
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_kcsl:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.nuInvoicingNuKcslService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-护理单元库存数量-通过id查询")
|
||||
@ApiOperation(value="进销存-护理单元库存数量-通过id查询", notes="进销存-护理单元库存数量-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<NuInvoicingNuKcsl> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
NuInvoicingNuKcsl nuInvoicingNuKcsl = nuInvoicingNuKcslService.getById(id);
|
||||
if(nuInvoicingNuKcsl==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(nuInvoicingNuKcsl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param nuInvoicingNuKcsl
|
||||
*/
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_kcsl:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, NuInvoicingNuKcsl nuInvoicingNuKcsl) {
|
||||
return super.exportXls(request, nuInvoicingNuKcsl, NuInvoicingNuKcsl.class, "进销存-护理单元库存数量");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("nu:nu_invoicing_nu_kcsl:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, NuInvoicingNuKcsl.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
package com.nu.modules.nu.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import org.jeecg.common.constant.ProvinceCityArea;
|
||||
import org.jeecg.common.util.SpringContextUtils;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元-出入库日志
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("nu_invoicing_nu_crk_log")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="nu_invoicing_nu_crk_log对象", description="进销存-护理单元-出入库日志")
|
||||
public class NuInvoicingNuCrkLog implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.String id;
|
||||
/**nuid nu_base_info.nu_id*/
|
||||
@Excel(name = "nuid nu_base_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "nuid nu_base_info.nu_id")
|
||||
private java.lang.String nuId;
|
||||
/**长者id nu_biz_elder_info.id*/
|
||||
@Excel(name = "长者id nu_biz_elder_info.id", width = 15)
|
||||
@ApiModelProperty(value = "长者id nu_biz_elder_info.id")
|
||||
private java.lang.String elderId;
|
||||
/**库房id nu_warehouse_material_info.nu_id*/
|
||||
@Excel(name = "库房id nu_warehouse_material_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "库房id nu_warehouse_material_info.nu_id")
|
||||
private java.lang.String kfIf;
|
||||
/**物料id nu_config_material_info.id*/
|
||||
@Excel(name = "物料id nu_config_material_info.id", width = 15)
|
||||
@ApiModelProperty(value = "物料id nu_config_material_info.id")
|
||||
private java.lang.String wlId;
|
||||
/**物料数量*/
|
||||
@Excel(name = "物料数量", width = 15)
|
||||
@ApiModelProperty(value = "物料数量")
|
||||
private java.lang.Integer wlNum;
|
||||
/**类型 1请领 2退货*/
|
||||
@Excel(name = "类型 1请领 2退货", width = 15)
|
||||
@ApiModelProperty(value = "类型 1请领 2退货")
|
||||
private java.lang.String type;
|
||||
/**单号*/
|
||||
@Excel(name = "单号", width = 15)
|
||||
@ApiModelProperty(value = "单号")
|
||||
private java.lang.String orderNumber;
|
||||
/**单子类型 qld请领单 thd退货单*/
|
||||
@Excel(name = "单子类型 qld请领单 thd退货单", width = 15)
|
||||
@ApiModelProperty(value = "单子类型 qld请领单 thd退货单")
|
||||
private java.lang.String orderType;
|
||||
/**createBy*/
|
||||
@ApiModelProperty(value = "createBy")
|
||||
private java.lang.String createBy;
|
||||
/**createTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private java.util.Date createTime;
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.nu.modules.nu.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import org.jeecg.common.constant.ProvinceCityArea;
|
||||
import org.jeecg.common.util.SpringContextUtils;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元库存数量
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("nu_invoicing_nu_kcsl")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="nu_invoicing_nu_kcsl对象", description="进销存-护理单元库存数量")
|
||||
public class NuInvoicingNuKcsl implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.String id;
|
||||
/**nuid nu_base_info.nu_id*/
|
||||
@Excel(name = "nuid nu_base_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "nuid nu_base_info.nu_id")
|
||||
private java.lang.String nuId;
|
||||
/**长者id nu_biz_elder_info.id*/
|
||||
@Excel(name = "长者id nu_biz_elder_info.id", width = 15)
|
||||
@ApiModelProperty(value = "长者id nu_biz_elder_info.id")
|
||||
private java.lang.String elderId;
|
||||
/**物料id nu_config_material_info.id*/
|
||||
@Excel(name = "物料id nu_config_material_info.id", width = 15)
|
||||
@ApiModelProperty(value = "物料id nu_config_material_info.id")
|
||||
private java.lang.String wlId;
|
||||
/**物料数量*/
|
||||
@Excel(name = "物料数量", width = 15)
|
||||
@ApiModelProperty(value = "物料数量")
|
||||
private java.lang.Integer wlNum;
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.nu.modules.nu.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.nu.modules.nu.entity.NuInvoicingNuCrkLog;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元-出入库日志
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface NuInvoicingNuCrkLogMapper extends BaseMapper<NuInvoicingNuCrkLog> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.nu.modules.nu.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.nu.modules.nu.entity.NuInvoicingNuKcsl;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元库存数量
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface NuInvoicingNuKcslMapper extends BaseMapper<NuInvoicingNuKcsl> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.nu.mapper.NuInvoicingNuCrkLogMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.nu.mapper.NuInvoicingNuKcslMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.nu.modules.nu.service;
|
||||
|
||||
import com.nu.modules.nu.entity.NuInvoicingNuCrkLog;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元-出入库日志
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface INuInvoicingNuCrkLogService extends IService<NuInvoicingNuCrkLog> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.nu.modules.nu.service;
|
||||
|
||||
import com.nu.modules.nu.entity.NuInvoicingNuKcsl;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元库存数量
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface INuInvoicingNuKcslService extends IService<NuInvoicingNuKcsl> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.nu.modules.nu.service.impl;
|
||||
|
||||
import com.nu.modules.nu.entity.NuInvoicingNuCrkLog;
|
||||
import com.nu.modules.nu.mapper.NuInvoicingNuCrkLogMapper;
|
||||
import com.nu.modules.nu.service.INuInvoicingNuCrkLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元-出入库日志
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class NuInvoicingNuCrkLogServiceImpl extends ServiceImpl<NuInvoicingNuCrkLogMapper, NuInvoicingNuCrkLog> implements INuInvoicingNuCrkLogService {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.nu.modules.nu.service.impl;
|
||||
|
||||
import com.nu.modules.nu.entity.NuInvoicingNuKcsl;
|
||||
import com.nu.modules.nu.mapper.NuInvoicingNuKcslMapper;
|
||||
import com.nu.modules.nu.service.INuInvoicingNuKcslService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-护理单元库存数量
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class NuInvoicingNuKcslServiceImpl extends ServiceImpl<NuInvoicingNuKcslMapper, NuInvoicingNuKcsl> implements INuInvoicingNuKcslService {
|
||||
|
||||
}
|
||||
|
|
@ -1,163 +0,0 @@
|
|||
package com.nu.modules.qingling.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import com.nu.modules.qingling.entity.NuConfigMaterialPackage;
|
||||
import com.nu.modules.qingling.service.INuConfigMaterialPackageService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 护理单元请领包
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-12
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="护理单元请领包")
|
||||
@RestController
|
||||
@RequestMapping("/qinggou/nuConfigMaterialPackage")
|
||||
@Slf4j
|
||||
public class NuConfigMaterialPackageController extends JeecgController<NuConfigMaterialPackage, INuConfigMaterialPackageService> {
|
||||
@Autowired
|
||||
private INuConfigMaterialPackageService nuConfigMaterialPackageService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param nuConfigMaterialPackage
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "护理单元请领包-分页列表查询")
|
||||
@ApiOperation(value="护理单元请领包-分页列表查询", notes="护理单元请领包-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<NuConfigMaterialPackage>> queryPageList(NuConfigMaterialPackage nuConfigMaterialPackage,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<NuConfigMaterialPackage> queryWrapper = QueryGenerator.initQueryWrapper(nuConfigMaterialPackage, req.getParameterMap());
|
||||
Page<NuConfigMaterialPackage> page = new Page<NuConfigMaterialPackage>(pageNo, pageSize);
|
||||
IPage<NuConfigMaterialPackage> pageList = nuConfigMaterialPackageService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param nuConfigMaterialPackage
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "护理单元请领包-添加")
|
||||
@ApiOperation(value="护理单元请领包-添加", notes="护理单元请领包-添加")
|
||||
@RequiresPermissions("qinggou:nu_config_material_package:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody NuConfigMaterialPackage nuConfigMaterialPackage) {
|
||||
nuConfigMaterialPackageService.save(nuConfigMaterialPackage);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param nuConfigMaterialPackage
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "护理单元请领包-编辑")
|
||||
@ApiOperation(value="护理单元请领包-编辑", notes="护理单元请领包-编辑")
|
||||
@RequiresPermissions("qinggou:nu_config_material_package:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody NuConfigMaterialPackage nuConfigMaterialPackage) {
|
||||
nuConfigMaterialPackageService.updateById(nuConfigMaterialPackage);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "护理单元请领包-通过id删除")
|
||||
@ApiOperation(value="护理单元请领包-通过id删除", notes="护理单元请领包-通过id删除")
|
||||
@RequiresPermissions("qinggou:nu_config_material_package:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
nuConfigMaterialPackageService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "护理单元请领包-批量删除")
|
||||
@ApiOperation(value="护理单元请领包-批量删除", notes="护理单元请领包-批量删除")
|
||||
@RequiresPermissions("qinggou:nu_config_material_package:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.nuConfigMaterialPackageService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "护理单元请领包-通过id查询")
|
||||
@ApiOperation(value="护理单元请领包-通过id查询", notes="护理单元请领包-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<NuConfigMaterialPackage> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
NuConfigMaterialPackage nuConfigMaterialPackage = nuConfigMaterialPackageService.getById(id);
|
||||
if(nuConfigMaterialPackage==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(nuConfigMaterialPackage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param nuConfigMaterialPackage
|
||||
*/
|
||||
@RequiresPermissions("qinggou:nu_config_material_package:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, NuConfigMaterialPackage nuConfigMaterialPackage) {
|
||||
return super.exportXls(request, nuConfigMaterialPackage, NuConfigMaterialPackage.class, "护理单元请领包");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("qinggou:nu_config_material_package:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, NuConfigMaterialPackage.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
package com.nu.modules.qingling.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.nu.entity.MaterialInfoEntity;
|
||||
import com.nu.entity.MaterialPackageEntity;
|
||||
import com.nu.modules.qingling.entity.NuConfigMaterialPackage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.common.constant.CommonConstant;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: 护理单元请领包
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-12
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface NuConfigMaterialPackageMapper extends BaseMapper<NuConfigMaterialPackage> {
|
||||
|
||||
IPage<MaterialInfoEntity> queryPackageList(IPage<MaterialInfoEntity> page, @Param(Constants.WRAPPER) QueryWrapper<MaterialInfoEntity> queryWrapper);
|
||||
|
||||
String addMaterialPackageList(List<MaterialPackageEntity> infoList);
|
||||
|
||||
IPage<MaterialInfoEntity> queryWuliaoList(IPage<MaterialInfoEntity> page, @Param(Constants.WRAPPER) QueryWrapper<MaterialInfoEntity> queryWrapper);
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.qingling.mapper.NuConfigMaterialPackageMapper">
|
||||
|
||||
<select id="queryPackageList" resultType="com.nu.entity.MaterialInfoEntity">
|
||||
select b.*,a.id as delId from nu_config_material_package a
|
||||
left join nu_config_material_info b on a.wl_id = b.id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
<select id="queryWuliaoList" resultType="com.nu.entity.MaterialInfoEntity">
|
||||
select b.* from nu_config_material_info b
|
||||
left join nu_config_material_package a on a.wl_id = b.id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
package com.nu.modules.qingling.service;
|
||||
|
||||
import com.nu.modules.qingling.entity.NuConfigMaterialPackage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 护理单元请领包
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-12
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface INuConfigMaterialPackageService extends IService<NuConfigMaterialPackage> {
|
||||
|
||||
}
|
||||
|
|
@ -1,114 +0,0 @@
|
|||
package com.nu.modules.qingling.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.nu.entity.MaterialInfoEntity;
|
||||
import com.nu.entity.MaterialPackageEntity;
|
||||
import com.nu.modules.invoicing.api.IQinglingApi;
|
||||
import com.nu.modules.qingling.entity.NuConfigMaterialPackage;
|
||||
import com.nu.modules.qingling.mapper.NuConfigMaterialPackageMapper;
|
||||
import com.nu.modules.qingling.service.INuConfigMaterialPackageService;
|
||||
import com.nu.modules.sysconfig.ISysConfigApi;
|
||||
import com.nu.modules.warehouseMaterialInfo.entity.BlWarehouseMaterialInfo;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: 护理单元请领包
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-12
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class NuConfigMaterialPackageServiceImpl extends ServiceImpl<NuConfigMaterialPackageMapper, NuConfigMaterialPackage> implements INuConfigMaterialPackageService, IQinglingApi {
|
||||
|
||||
@Autowired
|
||||
private ISysConfigApi sysConfigApi;
|
||||
|
||||
private String serverNetUrl;
|
||||
@Override
|
||||
public IPage<MaterialInfoEntity> queryPackageList(Integer pageNo, Integer pageSize, MaterialInfoEntity materialInfoEntityDto, HttpServletRequest req) {
|
||||
QueryWrapper<MaterialInfoEntity> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("a.nu_id", materialInfoEntityDto.getNuId());
|
||||
queryWrapper.apply(StringUtils.isNotBlank(materialInfoEntityDto.getWlParamInfo()),"( b.material_name like '%"+materialInfoEntityDto.getWlParamInfo()+"%' or b.material_no like '%"+materialInfoEntityDto.getWlParamInfo()+"%' or b.pinyin like '%"+materialInfoEntityDto.getWlParamInfo()+"%' or b.specification_model like '%"+materialInfoEntityDto.getWlParamInfo()+"%' ) ");
|
||||
getOpeMediaAddress();
|
||||
Page<MaterialInfoEntity> page = new Page<>(pageNo, pageSize);
|
||||
IPage<MaterialInfoEntity> pageList = baseMapper.queryPackageList(page, queryWrapper);
|
||||
pageList.getRecords().forEach(info -> {
|
||||
if (info.getMaterialImg() != null){
|
||||
info.setMaterialImg(getImageNetUrl(info.getMaterialImg()));
|
||||
}
|
||||
});
|
||||
return pageList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String addMaterialPackageList(List<MaterialPackageEntity> infoList) {
|
||||
List<NuConfigMaterialPackage> addList = BeanUtil.copyToList(infoList, NuConfigMaterialPackage.class);
|
||||
for(NuConfigMaterialPackage info:addList){
|
||||
baseMapper.insert(info);
|
||||
}
|
||||
return "1";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deletePackageById(String id) {
|
||||
if (id.indexOf(",")>-1){
|
||||
for (String param : id.split(",")){
|
||||
baseMapper.deleteById(param);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<MaterialInfoEntity> queryWuliaoList(Integer pageNo, Integer pageSize, MaterialInfoEntity materialInfoEntityDto, HttpServletRequest req) {
|
||||
QueryWrapper<MaterialInfoEntity> queryWrapper = new QueryWrapper<>();
|
||||
// queryWrapper.ne("a.nu_id", materialInfoEntityDto.getNuId());
|
||||
queryWrapper.apply(" (a.nu_id IS NULL OR a.nu_id <> '"+materialInfoEntityDto.getNuId()+"') ");
|
||||
queryWrapper.eq("b.del_flag","0");
|
||||
queryWrapper.apply(StringUtils.isNotBlank(materialInfoEntityDto.getWlParamInfo()),"( b.material_name like '%"+materialInfoEntityDto.getWlParamInfo()+"%' or b.material_no like '%"+materialInfoEntityDto.getWlParamInfo()+"%' or b.pinyin like '%"+materialInfoEntityDto.getWlParamInfo()+"%' or b.specification_model like '%"+materialInfoEntityDto.getWlParamInfo()+"%' ) ");
|
||||
getOpeMediaAddress();
|
||||
Page<MaterialInfoEntity> page = new Page<>(pageNo, pageSize);
|
||||
IPage<MaterialInfoEntity> pageList = baseMapper.queryWuliaoList(page, queryWrapper);
|
||||
pageList.getRecords().forEach(info -> {
|
||||
if (info.getMaterialImg() != null){
|
||||
info.setMaterialImg(getImageNetUrl(info.getMaterialImg()));
|
||||
}
|
||||
});
|
||||
return pageList;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取管理平台静态资源路径
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
private void getOpeMediaAddress() {
|
||||
if (serverNetUrl == null || serverNetUrl.equals("")) {
|
||||
JSONObject json = sysConfigApi.getByKey("ope_media_address");
|
||||
if (json != null) {
|
||||
String configValue = json.getString("configValue");
|
||||
if (!configValue.endsWith("/")) {
|
||||
configValue += "/";
|
||||
}
|
||||
serverNetUrl = configValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private String getImageNetUrl(String imageUrl) {
|
||||
|
||||
return serverNetUrl + imageUrl;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,180 @@
|
|||
package com.nu.modules.qld.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.system.query.QueryRuleEnum;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldGwc;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldGwcService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-购物车
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="进销存-请领单-购物车")
|
||||
@RestController
|
||||
@RequestMapping("/qld/nuInvoicingQldGwc")
|
||||
@Slf4j
|
||||
public class NuInvoicingQldGwcController extends JeecgController<NuInvoicingQldGwc, INuInvoicingQldGwcService> {
|
||||
@Autowired
|
||||
private INuInvoicingQldGwcService nuInvoicingQldGwcService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param nuInvoicingQldGwc
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-购物车-分页列表查询")
|
||||
@ApiOperation(value="进销存-请领单-购物车-分页列表查询", notes="进销存-请领单-购物车-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<NuInvoicingQldGwc>> queryPageList(NuInvoicingQldGwc nuInvoicingQldGwc,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<NuInvoicingQldGwc> queryWrapper = QueryGenerator.initQueryWrapper(nuInvoicingQldGwc, req.getParameterMap());
|
||||
Page<NuInvoicingQldGwc> page = new Page<NuInvoicingQldGwc>(pageNo, pageSize);
|
||||
IPage<NuInvoicingQldGwc> pageList = nuInvoicingQldGwcService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param nuInvoicingQldGwc
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-购物车-添加")
|
||||
@ApiOperation(value="进销存-请领单-购物车-添加", notes="进销存-请领单-购物车-添加")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_gwc:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody NuInvoicingQldGwc nuInvoicingQldGwc) {
|
||||
nuInvoicingQldGwcService.save(nuInvoicingQldGwc);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param nuInvoicingQldGwc
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-购物车-编辑")
|
||||
@ApiOperation(value="进销存-请领单-购物车-编辑", notes="进销存-请领单-购物车-编辑")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_gwc:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody NuInvoicingQldGwc nuInvoicingQldGwc) {
|
||||
nuInvoicingQldGwcService.updateById(nuInvoicingQldGwc);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-购物车-通过id删除")
|
||||
@ApiOperation(value="进销存-请领单-购物车-通过id删除", notes="进销存-请领单-购物车-通过id删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_gwc:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
nuInvoicingQldGwcService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-购物车-批量删除")
|
||||
@ApiOperation(value="进销存-请领单-购物车-批量删除", notes="进销存-请领单-购物车-批量删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_gwc:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.nuInvoicingQldGwcService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-购物车-通过id查询")
|
||||
@ApiOperation(value="进销存-请领单-购物车-通过id查询", notes="进销存-请领单-购物车-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<NuInvoicingQldGwc> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
NuInvoicingQldGwc nuInvoicingQldGwc = nuInvoicingQldGwcService.getById(id);
|
||||
if(nuInvoicingQldGwc==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(nuInvoicingQldGwc);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param nuInvoicingQldGwc
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_gwc:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, NuInvoicingQldGwc nuInvoicingQldGwc) {
|
||||
return super.exportXls(request, nuInvoicingQldGwc, NuInvoicingQldGwc.class, "进销存-请领单-购物车");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_gwc:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, NuInvoicingQldGwc.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,180 @@
|
|||
package com.nu.modules.qld.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.system.query.QueryRuleEnum;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldInfo;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldInfoService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-请领信息表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="进销存-请领单-请领信息表")
|
||||
@RestController
|
||||
@RequestMapping("/qld/nuInvoicingQldInfo")
|
||||
@Slf4j
|
||||
public class NuInvoicingQldInfoController extends JeecgController<NuInvoicingQldInfo, INuInvoicingQldInfoService> {
|
||||
@Autowired
|
||||
private INuInvoicingQldInfoService nuInvoicingQldInfoService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param nuInvoicingQldInfo
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-请领信息表-分页列表查询")
|
||||
@ApiOperation(value="进销存-请领单-请领信息表-分页列表查询", notes="进销存-请领单-请领信息表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<NuInvoicingQldInfo>> queryPageList(NuInvoicingQldInfo nuInvoicingQldInfo,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<NuInvoicingQldInfo> queryWrapper = QueryGenerator.initQueryWrapper(nuInvoicingQldInfo, req.getParameterMap());
|
||||
Page<NuInvoicingQldInfo> page = new Page<NuInvoicingQldInfo>(pageNo, pageSize);
|
||||
IPage<NuInvoicingQldInfo> pageList = nuInvoicingQldInfoService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param nuInvoicingQldInfo
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-请领信息表-添加")
|
||||
@ApiOperation(value="进销存-请领单-请领信息表-添加", notes="进销存-请领单-请领信息表-添加")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_info:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody NuInvoicingQldInfo nuInvoicingQldInfo) {
|
||||
nuInvoicingQldInfoService.save(nuInvoicingQldInfo);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param nuInvoicingQldInfo
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-请领信息表-编辑")
|
||||
@ApiOperation(value="进销存-请领单-请领信息表-编辑", notes="进销存-请领单-请领信息表-编辑")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_info:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody NuInvoicingQldInfo nuInvoicingQldInfo) {
|
||||
nuInvoicingQldInfoService.updateById(nuInvoicingQldInfo);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-请领信息表-通过id删除")
|
||||
@ApiOperation(value="进销存-请领单-请领信息表-通过id删除", notes="进销存-请领单-请领信息表-通过id删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_info:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
nuInvoicingQldInfoService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-请领信息表-批量删除")
|
||||
@ApiOperation(value="进销存-请领单-请领信息表-批量删除", notes="进销存-请领单-请领信息表-批量删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_info:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.nuInvoicingQldInfoService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-请领信息表-通过id查询")
|
||||
@ApiOperation(value="进销存-请领单-请领信息表-通过id查询", notes="进销存-请领单-请领信息表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<NuInvoicingQldInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
NuInvoicingQldInfo nuInvoicingQldInfo = nuInvoicingQldInfoService.getById(id);
|
||||
if(nuInvoicingQldInfo==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(nuInvoicingQldInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param nuInvoicingQldInfo
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_info:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, NuInvoicingQldInfo nuInvoicingQldInfo) {
|
||||
return super.exportXls(request, nuInvoicingQldInfo, NuInvoicingQldInfo.class, "进销存-请领单-请领信息表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_info:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, NuInvoicingQldInfo.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,180 @@
|
|||
package com.nu.modules.qld.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.system.query.QueryRuleEnum;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldLog;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldLogService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-操作日志表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="进销存-请领单-操作日志表")
|
||||
@RestController
|
||||
@RequestMapping("/qld/nuInvoicingQldLog")
|
||||
@Slf4j
|
||||
public class NuInvoicingQldLogController extends JeecgController<NuInvoicingQldLog, INuInvoicingQldLogService> {
|
||||
@Autowired
|
||||
private INuInvoicingQldLogService nuInvoicingQldLogService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param nuInvoicingQldLog
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-操作日志表-分页列表查询")
|
||||
@ApiOperation(value="进销存-请领单-操作日志表-分页列表查询", notes="进销存-请领单-操作日志表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<NuInvoicingQldLog>> queryPageList(NuInvoicingQldLog nuInvoicingQldLog,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<NuInvoicingQldLog> queryWrapper = QueryGenerator.initQueryWrapper(nuInvoicingQldLog, req.getParameterMap());
|
||||
Page<NuInvoicingQldLog> page = new Page<NuInvoicingQldLog>(pageNo, pageSize);
|
||||
IPage<NuInvoicingQldLog> pageList = nuInvoicingQldLogService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param nuInvoicingQldLog
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-操作日志表-添加")
|
||||
@ApiOperation(value="进销存-请领单-操作日志表-添加", notes="进销存-请领单-操作日志表-添加")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_log:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody NuInvoicingQldLog nuInvoicingQldLog) {
|
||||
nuInvoicingQldLogService.save(nuInvoicingQldLog);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param nuInvoicingQldLog
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-操作日志表-编辑")
|
||||
@ApiOperation(value="进销存-请领单-操作日志表-编辑", notes="进销存-请领单-操作日志表-编辑")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_log:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody NuInvoicingQldLog nuInvoicingQldLog) {
|
||||
nuInvoicingQldLogService.updateById(nuInvoicingQldLog);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-操作日志表-通过id删除")
|
||||
@ApiOperation(value="进销存-请领单-操作日志表-通过id删除", notes="进销存-请领单-操作日志表-通过id删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_log:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
nuInvoicingQldLogService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-操作日志表-批量删除")
|
||||
@ApiOperation(value="进销存-请领单-操作日志表-批量删除", notes="进销存-请领单-操作日志表-批量删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_log:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.nuInvoicingQldLogService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-操作日志表-通过id查询")
|
||||
@ApiOperation(value="进销存-请领单-操作日志表-通过id查询", notes="进销存-请领单-操作日志表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<NuInvoicingQldLog> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
NuInvoicingQldLog nuInvoicingQldLog = nuInvoicingQldLogService.getById(id);
|
||||
if(nuInvoicingQldLog==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(nuInvoicingQldLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param nuInvoicingQldLog
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_log:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, NuInvoicingQldLog nuInvoicingQldLog) {
|
||||
return super.exportXls(request, nuInvoicingQldLog, NuInvoicingQldLog.class, "进销存-请领单-操作日志表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_log:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, NuInvoicingQldLog.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,180 @@
|
|||
package com.nu.modules.qld.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.system.query.QueryRuleEnum;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldMain;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldMainService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-主表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="进销存-请领单-主表")
|
||||
@RestController
|
||||
@RequestMapping("/qld/nuInvoicingQldMain")
|
||||
@Slf4j
|
||||
public class NuInvoicingQldMainController extends JeecgController<NuInvoicingQldMain, INuInvoicingQldMainService> {
|
||||
@Autowired
|
||||
private INuInvoicingQldMainService nuInvoicingQldMainService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param nuInvoicingQldMain
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-主表-分页列表查询")
|
||||
@ApiOperation(value="进销存-请领单-主表-分页列表查询", notes="进销存-请领单-主表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<NuInvoicingQldMain>> queryPageList(NuInvoicingQldMain nuInvoicingQldMain,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<NuInvoicingQldMain> queryWrapper = QueryGenerator.initQueryWrapper(nuInvoicingQldMain, req.getParameterMap());
|
||||
Page<NuInvoicingQldMain> page = new Page<NuInvoicingQldMain>(pageNo, pageSize);
|
||||
IPage<NuInvoicingQldMain> pageList = nuInvoicingQldMainService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param nuInvoicingQldMain
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-主表-添加")
|
||||
@ApiOperation(value="进销存-请领单-主表-添加", notes="进销存-请领单-主表-添加")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_main:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody NuInvoicingQldMain nuInvoicingQldMain) {
|
||||
nuInvoicingQldMainService.save(nuInvoicingQldMain);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param nuInvoicingQldMain
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-主表-编辑")
|
||||
@ApiOperation(value="进销存-请领单-主表-编辑", notes="进销存-请领单-主表-编辑")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_main:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody NuInvoicingQldMain nuInvoicingQldMain) {
|
||||
nuInvoicingQldMainService.updateById(nuInvoicingQldMain);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-主表-通过id删除")
|
||||
@ApiOperation(value="进销存-请领单-主表-通过id删除", notes="进销存-请领单-主表-通过id删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_main:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
nuInvoicingQldMainService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-主表-批量删除")
|
||||
@ApiOperation(value="进销存-请领单-主表-批量删除", notes="进销存-请领单-主表-批量删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_main:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.nuInvoicingQldMainService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-主表-通过id查询")
|
||||
@ApiOperation(value="进销存-请领单-主表-通过id查询", notes="进销存-请领单-主表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<NuInvoicingQldMain> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
NuInvoicingQldMain nuInvoicingQldMain = nuInvoicingQldMainService.getById(id);
|
||||
if(nuInvoicingQldMain==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(nuInvoicingQldMain);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param nuInvoicingQldMain
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_main:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, NuInvoicingQldMain nuInvoicingQldMain) {
|
||||
return super.exportXls(request, nuInvoicingQldMain, NuInvoicingQldMain.class, "进销存-请领单-主表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_main:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, NuInvoicingQldMain.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,180 @@
|
|||
package com.nu.modules.qld.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.system.query.QueryRuleEnum;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldWlzd;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldWlzdService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-物料置顶中间表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="进销存-请领单-物料置顶中间表")
|
||||
@RestController
|
||||
@RequestMapping("/qld/nuInvoicingQldWlzd")
|
||||
@Slf4j
|
||||
public class NuInvoicingQldWlzdController extends JeecgController<NuInvoicingQldWlzd, INuInvoicingQldWlzdService> {
|
||||
@Autowired
|
||||
private INuInvoicingQldWlzdService nuInvoicingQldWlzdService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param nuInvoicingQldWlzd
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-物料置顶中间表-分页列表查询")
|
||||
@ApiOperation(value="进销存-请领单-物料置顶中间表-分页列表查询", notes="进销存-请领单-物料置顶中间表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<NuInvoicingQldWlzd>> queryPageList(NuInvoicingQldWlzd nuInvoicingQldWlzd,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<NuInvoicingQldWlzd> queryWrapper = QueryGenerator.initQueryWrapper(nuInvoicingQldWlzd, req.getParameterMap());
|
||||
Page<NuInvoicingQldWlzd> page = new Page<NuInvoicingQldWlzd>(pageNo, pageSize);
|
||||
IPage<NuInvoicingQldWlzd> pageList = nuInvoicingQldWlzdService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param nuInvoicingQldWlzd
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-物料置顶中间表-添加")
|
||||
@ApiOperation(value="进销存-请领单-物料置顶中间表-添加", notes="进销存-请领单-物料置顶中间表-添加")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_wlzd:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody NuInvoicingQldWlzd nuInvoicingQldWlzd) {
|
||||
nuInvoicingQldWlzdService.save(nuInvoicingQldWlzd);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param nuInvoicingQldWlzd
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-物料置顶中间表-编辑")
|
||||
@ApiOperation(value="进销存-请领单-物料置顶中间表-编辑", notes="进销存-请领单-物料置顶中间表-编辑")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_wlzd:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody NuInvoicingQldWlzd nuInvoicingQldWlzd) {
|
||||
nuInvoicingQldWlzdService.updateById(nuInvoicingQldWlzd);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-物料置顶中间表-通过id删除")
|
||||
@ApiOperation(value="进销存-请领单-物料置顶中间表-通过id删除", notes="进销存-请领单-物料置顶中间表-通过id删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_wlzd:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
nuInvoicingQldWlzdService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "进销存-请领单-物料置顶中间表-批量删除")
|
||||
@ApiOperation(value="进销存-请领单-物料置顶中间表-批量删除", notes="进销存-请领单-物料置顶中间表-批量删除")
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_wlzd:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.nuInvoicingQldWlzdService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "进销存-请领单-物料置顶中间表-通过id查询")
|
||||
@ApiOperation(value="进销存-请领单-物料置顶中间表-通过id查询", notes="进销存-请领单-物料置顶中间表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<NuInvoicingQldWlzd> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
NuInvoicingQldWlzd nuInvoicingQldWlzd = nuInvoicingQldWlzdService.getById(id);
|
||||
if(nuInvoicingQldWlzd==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(nuInvoicingQldWlzd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param nuInvoicingQldWlzd
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_wlzd:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, NuInvoicingQldWlzd nuInvoicingQldWlzd) {
|
||||
return super.exportXls(request, nuInvoicingQldWlzd, NuInvoicingQldWlzd.class, "进销存-请领单-物料置顶中间表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("qld:nu_invoicing_qld_wlzd:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, NuInvoicingQldWlzd.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
package com.nu.modules.qld.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import org.jeecg.common.constant.ProvinceCityArea;
|
||||
import org.jeecg.common.util.SpringContextUtils;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-购物车
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("nu_invoicing_qld_gwc")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="nu_invoicing_qld_gwc对象", description="进销存-请领单-购物车")
|
||||
public class NuInvoicingQldGwc implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.String id;
|
||||
/**createBy*/
|
||||
@ApiModelProperty(value = "createBy")
|
||||
private java.lang.String createBy;
|
||||
/**createTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private java.util.Date createTime;
|
||||
/**updateBy*/
|
||||
@ApiModelProperty(value = "updateBy")
|
||||
private java.lang.String updateBy;
|
||||
/**updateTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "updateTime")
|
||||
private java.util.Date updateTime;
|
||||
/**库房id nu_warehouse_material_info.nu_id*/
|
||||
@Excel(name = "库房id nu_warehouse_material_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "库房id nu_warehouse_material_info.nu_id")
|
||||
private java.lang.String kfIf;
|
||||
/**物料id nu_config_material_info.id*/
|
||||
@Excel(name = "物料id nu_config_material_info.id", width = 15)
|
||||
@ApiModelProperty(value = "物料id nu_config_material_info.id")
|
||||
private java.lang.String wlId;
|
||||
/**请领数量*/
|
||||
@Excel(name = "请领数量", width = 15)
|
||||
@ApiModelProperty(value = "请领数量")
|
||||
private java.lang.Integer qlNum;
|
||||
/**nuid nu_base_info.nu_id*/
|
||||
@Excel(name = "nuid nu_base_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "nuid nu_base_info.nu_id")
|
||||
private java.lang.String nuId;
|
||||
/**长者id nu_biz_elder_info.id*/
|
||||
@Excel(name = "长者id nu_biz_elder_info.id", width = 15)
|
||||
@ApiModelProperty(value = "长者id nu_biz_elder_info.id")
|
||||
private java.lang.String elderId;
|
||||
}
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
package com.nu.modules.qld.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import org.jeecg.common.constant.ProvinceCityArea;
|
||||
import org.jeecg.common.util.SpringContextUtils;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-请领信息表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("nu_invoicing_qld_info")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="nu_invoicing_qld_info对象", description="进销存-请领单-请领信息表")
|
||||
public class NuInvoicingQldInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.String id;
|
||||
/**createBy*/
|
||||
@ApiModelProperty(value = "createBy")
|
||||
private java.lang.String createBy;
|
||||
/**createTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private java.util.Date createTime;
|
||||
/**updateBy*/
|
||||
@ApiModelProperty(value = "updateBy")
|
||||
private java.lang.String updateBy;
|
||||
/**updateTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "updateTime")
|
||||
private java.util.Date updateTime;
|
||||
/**请领单单号*/
|
||||
@Excel(name = "请领单单号", width = 15)
|
||||
@ApiModelProperty(value = "请领单单号")
|
||||
private java.lang.String qldNo;
|
||||
/**库房id nu_warehouse_material_info.nu_id*/
|
||||
@Excel(name = "库房id nu_warehouse_material_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "库房id nu_warehouse_material_info.nu_id")
|
||||
private java.lang.String kfIf;
|
||||
/**物料id nu_config_material_info.id*/
|
||||
@Excel(name = "物料id nu_config_material_info.id", width = 15)
|
||||
@ApiModelProperty(value = "物料id nu_config_material_info.id")
|
||||
private java.lang.String wlId;
|
||||
/**请领数量*/
|
||||
@Excel(name = "请领数量", width = 15)
|
||||
@ApiModelProperty(value = "请领数量")
|
||||
private java.lang.Integer qlNum;
|
||||
/**nuid nu_base_info.nu_id*/
|
||||
@Excel(name = "nuid nu_base_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "nuid nu_base_info.nu_id")
|
||||
private java.lang.String nuId;
|
||||
/**长者id nu_biz_elder_info.id*/
|
||||
@Excel(name = "长者id nu_biz_elder_info.id", width = 15)
|
||||
@ApiModelProperty(value = "长者id nu_biz_elder_info.id")
|
||||
private java.lang.String elderId;
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package com.nu.modules.qld.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import org.jeecg.common.constant.ProvinceCityArea;
|
||||
import org.jeecg.common.util.SpringContextUtils;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-操作日志表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("nu_invoicing_qld_log")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="nu_invoicing_qld_log对象", description="进销存-请领单-操作日志表")
|
||||
public class NuInvoicingQldLog implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.String id;
|
||||
/**createBy*/
|
||||
@ApiModelProperty(value = "createBy")
|
||||
private java.lang.String createBy;
|
||||
/**createTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private java.util.Date createTime;
|
||||
/**updateBy*/
|
||||
@ApiModelProperty(value = "updateBy")
|
||||
private java.lang.String updateBy;
|
||||
/**updateTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "updateTime")
|
||||
private java.util.Date updateTime;
|
||||
/**请领单单号*/
|
||||
@Excel(name = "请领单单号", width = 15)
|
||||
@ApiModelProperty(value = "请领单单号")
|
||||
private java.lang.String qldNo;
|
||||
/**操作类型 0添加购物车 1作废 2回退 3提交 4出库 5收货*/
|
||||
@Excel(name = "操作类型 0添加购物车 1作废 2回退 3提交 4出库 5收货", width = 15)
|
||||
@ApiModelProperty(value = "操作类型 0添加购物车 1作废 2回退 3提交 4出库 5收货")
|
||||
private java.lang.String status;
|
||||
/**操作人*/
|
||||
@Excel(name = "操作人", width = 15)
|
||||
@ApiModelProperty(value = "操作人")
|
||||
private java.lang.String opeBy;
|
||||
/**提交时间*/
|
||||
@Excel(name = "提交时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "提交时间")
|
||||
private java.util.Date opeTime;
|
||||
/**节点名称*/
|
||||
@Excel(name = "节点名称", width = 15)
|
||||
@ApiModelProperty(value = "节点名称")
|
||||
private java.lang.String jdMc;
|
||||
/**nuid nu_base_info.nu_id*/
|
||||
@Excel(name = "nuid nu_base_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "nuid nu_base_info.nu_id")
|
||||
private java.lang.String nuId;
|
||||
/**长者id nu_biz_elder_info.id*/
|
||||
@Excel(name = "长者id nu_biz_elder_info.id", width = 15)
|
||||
@ApiModelProperty(value = "长者id nu_biz_elder_info.id")
|
||||
private java.lang.String elderId;
|
||||
}
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
package com.nu.modules.qld.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import org.jeecg.common.constant.ProvinceCityArea;
|
||||
import org.jeecg.common.util.SpringContextUtils;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-主表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("nu_invoicing_qld_main")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="nu_invoicing_qld_main对象", description="进销存-请领单-主表")
|
||||
public class NuInvoicingQldMain implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.String id;
|
||||
/**createBy*/
|
||||
@ApiModelProperty(value = "createBy")
|
||||
private java.lang.String createBy;
|
||||
/**createTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private java.util.Date createTime;
|
||||
/**updateBy*/
|
||||
@ApiModelProperty(value = "updateBy")
|
||||
private java.lang.String updateBy;
|
||||
/**updateTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "updateTime")
|
||||
private java.util.Date updateTime;
|
||||
/**请领单单号*/
|
||||
@Excel(name = "请领单单号", width = 15)
|
||||
@ApiModelProperty(value = "请领单单号")
|
||||
private java.lang.String qldNo;
|
||||
/**请领状态 0购物车 1已作废 2已回退 3待出库 4已出库 5已收货*/
|
||||
@Excel(name = "请领状态 0购物车 1已作废 2已回退 3待出库 4已出库 5已收货", width = 15)
|
||||
@ApiModelProperty(value = "请领状态 0购物车 1已作废 2已回退 3待出库 4已出库 5已收货")
|
||||
private java.lang.String status;
|
||||
/**编号*/
|
||||
@Excel(name = "编号", width = 15)
|
||||
@ApiModelProperty(value = "编号")
|
||||
private java.lang.Integer qldNoOrder;
|
||||
/**员工是否已读 Y已读 N有最新未读*/
|
||||
@Excel(name = "员工是否已读 Y已读 N有最新未读", width = 15)
|
||||
@ApiModelProperty(value = "员工是否已读 Y已读 N有最新未读")
|
||||
private java.lang.String izYgRead;
|
||||
/**库管是否已读 Y已读 N有最新未读*/
|
||||
@Excel(name = "库管是否已读 Y已读 N有最新未读", width = 15)
|
||||
@ApiModelProperty(value = "库管是否已读 Y已读 N有最新未读")
|
||||
private java.lang.String izKgRead;
|
||||
/**提交人*/
|
||||
@Excel(name = "提交人", width = 15)
|
||||
@ApiModelProperty(value = "提交人")
|
||||
private java.lang.String tjBy;
|
||||
/**提交时间*/
|
||||
@Excel(name = "提交时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "提交时间")
|
||||
private java.util.Date tjTime;
|
||||
/**作废人*/
|
||||
@Excel(name = "作废人", width = 15)
|
||||
@ApiModelProperty(value = "作废人")
|
||||
private java.lang.String zfBy;
|
||||
/**作废时间*/
|
||||
@Excel(name = "作废时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "作废时间")
|
||||
private java.util.Date zfTime;
|
||||
/**回退人*/
|
||||
@Excel(name = "回退人", width = 15)
|
||||
@ApiModelProperty(value = "回退人")
|
||||
private java.lang.String htBy;
|
||||
/**回退时间*/
|
||||
@Excel(name = "回退时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "回退时间")
|
||||
private java.util.Date htTime;
|
||||
/**出库人*/
|
||||
@Excel(name = "出库人", width = 15)
|
||||
@ApiModelProperty(value = "出库人")
|
||||
private java.lang.String ckBy;
|
||||
/**出库时间*/
|
||||
@Excel(name = "出库时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "出库时间")
|
||||
private java.util.Date ckTime;
|
||||
/**收货人*/
|
||||
@Excel(name = "收货人", width = 15)
|
||||
@ApiModelProperty(value = "收货人")
|
||||
private java.lang.String shBy;
|
||||
/**收货时间*/
|
||||
@Excel(name = "收货时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "收货时间")
|
||||
private java.util.Date shTime;
|
||||
/**节点名称*/
|
||||
@Excel(name = "节点名称", width = 15)
|
||||
@ApiModelProperty(value = "节点名称")
|
||||
private java.lang.String jdMc;
|
||||
/**nuid nu_base_info.nu_id*/
|
||||
@Excel(name = "nuid nu_base_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "nuid nu_base_info.nu_id")
|
||||
private java.lang.String nuId;
|
||||
/**长者id nu_biz_elder_info.id*/
|
||||
@Excel(name = "长者id nu_biz_elder_info.id", width = 15)
|
||||
@ApiModelProperty(value = "长者id nu_biz_elder_info.id")
|
||||
private java.lang.String elderId;
|
||||
/**作废原因*/
|
||||
@Excel(name = "作废原因", width = 15)
|
||||
@ApiModelProperty(value = "作废原因")
|
||||
private java.lang.String zfYy;
|
||||
/**回退原因*/
|
||||
@Excel(name = "回退原因", width = 15)
|
||||
@ApiModelProperty(value = "回退原因")
|
||||
private java.lang.String htYy;
|
||||
}
|
||||
|
|
@ -1,31 +1,37 @@
|
|||
package com.nu.modules.qingling.entity;
|
||||
package com.nu.modules.qld.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import org.jeecg.common.constant.ProvinceCityArea;
|
||||
import org.jeecg.common.util.SpringContextUtils;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 护理单元请领包
|
||||
* @Description: 进销存-请领单-物料置顶中间表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-12
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("nu_config_material_package")
|
||||
@TableName("nu_invoicing_qld_wlzd")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="nu_config_material_package对象", description="护理单元请领包")
|
||||
public class NuConfigMaterialPackage implements Serializable {
|
||||
@ApiModel(value="nu_invoicing_qld_wlzd对象", description="进销存-请领单-物料置顶中间表")
|
||||
public class NuInvoicingQldWlzd implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
|
|
@ -40,20 +46,16 @@ public class NuConfigMaterialPackage implements Serializable {
|
|||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private java.util.Date createTime;
|
||||
/**updateBy*/
|
||||
@ApiModelProperty(value = "updateBy")
|
||||
private java.lang.String updateBy;
|
||||
/**updateTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "updateTime")
|
||||
private java.util.Date updateTime;
|
||||
/**护理单元*/
|
||||
@Excel(name = "护理单元", width = 15)
|
||||
@ApiModelProperty(value = "护理单元")
|
||||
private java.lang.String nuId;
|
||||
/**物料*/
|
||||
@Excel(name = "物料", width = 15)
|
||||
@ApiModelProperty(value = "物料")
|
||||
/**物料id nu_config_material_info.id*/
|
||||
@Excel(name = "物料id nu_config_material_info.id", width = 15)
|
||||
@ApiModelProperty(value = "物料id nu_config_material_info.id")
|
||||
private java.lang.String wlId;
|
||||
/**nuid nu_base_info.nu_id*/
|
||||
@Excel(name = "nuid nu_base_info.nu_id", width = 15)
|
||||
@ApiModelProperty(value = "nuid nu_base_info.nu_id")
|
||||
private java.lang.String nuId;
|
||||
/**长者id nu_biz_elder_info.id*/
|
||||
@Excel(name = "长者id nu_biz_elder_info.id", width = 15)
|
||||
@ApiModelProperty(value = "长者id nu_biz_elder_info.id")
|
||||
private java.lang.String elderId;
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.nu.modules.qld.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldGwc;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-购物车
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface NuInvoicingQldGwcMapper extends BaseMapper<NuInvoicingQldGwc> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.nu.modules.qld.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-请领信息表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface NuInvoicingQldInfoMapper extends BaseMapper<NuInvoicingQldInfo> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.nu.modules.qld.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldLog;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-操作日志表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface NuInvoicingQldLogMapper extends BaseMapper<NuInvoicingQldLog> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.nu.modules.qld.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldMain;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-主表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface NuInvoicingQldMainMapper extends BaseMapper<NuInvoicingQldMain> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.nu.modules.qld.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldWlzd;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-物料置顶中间表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface NuInvoicingQldWlzdMapper extends BaseMapper<NuInvoicingQldWlzd> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.qld.mapper.NuInvoicingQldGwcMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.qld.mapper.NuInvoicingQldInfoMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.qld.mapper.NuInvoicingQldLogMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.qld.mapper.NuInvoicingQldMainMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nu.modules.qld.mapper.NuInvoicingQldWlzdMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.nu.modules.qld.service;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldGwc;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-购物车
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface INuInvoicingQldGwcService extends IService<NuInvoicingQldGwc> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.nu.modules.qld.service;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-请领信息表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface INuInvoicingQldInfoService extends IService<NuInvoicingQldInfo> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.nu.modules.qld.service;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldLog;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-操作日志表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface INuInvoicingQldLogService extends IService<NuInvoicingQldLog> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.nu.modules.qld.service;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldMain;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-主表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface INuInvoicingQldMainService extends IService<NuInvoicingQldMain> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.nu.modules.qld.service;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldWlzd;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-物料置顶中间表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface INuInvoicingQldWlzdService extends IService<NuInvoicingQldWlzd> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.nu.modules.qld.service.impl;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldGwc;
|
||||
import com.nu.modules.qld.mapper.NuInvoicingQldGwcMapper;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldGwcService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-购物车
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class NuInvoicingQldGwcServiceImpl extends ServiceImpl<NuInvoicingQldGwcMapper, NuInvoicingQldGwc> implements INuInvoicingQldGwcService {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.nu.modules.qld.service.impl;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldInfo;
|
||||
import com.nu.modules.qld.mapper.NuInvoicingQldInfoMapper;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-请领信息表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class NuInvoicingQldInfoServiceImpl extends ServiceImpl<NuInvoicingQldInfoMapper, NuInvoicingQldInfo> implements INuInvoicingQldInfoService {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.nu.modules.qld.service.impl;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldLog;
|
||||
import com.nu.modules.qld.mapper.NuInvoicingQldLogMapper;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-操作日志表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class NuInvoicingQldLogServiceImpl extends ServiceImpl<NuInvoicingQldLogMapper, NuInvoicingQldLog> implements INuInvoicingQldLogService {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.nu.modules.qld.service.impl;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldMain;
|
||||
import com.nu.modules.qld.mapper.NuInvoicingQldMainMapper;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldMainService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-主表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class NuInvoicingQldMainServiceImpl extends ServiceImpl<NuInvoicingQldMainMapper, NuInvoicingQldMain> implements INuInvoicingQldMainService {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.nu.modules.qld.service.impl;
|
||||
|
||||
import com.nu.modules.qld.entity.NuInvoicingQldWlzd;
|
||||
import com.nu.modules.qld.mapper.NuInvoicingQldWlzdMapper;
|
||||
import com.nu.modules.qld.service.INuInvoicingQldWlzdService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-物料置顶中间表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class NuInvoicingQldWlzdServiceImpl extends ServiceImpl<NuInvoicingQldWlzdMapper, NuInvoicingQldWlzd> implements INuInvoicingQldWlzdService {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.nu.modules.qld.service.impl;
|
||||
|
||||
import com.nu.entity.MaterialCategoryEntity;
|
||||
import com.nu.modules.ConfigMaterial.entity.ConfigMaterialCategory;
|
||||
import com.nu.modules.ConfigMaterial.service.IConfigMaterialCategoryService;
|
||||
import com.nu.modules.invoicing.api.IQinglingApi;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: 进销存-请领单-通用处理
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-11-26
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class QingLingServiceImpl implements IQinglingApi {
|
||||
|
||||
@Autowired
|
||||
private IConfigMaterialCategoryService configMaterialCategoryService;
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> getMaterialTreeData(MaterialCategoryEntity materialCategoryEntity) {
|
||||
ConfigMaterialCategory configMaterialCategory = new ConfigMaterialCategory();
|
||||
BeanUtils.copyProperties(materialCategoryEntity,configMaterialCategory);
|
||||
List<Map<String,Object>> pageList = configMaterialCategoryService.getAllMaterialTreeData(configMaterialCategory);
|
||||
return pageList;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue