羊奶出入库

This commit is contained in:
ll 2025-07-31 23:26:38 +08:00
parent f999f00a6e
commit feffe7f9ff
12 changed files with 7 additions and 12 deletions

View File

@ -46,7 +46,6 @@ public class NpMilkInOutStoreController extends BaseController {
service.batchInsertFromRows(list); service.batchInsertFromRows(list);
return AjaxResult.success("导入成功"); return AjaxResult.success("导入成功");
} }
/** 导出 Excel */ /** 导出 Excel */
@PreAuthorize("@ss.hasPermi('milkInOutStore:export')") @PreAuthorize("@ss.hasPermi('milkInOutStore:export')")
@Log(title="导出羊奶出入库", businessType=BusinessType.EXPORT) @Log(title="导出羊奶出入库", businessType=BusinessType.EXPORT)

View File

@ -38,7 +38,6 @@ public class NpSheepMilkAnalysisController extends BaseController {
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(npSheepMilkAnalysisService.selectNpSheepMilkAnalysisById(id)); return AjaxResult.success(npSheepMilkAnalysisService.selectNpSheepMilkAnalysisById(id));
} }
/** /**
* 新增奶产量分析记录 * 新增奶产量分析记录
*/ */

View File

@ -125,4 +125,4 @@ public class NpMilkInOutStore extends BaseEntity {
public BigDecimal getReturnYogurt() { return returnYogurt; } public BigDecimal getReturnYogurt() { return returnYogurt; }
public void setReturnYogurt(BigDecimal returnYogurt) { this.returnYogurt = returnYogurt; } public void setReturnYogurt(BigDecimal returnYogurt) { this.returnYogurt = returnYogurt; }
} }

View File

@ -1,7 +1,6 @@
package com.zhyc.module.dairyProducts.domain; package com.zhyc.module.dairyProducts.domain;
import java.util.Date; import java.util.Date;
public class NpSheepMilkAnalysis { public class NpSheepMilkAnalysis {
private String sheepId; private String sheepId;
private String manageEarTag; private String manageEarTag;

View File

@ -13,7 +13,6 @@ public interface NpMilkInOutStoreMapper {
@Param("feedSources") List<String> feedSources, @Param("feedSources") List<String> feedSources,
@Param("saleDestinations") List<String> saleDestinations @Param("saleDestinations") List<String> saleDestinations
); );
int insertStore(NpMilkInOutStore store); int insertStore(NpMilkInOutStore store);
void insertFeedRecord(@Param("storeId") Integer storeId, @Param("source") String source, @Param("amount") java.math.BigDecimal amount); void insertFeedRecord(@Param("storeId") Integer storeId, @Param("source") String source, @Param("amount") java.math.BigDecimal amount);
void insertSaleRecord(@Param("storeId") Integer storeId, @Param("destination") String dest, @Param("amount") java.math.BigDecimal amount); void insertSaleRecord(@Param("storeId") Integer storeId, @Param("destination") String dest, @Param("amount") java.math.BigDecimal amount);

View File

@ -16,4 +16,4 @@ public interface NpSheepMilkAnalysisMapper {
int deleteNpSheepMilkAnalysisById(Long id); int deleteNpSheepMilkAnalysisById(Long id);
int deleteNpSheepMilkAnalysisByIds(Long[] ids); int deleteNpSheepMilkAnalysisByIds(Long[] ids);
} }

View File

@ -12,4 +12,4 @@ public interface INpMilkInOutStoreService {
List<Map<String,Object>> getAllColumnOptions(); List<Map<String,Object>> getAllColumnOptions();
List<Map<String,Object>> parseImportExcel(MultipartFile file) throws Exception; List<Map<String,Object>> parseImportExcel(MultipartFile file) throws Exception;
void batchInsertFromRows(List<Map<String,Object>> rows) throws Exception; void batchInsertFromRows(List<Map<String,Object>> rows) throws Exception;
} }

View File

@ -16,4 +16,4 @@ public interface INpSheepMilkAnalysisService {
int deleteNpSheepMilkAnalysisById(Long id); int deleteNpSheepMilkAnalysisById(Long id);
int deleteNpSheepMilkAnalysisByIds(Long[] ids); int deleteNpSheepMilkAnalysisByIds(Long[] ids);
} }

View File

@ -32,7 +32,6 @@ public class NpMilkInOutStoreServiceImpl implements INpMilkInOutStoreService {
m.put("sale", mapper.selectSaleDestinations()); m.put("sale", mapper.selectSaleDestinations());
return Collections.singletonList(m); return Collections.singletonList(m);
} }
@Override @Override
public List<Map<String, Object>> parseImportExcel(MultipartFile file) throws Exception { public List<Map<String, Object>> parseImportExcel(MultipartFile file) throws Exception {
// Apache POI 解析 Excel 第一行标题动态映射列名跟 unit cells // Apache POI 解析 Excel 第一行标题动态映射列名跟 unit cells

View File

@ -43,4 +43,4 @@ public class NpSheepMilkAnalysisServiceImpl implements INpSheepMilkAnalysisServi
public int deleteNpSheepMilkAnalysisByIds(Long[] ids) { public int deleteNpSheepMilkAnalysisByIds(Long[] ids) {
return npSheepMilkAnalysisMapper.deleteNpSheepMilkAnalysisByIds(ids); return npSheepMilkAnalysisMapper.deleteNpSheepMilkAnalysisByIds(ids);
} }
} }

View File

@ -55,4 +55,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{amount}) #{amount})
</insert> </insert>
</mapper> </mapper>

View File

@ -149,4 +149,4 @@
</foreach> </foreach>
</delete> </delete>
</mapper> </mapper>