package com.shlanbao.tzsc.pms.md.mat.service; import java.util.List; import java.util.Map; import com.shlanbao.tzsc.base.mapping.MdMat; import com.shlanbao.tzsc.base.mapping.MdMaterialLk; import com.shlanbao.tzsc.base.mapping.SchWorkorder; import com.shlanbao.tzsc.base.model.DataGrid; import com.shlanbao.tzsc.base.model.PageParams; import com.shlanbao.tzsc.pms.md.mat.beans.MatBean; /** * 物料 * @author Leejean * @create 2014年11月26日下午2:41:09 */ public interface MatServiceI { /** * 获得所有产品(即物料组为产品) * @author Leejean * @create 2014年11月26日下午3:10:31 * @return */ public List queryAllProdMat() throws Exception; /** * 查询所有物料 * @author Leejean * @create 2014年11月26日下午4:23:14 * @return */ public List queryAllMatsForComboBox() throws Exception ; /** * 查询所有物料 * @author Leejean * @create 2014年11月26日下午5:42:08 * @return * @throws Exception */ public DataGrid getAllMats(MatBean matBean,PageParams pageParams) throws Exception; /** * 新增物料 * @author Leejean * @create 2014年11月26日下午4:28:56 * @param MatBean * @throws Exception */ public void addMat(MatBean matBean) throws Exception; /** * 编辑物料 * @author Leejean * @create 2014年11月26日下午4:29:04 * @param MatBean * @throws Exception */ public void editMat(MatBean matBean) throws Exception; /** * 删除物料 * @author Leejean * @create 2014年11月26日下午4:29:12 * @param id * @throws Exception */ public void deleteMat(String id) throws Exception; /** * 工具ID获取物料 * @author Leejean * @create 2014年11月26日下午6:43:13 * @param id * @return * @throws Exception */ public MatBean getMatById(String id) throws Exception; /** * 接口使用。用于匹配数据 * 返回mat 的code 和id 的map * @return */ public Map getAllMatMap(); public Map getAllMatMapFiller(); public Map getAllMatMapJB(); public Map getAllMatMapCx(); public Map getAllSchCalendar(SchWorkorder schWorkorder); public List getMatFiller(); public List getFlFiller(); /** * [说明]:查询物料数据是否存在 * @author wanchanghuang * @create 2019年5月7日10:44:19 * @param mdMat */ public long queryMdMatType(MdMat mdMat); /** * [说明]:查询物料数据是否存在 * @author wanchanghuang * @create 2019年5月7日10:44:19 * @param mdMat */ public void saveMdMat(MdMat mdMat); /** * [说明]:物料锁定-修改 * @author wanchanghuang * @create 2019年5月15日14:03:26 */ public void updateMdMaterail(MdMaterialLk wkorder); /** * [说明]:物料锁定-查询 * @author wanchanghuang * @create 2019年5月15日14:03:26 */ public long queryMdMaterailAll(MdMaterialLk wkorder); /** * [说明]:物料锁定-添加 * @author wanchanghuang * @create 2019年5月15日14:03:26 */ public void addMdMaterail(MdMaterialLk wkorder); /** * 批量删除 * @param ids */ void batchDeleteMat(String ids); List getProdByMonth(String month); }