igds-api-inte/src/main/java/com/ld/igds/sh/service/ApiShServiceImpl1302.java
@@ -117,8 +117,7 @@ dto.setRkdnm(StringUtils.isEmpty(inoutRecord.getNoticeId())?"0":inoutRecord.getNoticeId()); dto.setZznm(inoutRecord.getDepotId().substring(0, 21)); dto.setSxh(inoutRecord.getId().substring(10)); if(InoutConstant.RECORD_STATUS_DEL.equals(inoutRecord.getRecordStatus()) || InoutConstant.RECORD_STATUS_ERROR.equals(inoutRecord.getRecordStatus())){ if(InoutConstant.RECORD_STATUS_DEL.equals(inoutRecord.getRecordStatus())){ dto.setDjzt("4"); //å·²ä½åº }else { dto.setDjzt("2"); //å ¥åºå®æ igds-api-inte/src/main/java/com/ld/igds/sh/service/ApiShServiceImpl1306.java
@@ -116,8 +116,7 @@ dto.setZznm(inoutRecord.getDepotId().substring(0, 21)); dto.setDjbh(inoutRecord.getId()); dto.setSxh(inoutRecord.getId().substring(10)); if(InoutConstant.RECORD_STATUS_DEL.equals(inoutRecord.getRecordStatus()) || InoutConstant.RECORD_STATUS_ERROR.equals(inoutRecord.getRecordStatus())){ if(InoutConstant.RECORD_STATUS_DEL.equals(inoutRecord.getRecordStatus()) ){ dto.setDjzt("4"); //å·²ä½åº }else { dto.setDjzt("2"); //åºåºå®æ igds-api-inte/src/main/java/com/ld/igds/sh/service/impl/HApiShServiceImpl.java
@@ -289,7 +289,6 @@ args.put("companyId", companyId); args.put("progress", InoutConstant.PROGRESS_RECORD); args.put("recordStatus1", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatus2", InoutConstant.RECORD_STATUS_ERROR); if(StringUtils.isNotEmpty(depotId)){ hql += " and depotId =:depotId"; @@ -805,7 +804,6 @@ args.put("companyId", companyId); args.put("progress", InoutConstant.PROGRESS_RECORD); args.put("recordStatus1", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatus2", InoutConstant.RECORD_STATUS_ERROR); if(null != startTime){ hql += " and registerTime >:startTime"; igds-api-phone/src/main/java/com/ld/igds/phone35/service/impl/HPhoneServiceImpl.java
@@ -97,7 +97,6 @@ Map<String, Object> args = new HashMap<String, Object>(); args.put("companyId", param.getCompanyId()); args.put("recordStatus1", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatus2", InoutConstant.RECORD_STATUS_ERROR); if (StringUtils.isNotEmpty(param.getDeptId())) { hql += " and deptId =:deptId"; @@ -147,8 +146,7 @@ Map<String, Object> args = new HashMap<String, Object>(); args.put("recordStatus1", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatus2", InoutConstant.RECORD_STATUS_ERROR); if (StringUtils.isNotEmpty(companyId)) { hql += " and companyId =:companyId"; args.put("companyId", companyId); igds-basic/src/main/java/com/ld/igds/basic/controller/CommonController.java
@@ -9,7 +9,6 @@ import com.ld.igds.data.Page; import com.ld.igds.data.PageResponse; import com.ld.igds.grain.dto.GrainData; import com.ld.igds.inout.dto.InoutParam; import com.ld.igds.models.Depot; import com.ld.igds.models.DicArea; import com.ld.igds.models.DicSysConf; igds-core/src/main/java/com/ld/igds/check/CheckStandardManager.java
@@ -18,71 +18,76 @@ @Component(CheckStandardManager.BEAN_ID) public class CheckStandardManager { public static final String BEAN_ID = "check.checkStandardManager"; public static final String BEAN_ID = "check.checkStandardManager"; @Autowired private CoreCheckStandardService checkStandardService; @Autowired private CoreCheckStandardService checkStandardService; /** * æ ¹æ®åæ°è·ååéªé¡¹å表 * * @param checkId * @param companyId * @param foodVariety * @return */ public List<CheckItemData> listCheckItem(String companyId, String checkId, String foodVariety) { if (StringUtils.isEmpty(companyId)) { companyId = ContextUtil.getCompanyId(); } /** * æ ¹æ®åæ°è·ååéªé¡¹å表 * * @param checkId * @param companyId * @param foodVariety * @return */ public List<CheckItemData> listCheckItem(String checkId, String companyId, String foodVariety) { if (StringUtils.isEmpty(companyId)) { companyId = ContextUtil.getCompanyId(); } List<CheckItemData> list = null; if (null != checkId) list = checkStandardService.getCheckItemById(checkId, companyId); List<CheckItemData> list = checkStandardService.getCheckItemById(checkId, companyId); if (list == null || list.isEmpty()) { list = checkStandardService.getCheckItemByStandard(companyId,checkId, foodVariety); } return list; } if (list == null || list.isEmpty()) { list = checkStandardService.getCheckItemByStandard(checkId, companyId, foodVariety); } return list; } public CheckUpdateResult updateCheckItems(String checkId, String companyId, List<CheckItemData> checkItems) { public CheckUpdateResult updateCheckItems(String checkId, String companyId, List<CheckItemData> checkItems) { CheckUpdateResult result = new CheckUpdateResult(); if (null == checkItems || checkItems.isEmpty()) { return result; } if (StringUtils.isEmpty(companyId)) { companyId = ContextUtil.getCompanyId(); } CheckUpdateResult result = new CheckUpdateResult(); if (null == checkItems || checkItems.isEmpty()) { return result; } if (StringUtils.isEmpty(companyId)) { companyId = ContextUtil.getCompanyId(); } for (CheckItemData item : checkItems) { if (null == item.getCheckId()) { item.setCheckId(checkId); } item.setCompanyId(companyId); if (item.getUpperLimit() == null) { item.setUpperLimit(0.0); } for (CheckItemData item : checkItems) { if (null == item.getCheckId()) { item.setCheckId(checkId); } item.setCompanyId(companyId); if (item.getUpperLimit() == null) { item.setUpperLimit(0.0); } if (null != item.getDeNum() && item.getDeNum() > 0) { result.setDeSum(result.getDeSum() + item.getDeNum()); } if (null != item.getAddNum() && item.getAddNum() > 0) { result.setAddSum(result.getAddSum() + item.getAddNum()); } if (null != item.getAddPrice() && item.getAddPrice() > 0) { result.setAddPriceSum(result.getAddPriceSum() + item.getAddPrice()); } if (null != item.getDePrice() && item.getDePrice() > 0) { result.setDePriceSum(result.getDePriceSum() + item.getDePrice()); } if (null != item.getDeNum() && item.getDeNum() > 0) { result.setDeSum(result.getDeSum() + item.getDeNum()); } if (null != item.getAddNum() && item.getAddNum() > 0) { result.setAddSum(result.getAddSum() + item.getAddNum()); } if (null != item.getAddPrice() && item.getAddPrice() > 0) { result.setAddPriceSum(result.getAddPriceSum() + item.getAddPrice()); } if (null != item.getDePrice() && item.getDePrice() > 0) { result.setDePriceSum(result.getDePriceSum() + item.getDePrice()); } //å æ´æ°ï¼æ´æ°å¤±è´¥åæ°å¢ int i = checkStandardService.updateCheckItem(item); if (i < 1) { checkStandardService.insertCheckItem(item); } } return result; } // å æ´æ°ï¼æ´æ°å¤±è´¥åæ°å¢ int i = checkStandardService.updateCheckItem(item); if (i < 1) { checkStandardService.insertCheckItem(item); } } return result; } } igds-core/src/main/java/com/ld/igds/check/CheckStandardPR.java
@@ -72,36 +72,18 @@ /** * æ ¹æ®checkIdè·åæ£éªé¡¹ä¿¡æ¯ * * checkStandardPR#listCheckItemsByCheckId * checkStandardPR#listCheckItemsByParam * * @param param * @return */ @DataProvider public List<CheckItemData> listCheckItemsByCheckId(Map<String, Object> param) { public List<CheckItemData> listCheckItemsByParam(Map<String, Object> param) { String checkId = (String) param.get("checkId"); String deptId = (String) param.get("deptId"); String foodVariety = (String) param.get("foodVariety"); return checkStandardManager.listCheckItem(checkId, deptId, foodVariety); } /** * æ ¹æ®foodVarietyè·åæ£éªé¡¹ä¿¡æ¯ * * checkStandardPR#listCheckItemsByFoodVariety * * @param param * @return */ @Expose public List<CheckItemData> listCheckItemsByFoodVariety(Map<String, Object> param) { String deptId = (String) param.get("deptId"); String foodVariety = (String) param.get("foodVariety"); return checkStandardManager.listCheckItem(null, null, foodVariety); return checkStandardManager.listCheckItem(ContextUtil.getCompanyId(),checkId, foodVariety); } igds-core/src/main/java/com/ld/igds/check/service/CoreCheckStandardService.java
@@ -2,7 +2,6 @@ import com.ld.igds.check.dto.CheckItemData; import com.ld.igds.check.dto.CheckStandardData; import java.util.List; /** @@ -51,5 +50,5 @@ * * @param checkId */ List<CheckItemData> getCheckItemByStandard(String checkId, String companyId, String foodVariety); List<CheckItemData> getCheckItemByStandard(String companyId,String checkId, String foodVariety); } igds-core/src/main/java/com/ld/igds/check/service/impl/CoreCheckStandardServiceImpl.java
@@ -48,15 +48,18 @@ } @Override public List<CheckItemData> getCheckItemByStandard(String checkId, String companyId, String foodVariety) { public List<CheckItemData> getCheckItemByStandard(String companyId,String checkId,String foodVariety) { List<CheckItemData> result = new ArrayList<>(); if (StringUtils.isEmpty(foodVariety)) { return result; } if (StringUtils.isEmpty(companyId)) { companyId = ContextUtil.getDefaultCompanyId(); } List<CheckStandardData> list = checkStandardMapper.getCheckStandard(companyId, foodVariety); if (null == list) { return result; @@ -65,10 +68,8 @@ CheckItemData item; for (CheckStandardData data : list) { item = new CheckItemData(); BeanUtils.copyProperties(data, item); item.setCheckId(checkId); if (data.getUpperLimit() > 0.0 && StringUtils.isNotEmpty(data.getOperaSymbol())) { item.setOperaSymbolValue(data.getOperaSymbol() + " " + data.getUpperLimit()); } igds-core/src/main/java/com/ld/igds/common/CoreCommonService.java
@@ -219,15 +219,6 @@ List<DefaultCompany> getCompanyList(); /** * åªå¨æ°ä¸è½®åºå ¥åºç¬¬ä¸è½¦è¿è¡åå§åï¼è·åæåä¸ä¸ªåºåè®°å½è¿è¡å¤æï¼å¹¶çæä¸ä¸ªæ°çè®°å½ä»¥ä¾¿è®°å½ç¬¬ä¸è½¦åºå ¥åºä½ä¸æ¶é´ï¼ * <p> * å½åæ¹æ³åªè®°å½åºåºç¬¬ä¸è½¦åå ¥åºç¬¬ä¸è½¦çäºä»¶åå¤æï¼æ»¡ä»å空ä»éè¦äººä¸ºè®°å½ * * @param data */ void initInoutDepotStore(InoutData data); /** * æ ¹æ®ä»åºç¼ç è·åå½åä»åºæå䏿¡è®°å½ * * @param depotId igds-core/src/main/java/com/ld/igds/common/impl/CommonDataServiceImpl.java
@@ -8,8 +8,6 @@ import com.ld.igds.common.mapper.CommonMapper; import com.ld.igds.constant.Constant; import com.ld.igds.constant.RedisConst; import com.ld.igds.inout.InoutConstant; import com.ld.igds.inout.dto.InoutData; import com.ld.igds.models.Depot; import com.ld.igds.models.DepotConf; import com.ld.igds.models.DepotStore; @@ -312,56 +310,6 @@ String key = RedisConst.buildKey(Constant.DEFAULT_PARENT_CODE, "COMPANY_LIST"); return (List<DefaultCompany>) redisUtil.get(key); } @Override public void initInoutDepotStore(InoutData data) { //å ä»ç¼åä¸è·åä¸ä¿¡æ¯ï¼æ¥çæ¯å¦å·²ç»åå§åè¿æ°æ®ï¼å¦ææåç´æ¥è·³è¿ï¼å¦ææ²¡æåéæ°éªè¯ // String key = RedisConst.buildKey(data.getDepotId(), "DEPOT_STORE", depotStatus); // String tag = (String) redisUtil.get(key); // if (null != tag) return; //è·åå½åä»åºæåä¸ä¸ªåºåè®°å½ DepotStore depotStore = getLastDepotStore(data.getDepotId()); //å¦æææ°æ®ï¼å¹¶ä¸ç¶æç±»ä¸è´ï¼è¡¨ç¤ºç¼å没æäºï¼ä½æ¯å·²ç»åè¿åå§å // if (null != depotStore && depotStatus.equals(depotStore.getDepotStatus())) { // redisUtil.set(key, depotStatus, 5 * 24 * 60 * 60); // return; // } //仿¥æ²¡æå个åºå管çè°æ´ // if (null == depotStore) { // Depot depot = this.getCacheDepot(data.getCompanyId(), data.getDepotId()); // depotStore = new DepotStore(depot, depotStatus); // if (null != data.getFoodYear()) { // depotStore.setFoodYear(data.getFoodYear()); // } // // } else { //æè®°å½ï¼ä½æ¯ç¶æä¸å½åä½ä¸ä¸ä¸è´ï¼ä¹éè¦åå§å // depotStore.setDepotStatus(depotStatus); // depotStore.setUpdateDate(new Date()); // depotStore.setUpdateUser(null); // } depotStore.setId(null); if (InoutConstant.TYPE_OUT.equals(data.getType())) { depotStore.setOutDate(new Date()); } else { depotStore.setStoreDate(new Date()); } if (null != data.getFoodYear()) { depotStore.setFoodYear(data.getFoodYear()); } depotStore.setRemark("ç³»ç»çæè®°å½ï¼ç¡®è®¤è°æ´"); addDepotStore(depotStore, false); commonMapper.updateDepotStatus(depotStore.getCompanyId(), depotStore.getDepotId(), depotStore.getDepotStatus()); // redisUtil.set(key, depotStatus, 5 * 24 * 60 * 60); } @Override igds-core/src/main/java/com/ld/igds/common/manager/CommonManager.java
@@ -14,7 +14,6 @@ import com.ld.igds.data.SimpleDepot; import com.ld.igds.grain.dto.GrainData; import com.ld.igds.grain.service.CoreGrainService; import com.ld.igds.inout.dto.InoutParam; import com.ld.igds.models.*; import com.ld.igds.sys.service.DicTriggerService; import com.ld.igds.sys.service.SysDeptService; @@ -26,13 +25,16 @@ import com.ld.igds.warn.data.WarnParam; import com.ld.igds.warn.service.CoreWarnService; import com.ld.igds.weather.CoreWeatherService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import java.util.*; import java.util.stream.Collectors; @@ -63,6 +65,7 @@ private CoreWarnService coreWarnService; @Resource private RedisUtil redisUtil; /** * è·åå ¥åºä½ä¸ä¸ï¼ä»åºä¸ææ¡ï¼å¼è·åç¶æ=éæ»¡ä»çç²®åº igds-core/src/main/java/com/ld/igds/inout/InoutConstant.java
@@ -139,8 +139,7 @@ // æ°æ®ç¶æ-æ£å¸¸ public static final String RECORD_STATUS_NORMAL = "NORMAL"; // æ°æ®ç¶æ-å¼å¸¸ public static final String RECORD_STATUS_ERROR = "ERROR"; // æ°æ®ç¶æ-è¡¥å½ public static final String RECORD_STATUS_ADD = "ADD"; // æ°æ®ç¶æ-å·²å é¤ @@ -165,15 +164,6 @@ // æµç¨-夿¡ï¼è¡¨ç¤ºæµç¨æ´ä½å®æå夿¡ï¼ public static final String PROGRESS_RECORD = "RECORD"; public static final String CHECK_ITEM_C01 = "C01";//æ°´å public static final String CHECK_ITEM_C020101 = "020101";//æ°´å public static final String CHECK_ITEM_C01010301 = "01010301";//æè´¨ public static final String CHECK_ITEM_C02 = "C02";//æè´¨ /** @@ -239,5 +229,4 @@ return ""; } } igds-core/src/main/java/com/ld/igds/sys/DicTriggerPR.java
@@ -3,7 +3,6 @@ import com.bstek.bdf2.core.context.ContextHolder; import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.Expose; import com.bstek.dorado.data.provider.Page; import com.ld.igds.camera.CameraUtil; import com.ld.igds.constant.BizType; import com.ld.igds.constant.Constant; @@ -16,7 +15,6 @@ import org.springframework.transaction.annotation.Transactional; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; igds-core/src/main/java/com/ld/igds/view/service/HDicAreaService.java
@@ -28,7 +28,6 @@ public String saveDicArea(DicArea data) { Session session = this.getSessionFactory().openSession(); try { session.saveOrUpdate(data); } finally { session.flush(); igds-doc/sql/update-v35-to-v40.sql
@@ -45,3 +45,6 @@ UPDATE D_DEPOT_STORE SET DEPOT_STATUS_ = '33' WHERE DEPOT_STATUS_ ='07'; UPDATE D_DEPOT_STORE SET DEPOT_STATUS_ = '34' WHERE DEPOT_STATUS_ ='09'; -- è°æ´åºå ¥åºæ°æ®ç¶æ UPDATE D_INOUT_RECORD SET RECORD_STATUS_ ='DEL' WHERE RECORD_STATUS_='ERROR'; igds-inout/src/main/java/com/ld/igds/inout/manager/InoutManager.java
@@ -25,6 +25,7 @@ import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.time.DateFormatUtils; import org.apache.commons.lang3.time.DateUtils; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; @@ -168,15 +169,6 @@ } } public InoutData inoutProgressQuery(InoutData data) throws Exception { InoutParam param = new InoutParam(); param.setCompanyId(data.getCompanyId()); param.setPlateNum(data.getPlateNum()); param.setIntelCard(data.getIntelCard()); param.setType(data.getType()); return inoutService.inoutProgressQuery(param); } /** * åéªç»æä¸éè¿æ¶æ ¡éªé ç½®ä¿¡æ¯ @@ -301,75 +293,6 @@ data.setCompleteTime(DateUtils.addMinutes(new Date(), 2)); data.setCompleteUser(ContextUtil.getLoginUserCName()); data.setProgress(nextProgress); } return data; } /** * å½åæ¹æ³éè¦å é¤ * <p> * æ ¹æ®éè¦ä¿åçæ°æ®ï¼è°æ´ä¸ä¸ä¸ªæµç¨ç¶æ ä¸åçä»åºç»ç»æµç¨å¯è½ä¸ä¸æ ·ï¼éè¦æ ¹æ®å®é è°æ´ * * @param data * @return */ private InoutData updateBasicInfo(InoutData data, InoutSysConf sysConf) { if (InoutConstant.PROGRESS_REGISTER.equals(data.getProgress())) { data.setRegisterTime(new Date()); data.setRegisterUser(ContextUtil.getLoginUserCName()); data.setProgress(getNextProgress(data.getProgress(), data.getType(), sysConf)); return data; } if (InoutConstant.PROGRESS_CHECK.equals(data.getProgress())) { data.setCheckUser(ContextUtil.getLoginUserCName()); data.setProgress(getNextProgress(data.getProgress(), data.getType(), sysConf)); return data; } if (InoutConstant.PROGRESS_WEIGHT_EMPTY.equals(data.getProgress())) { data.setEmptyWeightTime(new Date()); data.setEmptyWeightUser(ContextUtil.getLoginUserCName()); data.setProgress(getNextProgress(data.getProgress(), data.getType(), sysConf)); return data; } if (InoutConstant.PROGRESS_HANDLE.equals(data.getProgress())) { // æ¥è¯¢ç¼åä¸ä»åºä¿¡æ¯ï¼æ ¹æ®ä»åºid设置å¼ä»äººä¸ºä»åºä¿ç®¡å Depot depot = commonService.getCacheDepot(data.getCompanyId(), data.getDepotId()); data.setHandleUser(depot == null ? "" : depot.getStoreKeeperName()); data.setProgress(getNextProgress(data.getProgress(), data.getType(), sysConf)); return data; } if (InoutConstant.PROGRESS_WEIGHT_FULL.equals(data.getProgress())) { data.setFullWeightTime(new Date()); data.setFullWeightUser(ContextUtil.getLoginUserCName()); data.setProgress(getNextProgress(data.getProgress(), data.getType(), sysConf)); if (InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { data.setCompleteTime(DateUtils.addMinutes(new Date(), 2)); data.setCompleteUser(ContextUtil.getLoginUserCName()); } return data; } if (InoutConstant.PROGRESS_CARD_BACK.equals(data.getProgress())) { data.setCompleteTime(new Date()); data.setCompleteUser(ContextUtil.getLoginUserCName()); data.setProgress(getNextProgress(data.getProgress(), data.getType(), sysConf)); return data; } return data; @@ -530,8 +453,6 @@ // æ·»å è¡¥åæ°æ® String msg = inoutService.insertData(data); // åå§åéªè¯åºå ¥åºåºå commonService.initInoutDepotStore(data); return msg; } @@ -547,9 +468,6 @@ if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { return "ç³»ç»ï¼å·²ç»å é¤çæ°æ®ä¸æ¯æä¿®æ¹ï¼"; } if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { return "ç³»ç»ï¼å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯æä¿®æ¹ï¼"; } // 妿æµç¨æªç»æï¼åªæ´æ°æ°æ® @@ -572,9 +490,6 @@ if (InoutConstant.RECORD_STATUS_DEL.equals(record.getRecordStatus())) { return "ç³»ç»ï¼å·²ç»å é¤çæ°æ®ä¸æ¯æä¿®æ¹ï¼"; } if (InoutConstant.RECORD_STATUS_ERROR.equals(record.getRecordStatus())) { return "ç³»ç»ï¼å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯æä¿®æ¹ï¼"; } // ä¿åæ£æµé¡¹ç® if (InoutConstant.TYPE_IN.equals(data.getType())) { @@ -595,49 +510,6 @@ return null; } /** * å é¤æä½ å 餿°æ®ä¸ºè½¯å é¤ï¼å 餿°æ®åéè¦æ ¹æ®å 餿 åµèå¨åºåçä¿¡æ¯ * * @param data * @param selected æ¯å¦å·²ç»æ¥è¯¢è¿æ°æ® * @return * @throws Exception */ @Transactional public String delInoutData(InoutData data, boolean selected) throws Exception { // é¿å 页é¢ç¼åé¦å è·åæ°æ®åºä¸ææ°çå½åæ°æ®ä¿¡æ¯ InoutParam param = new InoutParam(); param.setCompanyId(data.getCompanyId()); param.setId(data.getId()); param.setMsg(" [" + ContextUtil.getLoginUserCName() + "]æ§è¡å é¤ï¼åå ï¼" + data.getRemarks()); if (!selected) { data = inoutService.inoutQueryById(param); if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { return "å·²ç»å é¤çæ°æ®ï¼ä¸æ¯æéå¤å é¤ï¼"; } if (InoutConstant.RECORD_STATUS_ERROR .equals(data.getRecordStatus())) { return "å½åæ°æ®å·²ç»è¢«æ 记为å¼å¸¸ï¼ä¸æ¯æå é¤ï¼"; } } // æ§è¡å é¤ param.setProgress(InoutConstant.PROGRESS_RECORD); param.setRecordStatus(InoutConstant.RECORD_STATUS_DEL); param.setType(data.getType()); inoutService.deleteData(param); // 妿æµç¨æªç»æï¼ç´æ¥å é¤ï¼ä¸çµæ¯å°èå¨è°æ´ if (!InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { return null; } return null; } /** * å¼å¸¸ç»æ¢æä½ 设置å¼å¸¸ 为äºé¿å 页颿°æ®ç¼åï¼éè¦éæ°è·åææ°æ°æ®å¤æ @@ -646,26 +518,25 @@ * @return * @throws Exception */ @Transactional public String errorInoutData(InoutData data) { public String errorInoutData(InoutData data) throws Exception { InoutParam param = new InoutParam(); param.setCompanyId(data.getCompanyId()); param.setId(data.getId()); param.setMsg(" [" + ContextUtil.getLoginUserCName() + "]æ§è¡å¼å¸¸ç»æ¢ï¼åå ï¼" + data.getRemarks()); param.setMsg(" äº" + DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm") + " 被 " + ContextUtil.getLoginUserCName() + " æ§è¡ç»æ¢ï¼åå ï¼" + data.getRemarks()); data = inoutService.inoutQueryById(param); if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { return "å·²ç»å é¤çæ°æ®ï¼ä¸æ¯æå¼å¸¸å¤çï¼"; } if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { return "䏿¯æéå¤å¼å¸¸å¤çï¼"; } if (InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { return "æµç¨ç»æçæ°æ®ä¸æ¯æå¼å¸¸å¤çï¼"; } if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { return "å½åä¿¡æ¯å·²åå¼å¸¸å¤çï¼ä¸æ¯æé夿§è¡ï¼"; } param.setDeptId(data.getDeptId()); param.setType(data.getType()); return inoutService.inoutStop(param); } @@ -676,27 +547,25 @@ * @return */ public String completeInoutData(InoutData data) throws Exception { if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { return "å·²ç»å é¤çæ°æ®ï¼ä¸æ¯æå®æï¼"; } if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { return "å¼å¸¸ç»æ¢çæ°æ®ï¼ä¸æ¯æå®æï¼"; } if (InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { return "æµç¨å·²å®æçæ°æ®ï¼ä¸æ¯æå®æï¼"; } // 仿°æ¥è¯¢æ°æ® InoutParam param = new InoutParam(); param.setId(data.getId()); param.setCompanyId(data.getCompanyId()); param.setType(data.getType()); InoutData cuData = inoutService.inoutProgressQuery(param); InoutData cuData = inoutService.inoutQueryById(param); if (null == cuData) { return "å½åè½¦è¾æµç¨ç¶æå·²ç»ååï¼è¯·å·æ°é¡µé¢éæ°æä½ï¼"; } if (!cuData.getProgress().equals(data.getProgress())) { return "å½åè½¦è¾æµç¨ç¶æå·²ç»ååï¼è¯·å·æ°é¡µé¢éæ°æä½ï¼"; } if (InoutConstant.RECORD_STATUS_DEL.equals(cuData.getRecordStatus())) { return "å½åä¿¡æ¯å·²ç»è¢«å¼å¸¸ç»æ¢ï¼ä¸æ¯æå½åå¤çï¼"; } if (InoutConstant.PROGRESS_RECORD.equals(cuData.getProgress())) { return "æµç¨å·²å®æçæ°æ®ï¼ä¸æ¯æå®æï¼"; } if (null == data.getCompleteTime()) { @@ -718,10 +587,7 @@ String msg = inoutService.quickComplete(data); if (null == msg) { data.setProgress(InoutConstant.PROGRESS_RECORD); commonService.initInoutDepotStore(data); } return msg; } @@ -1093,8 +959,6 @@ + e.getMessage(), null); } } /** igds-inout/src/main/java/com/ld/igds/inout/service/InoutService.java
@@ -47,7 +47,7 @@ * @return * @throws Exception */ String inoutStop(InoutParam param); String inoutStop(InoutParam param) throws Exception; /** * æ ¹æ®æ°æ®æ·»å ï¼ igds-inout/src/main/java/com/ld/igds/inout/service/JInoutReportService.java
@@ -126,7 +126,6 @@ args.put("typeOver", Constant.LOSS_OVER_OVER); args.put("progress", InoutConstant.PROGRESS_RECORD); args.put("recordStatusDel", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatusError", InoutConstant.RECORD_STATUS_ERROR); args.put("start", DateUtil.getCurZero(start)); args.put("end", DateUtil.getNextZero(end)); @@ -182,7 +181,6 @@ args.put("companyId", ContextUtil.getCompanyId()); args.put("progress", InoutConstant.PROGRESS_RECORD); args.put("recordStatusDel", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatusError", InoutConstant.RECORD_STATUS_ERROR); // è·åè·ç¦»å¼å§æ¶é´ä¹ æè¿çæ°æ®ï¼å½å天ç第äºåé Date date = DateUtil.getCurZero(start); args.put("start", DateUtils.addMinutes(date, 5)); @@ -234,7 +232,6 @@ args.put("companyId", ContextUtil.getCompanyId()); args.put("progress", InoutConstant.PROGRESS_RECORD); args.put("recordStatusDel", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatusError", InoutConstant.RECORD_STATUS_ERROR); args.put("end", DateUtil.getNextZero(end)); log.debug("====æ§è¡SLQ3={}", sql.toString()); @@ -436,7 +433,6 @@ args.put("typeOver", Constant.LOSS_OVER_OVER); args.put("progress", InoutConstant.PROGRESS_RECORD); args.put("recordStatusDel", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatusError", InoutConstant.RECORD_STATUS_ERROR); args.put("start", DateUtil.getCurZero(start)); args.put("end", DateUtil.getNextZero(end)); @@ -488,7 +484,6 @@ args.put("companyId", ContextUtil.getCompanyId()); args.put("progress", InoutConstant.PROGRESS_RECORD); args.put("recordStatusDel", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatusError", InoutConstant.RECORD_STATUS_ERROR); // è·åè·ç¦»å¼å§æ¶é´ä¹ æè¿çæ°æ®ï¼å½å天ç第äºåé Date date = DateUtil.getCurZero(start); args.put("start", DateUtils.addMinutes(date, 5)); @@ -541,7 +536,6 @@ args.put("companyId", ContextUtil.getCompanyId()); args.put("progress", InoutConstant.PROGRESS_RECORD); args.put("recordStatusDel", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatusError", InoutConstant.RECORD_STATUS_ERROR); args.put("end", DateUtil.getNextZero(end)); log.debug("====æ§è¡SLQ3={}", sql.toString()); @@ -709,7 +703,6 @@ Map<String, Object> args = new HashMap<>(); args.put("transType", TransType.TYPE_3.getCode()); args.put("recordStatusDel", InoutConstant.RECORD_STATUS_DEL); args.put("recordStatusError", InoutConstant.RECORD_STATUS_ERROR); args.put("typeNone", InoutConstant.TYPE_NONE); args.put("typeLoss", Constant.LOSS_OVER_LOSS); args.put("typeOver", Constant.LOSS_OVER_OVER); igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java
@@ -15,7 +15,6 @@ import com.ld.igds.inout.mapper.InoutCheckMapper; import com.ld.igds.inout.mapper.InoutRecordMapper; import com.ld.igds.inout.service.InoutService; import com.ld.igds.models.Depot; import com.ld.igds.models.InoutPrice; import com.ld.igds.util.ContextUtil; import com.ld.igds.util.DateUtil; @@ -57,8 +56,6 @@ if (null != result) { return result; } List<InoutData> list = inoutMapper.inoutProgressQuery(param); if (null == list || list.size() == 0) return null; @@ -106,16 +103,18 @@ } @Override public String inoutStop(InoutParam param) { public String inoutStop(InoutParam param) throws Exception { if (StringUtils.isEmpty(param.getCompanyId())) { param.setCompanyId(ContextUtil.getCompanyId()); param.setCompanyId(ContextUtil.getDefaultCompanyId()); } param.setProgress(InoutConstant.PROGRESS_RECORD); param.setRecordStatus(InoutConstant.RECORD_STATUS_DEL); // ç¼åä¸å é¤ delFromCache(param.getDeptId(), param.getType(), param.getId()); param.setProgress(InoutConstant.PROGRESS_RECORD); param.setRecordStatus(InoutConstant.RECORD_STATUS_ERROR); inoutMapper.inoutStop(param); @@ -299,7 +298,7 @@ @Override public String quickComplete(InoutData data) throws Exception { if (null == data.getCompanyId()) { data.setCompanyId(ContextUtil.getCompanyId()); data.setCompanyId(ContextUtil.getDefaultCompanyId()); } if (null == data.getCompleteTime()) { data.setCompleteTime(new Date()); @@ -310,7 +309,6 @@ if (null == data.getEmptyWeightTime()) { data.setEmptyWeightTime(new Date()); } //è°æ´æ¶é´å·® if (InoutConstant.TYPE_IN.equals(data.getType())) { @@ -339,15 +337,10 @@ // 设置æµç¨ç»æ data.setProgress(InoutConstant.PROGRESS_RECORD); if (null == data.getFoodType()) { // æ ¹æ®ä»åºä¿¡æ¯è·åç¼å Depot depot = commonService.getCacheDepot(data.getCompanyId(), data.getDepotId()); data.setFoodType(depot.getFoodType()); } //æ§è¡æ´æ° inoutMapper.updateData(data); //æ´æ°ç¼å updateInoutCache(data); return null; @@ -368,8 +361,6 @@ } else { setInoutCache(data.getDeptId(), data); } } igds-inout/src/main/java/com/ld/igds/inout/view/InoutDataPR.java
@@ -73,14 +73,6 @@ } /** * å 餿°æ® inoutDataPR#delInoutData */ @DataResolver public String delInoutData(InoutData data) throws Exception { return inoutManager.delInoutData(data, false); } /** * inoutDataPR#errorInoutData åºå ¥åºæ°æ®æ§è¡ å¼å¸¸ç»æ¢ * * @param data @@ -88,6 +80,7 @@ * @throws Exception */ @DataResolver @Transactional public String errorInoutData(InoutData data) throws Exception { return inoutManager.errorInoutData(data); } @@ -119,9 +112,6 @@ if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { return "å é¤çæ°æ®ä¸æ¯ææå°ï¼"; } if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { return "å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯ææå°ï¼"; } if (!InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { return "æªå®æçæ°æ®ä¸æ¯ææå°ï¼"; } @@ -145,9 +135,6 @@ if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { return null; } if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { return null; } if (!InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { return null; } @@ -166,9 +153,6 @@ public String printCheckBill(InoutData data) throws Exception { if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { return "å é¤çæ°æ®ä¸æ¯ææå°ï¼"; } if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { return "å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯ææå°ï¼"; } return inoutReportManager.inCheckBill(data); } igds-inout/src/main/java/com/ld/igds/inout/view/InoutList-bak20111110.view.xml
ÎļþÒÑɾ³ý igds-inout/src/main/java/com/ld/igds/inout/view/InoutList.js
@@ -23,16 +23,9 @@ printCheck = function(){ var data = view.get("#dataGridMain.currentEntity"); if(!data) return; if("OUT" == data.get("type")){ $alert("åºåºæ°æ®ä¸æ¯ææå°ï¼"); return; } if("DEL" == data.get("recordStatus")){ $alert("å é¤çæ°æ®ä¸æ¯ææå°ï¼"); return; } if("ERROR" == data.get("recordStatus")){ $alert("å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯ææå°ï¼"); $alert("å¼å¸¸å¤ççä¿¡æ¯ä¸æ¯ææå°ï¼"); return; } view.get("#ajaxPrintCheck").set("parameter",data).execute(function(result){ @@ -40,52 +33,13 @@ }); }; /** * æ¹éæå°ï¼å¤é */ printBatchCheck = function(){ var datas = view.get("#dataGridMain").get("selection"); if(datas){ if(datas.length <= 0){ $alert("å°æªéæ©æ°æ®ï¼"); return; } var LODOP = CLODOP; LODOP.PRINT_INIT("ç§°éå"); LODOP.SET_PRINT_PAGESIZE(1,2100,1400, "A4"); datas.each(function(data){ //console.log(data); if("DEL" == data.get("recordStatus")){ $notify("å é¤çæ°æ®ä¸æ¯ææå°ï¼"); return true; } if("ERROR" == data.get("recordStatus")){ $notify("å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯ææå°ï¼"); return true; } view.get("#ajaxPrintCheck").set("parameter",data).execute(function(result){ LODOP.NewPage(); LODOP.ADD_PRINT_HTM(0, 0, "100%","100%", result); }); }); $notify("å¼å§è°ç¨æå°æºç¨åºï¼"); LODOP.PREVIEW(); }else{ $alert("请å¾éæ°æ®ï¼"); } }; //æå°ç§°éå //æå°è¿ç£ å printWeight = function(){ var data = view.get("#dataGridMain.currentEntity"); if(!data) return; if("DEL" == data.get("recordStatus")){ $alert("å é¤çæ°æ®ä¸æ¯ææå°ï¼"); return; } if("ERROR" == data.get("recordStatus")){ $alert("å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯ææå°ï¼"); $alert("å¼å¸¸å¤ççä¿¡æ¯ä¸æ¯ææå°ï¼"); return; } if("RECORD" != data.get("progress")){ @@ -106,12 +60,7 @@ printShipWeight = function(){ var data = view.get("#dataGridMain.currentEntity"); if(!data) return; if("DEL" == data.get("recordStatus")){ $alert("å é¤çæ°æ®ä¸æ¯ææå°ï¼"); return; } if("ERROR" == data.get("recordStatus")){ $alert("å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯ææå°ï¼"); return; } @@ -133,54 +82,6 @@ $notify("å¼å§è°ç¨æå°æºç¨åºï¼"); LODOP.PREVIEW(); }; /** * æ¹éæå°ï¼å¤é */ printBatchWeight = function(){ var datas = view.get("#dataGridMain").get("selection"); if(datas){ if(datas.length <= 0){ $alert("å°æªéæ©æ°æ®ï¼"); return; } var LODOP = CLODOP; LODOP.PRINT_INIT("ç§°éå"); var companyId = datas[0].get("companyId"); if(companyId && companyId == "5016"){ //大湾åºå®å¶ LODOP.SET_PRINT_PAGESIZE(1,1050,1400, ""); }else { LODOP.SET_PRINT_PAGESIZE(1,2100,1400, "A4"); } datas.each(function(data){ //console.log(data); if("DEL" == data.get("recordStatus")){ $notify("å é¤çæ°æ®ä¸æ¯ææå°ï¼"); return true; } if("ERROR" == data.get("recordStatus")){ $notify("å¼å¸¸ç»æ¢çæ°æ®ä¸æ¯ææå°ï¼"); return true; } if("RECORD" != data.get("progress")){ $notify("æµç¨æªå®æä¸æ¯ææå°ï¼"); return true; } view.get("#ajaxPrint").set("parameter",data).execute(function(result){ //console.log(result); LODOP.NewPage(); LODOP.ADD_PRINT_HTM(0, 0, "100%","100%", result); }); }); $notify("å¼å§è°ç¨æå°æºç¨åºï¼"); LODOP.PREVIEW(); }else{ $alert("请å¾éæ°æ®ï¼"); } }; //æå°ç»ç®å printPay = function(){ igds-inout/src/main/java/com/ld/igds/inout/view/InoutList.view.xml
@@ -4,26 +4,14 @@ <Context/> <Model> <DataType name="dtMain" parent="dtInoutRecord"> <ClientEvent name="onDataChange">if(arg.property =="depotId"){
 autoByDepot(arg.newValue);
 }
 if(arg.property =="foodVariety"){
 checkByFood(arg.newValue);
 }</ClientEvent> <PropertyDef name="price"> <Property name="dataType">Double</Property> <Property name="label">ç²®é£å®ä»·</Property> <Property name="required">false</Property> </PropertyDef> <Reference name="checkItems"> <Property name="parameter"> <Entity> <Property name="checkId">$${this.checkId}</Property> <Property name="foodVariety">$${this.foodVariety}</Property> <Property name="deptId">$${this.deptId}</Property> </Entity> </Property> <Property name="dataProvider">checkStandardPR#listCheckItemsByCheckId</Property> <Property name="dataProvider">checkStandardPR#listCheckItemsByParam</Property> <Property name="dataType">[dtCheckItems]</Property> </Reference> </DataType> @@ -118,9 +106,6 @@ </DataType> <DataType name="dtCheckItems"> <Property name="creationType">com.ld.igds.check.dto.CheckItemData</Property> <PropertyDef name="updateTime"> <Property name="dataType">Date</Property> </PropertyDef> <PropertyDef name="checkId"> <Property></Property> <Property name="label">æ£æµç¼ç </Property> @@ -165,17 +150,9 @@ <Property name="dataType">Double</Property> <Property name="label">å¢é%</Property> </PropertyDef> <PropertyDef name="ruleAddEnd"> <Property name="dataType">Double</Property> <Property name="label">å¢éä¸é%</Property> </PropertyDef> <PropertyDef name="ruleReduce"> <Property name="dataType">Double</Property> <Property name="label">æ£éå¼%</Property> </PropertyDef> <PropertyDef name="standardPrice"> <Property name="dataType">Double</Property> <Property name="label">æ ååä»·ï¼å /æ¤ï¼</Property> </PropertyDef> <PropertyDef name="rulePrice"> <Property name="dataType">Double</Property> @@ -189,12 +166,34 @@ <Property></Property> <Property name="label">è¿ç®ç¬¦å·</Property> </PropertyDef> <PropertyDef name="addNum"> <Property name="dataType">Double</Property> <Property name="label">å¢é</Property> </PropertyDef> <PropertyDef name="deNum"> <Property name="dataType">Double</Property> <Property name="label">æ£é</Property> </PropertyDef> <PropertyDef name="addPrice"> <Property name="dataType">Double</Property> <Property name="label">å¢ä»·</Property> </PropertyDef> <PropertyDef name="dePrice"> <Property name="dataType">Double</Property> <Property name="label">æ£ä»·</Property> </PropertyDef> <PropertyDef name="result"> <Property/> <Property name="label">æ£éªç»æ</Property> </PropertyDef> <PropertyDef name="operaSymbolValue"> <Property/> </PropertyDef> </DataType> </Model> <View layout="padding:5;regionPadding:5"> <ClientEvent name="onReady">var TYPE = "${request.getParameter('type')}";
 var EDIT = "${request.getParameter('edit')}";
 
 var deptId = window.parent.DEPT_ID;//ç¶é¡µé¢ä¸çååºç¼ç 
 
 //妿editæå¼è¡¨ç¤ºéèADDåç¼è¾æé®
 @@ -202,15 +201,6 @@ view.get("#btnEdit").set("visible",false);
 view.get("#btnDel").set("visible",false);
 view.get("#btn2End").set("visible",false);
 }
 
 //ç±»å忢
 if("OUT" == TYPE){
 view.get("#dataGridCheckItem").set("visible",false);
 view.get("#deWet").set("label","æ°´åå¢é");
 }else{
 view.get("#deWet").set("label","æ°´åæ£é");
 view.get("#dataGridCheckItem").set("visible",true);
 }
 
 //é»è®¤æ¥è¯¢æ¥è¯¢ææ¡ä»¶
 @@ -256,28 +246,6 @@ view.get("#textAbnormal").set("value",null);
 };
 
 //å é¤
 del = function(){
 var data = view.get("#dataGridMain.currentEntity");
 if(!data) return;
 
 var textDel = view.get("#textAbnormal.text");
 if(!textDel){
 $notify("请填åå¼å¸¸å é¤åå ï¼");
 return;
 }
 data.set("remarks",textDel);
 view.get("#ajaxDel").execute(function(result){
 if(result){
 $alert(result);
 return;
 }else{
 data.remove();
 view.get("#dialogAbnormal").close();
 }
 });
 };
 
 //追踪
 showImg = function(){
 var data = view.get("#dataGridMain.currentEntity");
 @@ -289,6 +257,7 @@ view.get("#dialogImg").show();
 };
 
 //å¼å¸¸æ§è¡
 todoError = function(){
 var data = view.get("#dataGridMain.currentEntity");
 if(!data) return;
 @@ -304,8 +273,8 @@ $alert(result);
 return;
 }else{
 data.remove();
 view.get("#dialogAbnormal").close();
 query();
 $alert("æ§è¡æåï¼èªå¨å·æ°æ°æ®ï¼");
 }
 });
 @@ -324,6 +293,7 @@ view.get("#btnOK").set("visible",false);
 view.get("#dialogMain").show();
 };
 
 //æµç¨å®æ-æ§è¡
 completeExe = function(){
 var data = view.get("#dataGridMain.currentEntity");
 @@ -346,29 +316,21 @@ });
 };
 
 //æ ¹æ®ä»åºèªå¨åå¡«ç²®é£åç§ï¼ç»è®°ï¼äº§å°æ°
 autoByDepot = function(depotId){
 view.get("#ajaxGetDepot").set("parameter",depotId).execute(function(result){
 if(result){
 var data = view.get("#dataGridMain.currentEntity");
 data.set("foodLocation",result.foodLocation);
 data.set("foodLevel",result.foodLevel);
 data.set("foodVariety",result.foodVariety);
 data.set("foodYear",result.foodYear);
 }
 });
 };
 
 //æ ¹æ®ç²®é£åç§æ¥è¯¢åéªé¡¹å¹¶åæ¾
 checkByFood = function(foodVariety){
 if(TYPE == "IN"){
 view.get("#ajaxGetCheck").set("parameter",{foodVariety:foodVariety,deptId:deptId}).execute(function(result){
 if(result){
 var data = view.get("#dsMain.data:#");
 data.set("checkItems",result);
 }
 });
 }
 //æ ¹æ®ç²®é£åç§è·åç³»ç»é ç½®æ£æµé¡¹ç®
 flushCheckList = function(){
 var data = view.get("#dataGridMain.currentEntity");
 if (!data.get("foodVariety")) {
 $alert("没æé 置粮é£åç§ï¼æ æ³è·åè´¨æ£é¡¹ï¼");
 return;
 }
 view.get("#ajaxGetCheck").set("parameter",{checkId:data.get("checkId"),foodVariety:data.get("foodVariety")}).execute(function(result){
 if(result){
 data.set("checkItems",result);
 }else{
 $alert("å½åç²®é£åç§æªé 置质æ£é¡¹ï¼è¯·è系管çå");
 }
 });
 };
 </ClientEvent> <ClientEvent name="onCreate">
 @@ -405,34 +367,13 @@ //æ±æ»ç»æ
 var deSum = 0, addSum = 0, settleWeight = 0, recordWeight = 0;
 //æ£æ°´æ
 var deWet = curData.get("deWet"), deImpurity = curData.get("deImpurity");
 var deWet = 0;
 
 var impurity = curData.get("impurity"), wet = curData.get("wet");
 var impurity = 0;
 
 
 var deBase = 0, multiple = 0;
 var checkItems = curData.get("checkItems");
 //æ°´åæè´¨ï¼æ´æ¹æ¯ä¾å¹¶ä¸æ°´åæ£éè¿æ²¡è®¡ç®æ åµä¸
 if ("wet" == name) {
 var checkItem = this.getCheckItem(checkItems,"C01", "C020101");
 if (checkItem) {
 deBase = Number(wet) - Number(checkItem.get("upperLimit"));
 if (deBase == 0) return;
 multiple = parseInt(deBase / checkItem.get("ruleNum"));//åæ°
 deWet = (netWeight * multiple * checkItem.get("ruleReduce") / 100.00).toFixed(0);
 }
 }
 
 //æè´¨
 if ("impurity" == name) {
 checkItem = this.getCheckItem(recordData.checkItems, "C02","C01010301");
 if (checkItem) {
 deBase = Number(impurity) - Number(checkItem.get("upperLimit"));
 if (deBase == 0) return;
 multiple = parseInt(deBase / checkItem.get("ruleNum"));
 deImpurity = (netWeight * multiple * checkItem.get("ruleReduce") / 100.00).toFixed(0);
 }
 }
 
 /** æ»æ£éï¼ä¸å«å¢é*/
 deSum = Number(curData.get("deOther")) + Number(curData.get("deHandle"));
 @@ -473,16 +414,10 @@ /** ç»ç®éé = åé - æ»æ£é + å¢é */
 settleWeight = Number(netWeight) - Number(deSum) + Number(addSum);
 
 curData.set("impurity",impurity);
 curData.set("wet",wet);
 curData.set("deImpurity",deImpurity);
 curData.set("deWet",deWet);
 curData.set("deSum",deSum);
 curData.set("netWeight",netWeight);
 curData.set("settleWeight",settleWeight);
 curData.set("recordWeight",recordWeight);
 };
 
 
 /**
 * æ ¹æ®åéªé¡¹åä¼ éè¿æ¥çåæ°è·åå½ååæ°çé 置信æ¯
 @@ -666,7 +601,6 @@ </DataColumn> <DataColumn> <Property name="property">customerName</Property> <Property name="width">250</Property> <Property name="name">customerName</Property> <Property name="align">center</Property> <Property name="caption">客æ·åç§°</Property> @@ -687,40 +621,27 @@ <Property name="property">fullWeight</Property> <Property name="caption">æ¯é</Property> <Property name="align">center</Property> <Property name="width">100</Property> <Property name="width">120</Property> </DataColumn> <DataColumn name="emptyWeight"> <Property name="property">emptyWeight</Property> <Property name="caption">ç®é</Property> <Property name="align">center</Property> <Property name="width">100</Property> </DataColumn> <DataColumn name="netWeight"> <Property name="property">netWeight</Property> <Property name="align">center</Property> <Property name="caption">åé</Property> <Property name="width">100</Property> </DataColumn> <DataColumn id="columnDeSum"> <Property name="property">deSum</Property> <Property name="width">100</Property> <Property name="caption">æ»æ£é</Property> <Property name="align">center</Property> <Property name="name">deSum</Property> <Property name="width">120</Property> </DataColumn> <DataColumn name="settleWeight"> <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 arg.processDefault = true;</ClientEvent> <Property name="property">settleWeight</Property> <Property name="align">center</Property> <Property name="width">100</Property> <Property name="width">120</Property> </DataColumn> <DataColumn> <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 arg.processDefault = true;</ClientEvent> <Property name="property">recordWeight</Property> <Property name="align">center</Property> <Property name="width">100</Property> <Property name="width">120</Property> <Property name="visible">true</Property> <Property name="name">recordWeight</Property> </DataColumn> @@ -744,13 +665,13 @@ </DataColumn> </DataGrid> </Container> <Container layoutConstraint="bottom"> <Property name="exClassName">bg-color</Property> <DataPilot layoutConstraint="right"> <ToolBar layoutConstraint="bottom"> <Fill/> <DataPilot> <Property name="itemCodes">pageSize,pages</Property> <Property name="dataSet">dsMain</Property> </DataPilot> </Container> </ToolBar> <Dialog id="dialogMain"> <Property name="closeable">false</Property> <Property name="caption">表åä¿¡æ¯</Property> @@ -784,30 +705,25 @@ <Property name="hideMode">display</Property> <Property name="visible">false</Property> </Button> <Button id="btnAddCheck"> <ClientEvent name="onClick">var data = view.get("#dataGridMain.currentEntity");
 var list = data.get("checkItems");
 
 list.insert({});
 console.log(list);
 </ClientEvent> <Property name="caption">æ°å¢åéªé¡¹</Property> <Property name="iconClass">fa fa-plus</Property> <Property name="hideMode">display</Property> <Property name="visible">true</Property> </Button> <Button> <ClientEvent name="onClick">cancelMain();</ClientEvent> <Property name="caption">åæ¶æä½</Property> <Property name="iconClass">fa fa-times</Property> </Button> <Button id="btnFlushCheck" layoutConstraint="left"> <ClientEvent name="onClick">flushCheckList();</ClientEvent> <Property name="caption">è·åè´¨æ£é¡¹</Property> <Property name="exClassName">btn-default</Property> <Property name="iconClass">fa fa-gavel</Property> <Property name="visible">false</Property> </Button> </Buttons> <Children> <TabControl> <ClientEvent name="onTabChange">if(arg.newTab.get("name") == "tabCheck"){
 view.get("#btnAddCheck").set("visible",true);
 view.get("#btnFlushCheck").set("visible",true);
 }else{
 view.get("#btnAddCheck").set("visible",false);
 view.get("#btnFlushCheck").set("visible",false);
 }</ClientEvent> <ControlTab> <Property name="caption">åºç¡ä¿¡æ¯</Property> @@ -889,26 +805,6 @@ <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">specType</Property> <Property name="property">specType</Property> <Editor> <RadioGroup> <RadioButton> <Property name="text">æ£ç²®</Property> <Property name="value">æ£ç²®</Property> </RadioButton> <RadioButton> <Property name="text">25kg</Property> <Property name="value">25kg</Property> </RadioButton> <RadioButton> <Property name="text">50kg</Property> <Property name="value">50kg</Property> </RadioButton> </RadioGroup> </Editor> </AutoFormElement> <AutoFormElement> <Property name="name">foodLevel</Property> <Property name="property">foodLevel</Property> <Editor/> @@ -939,7 +835,7 @@ <Children> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*,*,*,*,*</Property> <Property name="cols">*,50,*,50,*,50</Property> <Property name="labelAlign">right</Property> <Property name="labelWidth">100</Property> <Property name="labelSeparator">ï¼</Property> @@ -953,6 +849,17 @@ <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">emptyWeightTime</Property> <Property name="property">emptyWeightTime</Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">fullWeightUser</Property> <Property name="property">fullWeightUser</Property> <Property name="label">ç§°é人</Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <ClientEvent name="onBlur">//id è§å d_prop
 var id = self.getDom().id;
 var prop = id.substring(2,id.length);
 @@ -963,50 +870,14 @@ <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">netWeight</Property> <Property name="property">netWeight</Property> <Property name="readOnly">true</Property> <Property name="name">fullWeightTime</Property> <Property name="property">fullWeightTime</Property> <Editor/> </AutoFormElement> <AutoFormElement> <ClientEvent name="onBlur">//id è§å d_prop
 var id = self.getDom().id;
 var prop = id.substring(2,id.length);
 deAutoByWeight(prop);</ClientEvent> <Property name="name">deImpurity</Property> <Property name="property">deImpurity</Property> <Property name="showHint">false</Property> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">completeTime</Property> <Property name="property">completeTime</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">impurity</Property> <Property name="property">impurity</Property> <Property name="showLabel">false</Property> <Editor> <TextEditor> <Property name="blankText"> -- % --</Property> </TextEditor> </Editor> </AutoFormElement> <AutoFormElement id="deWet"> <ClientEvent name="onBlur">//id è§å d_prop
 var id = self.getDom().id;
 var prop = id.substring(2,id.length);
 deAutoByWeight(prop);</ClientEvent> <Property name="name">deWet</Property> <Property name="property">deWet</Property> <Property name="showHint">false</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wet</Property> <Property name="property">wet</Property> <Property name="showLabel">false</Property> <Editor> <TextEditor> <Property name="blankText"> -- % --</Property> </TextEditor> </Editor> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <ClientEvent name="onBlur">//id è§å d_prop
 @@ -1015,6 +886,7 @@ deAutoByWeight(prop);</ClientEvent> <Property name="name">deHandle</Property> <Property name="property">deHandle</Property> <Property name="label">ç°åºæ£é</Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> @@ -1027,8 +899,31 @@ <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">deSum</Property> <Property name="property">deSum</Property> <Property name="name">deOtherInfo</Property> <Property name="property">deOtherInfo</Property> <Property name="label">å ¶ä»åå </Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">deCheck</Property> <Property name="property">deCheck</Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">addCheck</Property> <Property name="property">addCheck</Property> <Editor/> </AutoFormElement> <Label layoutConstraint="colSpan:2"> <Property name="style"> <Property name="color">blue</Property> <Property name="padding-left">80px</Property> </Property> <Property name="text">说æï¼è´¨æ£å¢æ£é请æ¥çè´¨æ£ä¿¡æ¯æ ä½è¯¦ç»</Property> </Label> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">netWeight</Property> <Property name="property">netWeight</Property> <Property name="readOnly">true</Property> <Editor/> </AutoFormElement> @@ -1039,51 +934,88 @@ <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">fullWeightTime</Property> <Property name="property">fullWeightTime</Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">emptyWeightTime</Property> <Property name="property">emptyWeightTime</Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">recordWeight</Property> <Property name="property">recordWeight</Property> <Property name="readOnly">true</Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">completeTime</Property> <Property name="property">completeTime</Property> <Editor/> </AutoFormElement> <Label layoutConstraint="colSpan:4"> <Property name="style"> <Property name="color">blue</Property> <Property name="padding-left">80px</Property> </Property> <Property name="text">说æï¼ç»ç®éé=åé-æ£é+å¢éï¼å ¥åºéé=åé-æ£éï¼æ£æ°´æï¼æ£æ°=æ£éï¼è´æ°=å¢é</Property> </Label> </AutoForm> </Children> </FieldSet> <FieldSet layout="regionPadding:5" layoutConstraint="padding:10"> <Property name="caption">夿³¨è¯´æ</Property> <Property name="caption">å ¶ä»éè¦è¡¥å ä¿¡æ¯</Property> <Buttons/> <Children> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*</Property> <Property name="cols">*,*,*</Property> <Property name="labelAlign">right</Property> <Property name="labelSeparator">ï¼</Property> <Property name="labelWidth">100</Property> <AutoFormElement layoutConstraint="colSpan:2"> <AutoFormElement> <Property name="name">jjlx</Property> <Property name="property">jjlx</Property> <Editor> <RadioGroup> <RadioButton> <Property name="text">ç§°éå ¥åº</Property> <Property name="value">0</Property> </RadioButton> <RadioButton> <Property name="value">1</Property> <Property name="text">æ åå å ¥åº</Property> </RadioButton> </RadioGroup> </Editor> </AutoFormElement> <AutoFormElement> <Property name="name">bzw</Property> <Property name="property">bzw</Property> <Editor> <RadioGroup> <RadioButton> <Property name="text">麻è¢</Property> <Property name="value">1</Property> </RadioButton> <RadioButton> <Property name="text">ç¼ç»è¢</Property> <Property name="value">2</Property> </RadioButton> <RadioButton> <Property name="text">æ£è£ </Property> <Property name="value">3</Property> </RadioButton> <RadioButton> <Property name="value">9</Property> <Property name="text">å ¶ä»</Property> </RadioButton> </RadioGroup> </Editor> </AutoFormElement> <AutoFormElement> <Property name="name">dbz</Property> <Property name="property">dbz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bzbjs</Property> <Property name="property">bzbjs</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dePackage</Property> <Property name="property">dePackage</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">price</Property> <Property name="property">price</Property> <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:3"> <Property name="name">remarks</Property> <Property name="property">remarks</Property> <Property name="editorType">TextArea</Property> <Property name="showLabel">false</Property> <Editor/> </AutoFormElement> </AutoForm> @@ -1092,14 +1024,14 @@ </Container> </ControlTab> <ControlTab id="tabCheck"> <Property name="caption">æ¦æ ·åéª</Property> <Property name="caption">è´¨æ£ä¿¡æ¯</Property> <Property name="iconClass">fa fa-gavel</Property> <Property name="width">150</Property> <Property name="name">tabCheck</Property> <Container layout="padding:10"> <AutoForm> <Property name="dataSet">dsMain</Property> <Property name="cols">*,*,*,*</Property> <Property name="cols">*,*,*</Property> <Property name="labelAlign">right</Property> <Property name="labelWidth">100</Property> <Property name="labelSeparator">ï¼</Property> @@ -1140,19 +1072,14 @@ <Property name="label">åéªç»æ</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">checkTime</Property> <Property name="property">checkTime</Property> <Property name="label">è´¨æ£æ¶é´</Property> <Editor/> </AutoFormElement> </AutoForm> <DataGrid id="dataGridCheckItem" layoutConstraint="padding:10"> <ClientEvent name="onCellValueEdit">//å®ç°åéªé¡¹ç®è°æ´ï¼æ´æ°ä¸»è¡¨ä¸å¼
 var entity = arg.entity;
 var inoutData = view.get("#dsMain.data:#");
 
 if(entity.get("standardId") =="C01"){//æ°´å
 inoutData.set("wet",entity.get("value"));
 }
 
 if(entity.get("standardId") =="C02"){//éå¿
 inoutData.set("impurity",entity.get("value"));
 }</ClientEvent> <Property name="dataSet">dsMain</Property> <Property name="dataPath">#.checkItems</Property> <Property name="highlightCurrentRow">false</Property> @@ -1210,12 +1137,6 @@ <Property name="closeable">false</Property> <Buttons> <Button> <ClientEvent name="onClick">del();</ClientEvent> <Property name="caption">ç¡®å®å é¤</Property> <Property name="iconClass">fa fa-check</Property> <Property name="exClassName">btn-warn</Property> </Button> <Button> <ClientEvent name="onClick">todoError();</ClientEvent> <Property name="caption">å¼å¸¸ç»æ¢</Property> <Property name="iconClass">fa fa-check</Property> @@ -1258,15 +1179,6 @@ <Property name="validateData">false</Property> </UpdateItem> </UpdateAction> <UpdateAction id="ajaxDel"> <Property name="dataResolver">inoutDataPR#delInoutData</Property> <Property name="confirmMessage">ç¡®å®è¦æ§è¡å é¤ä¹ï¼</Property> <UpdateItem> <Property name="dataSet">dsMain</Property> <Property name="dataPath">[#current]</Property> <Property name="validateData">false</Property> </UpdateItem> </UpdateAction> <UpdateAction id="ajaxError"> <Property name="dataResolver">inoutDataPR#errorInoutData</Property> <UpdateItem> @@ -1298,14 +1210,8 @@ <Property name="executingMessage">æ£å¨æ§è¡æå°â¦â¦</Property> <Property name="async">false</Property> </AjaxAction> <AjaxAction id="ajaxInitAdd"> <Property name="service">inoutDataPR#initAddData</Property> </AjaxAction> <AjaxAction id="ajaxGetDepot"> <Property name="service">depotPR#getDepot</Property> </AjaxAction> <AjaxAction id="ajaxGetCheck"> <Property name="service">checkStandardPR#listCheckItemsByFoodVariety</Property> <Property name="service">checkStandardPR#listCheckItemsByParam</Property> </AjaxAction> <Export2ReportAction id="exportExcel"> <Property name="extension">xls</Property> @@ -1474,24 +1380,12 @@ </MenuItem> <MenuItem> <ClientEvent name="onClick">printCheck();</ClientEvent> <Property name="caption">æå°æ£éªå</Property> <Property name="caption">æå°è´¨æ£å</Property> <Property name="iconClass">fa fa-print</Property> </MenuItem> <MenuItem> <ClientEvent name="onClick">printPay();</ClientEvent> <Property name="caption">æå°ç»ç®å</Property> <Property name="iconClass">fa fa-print</Property> <Property name="disabled">true</Property> </MenuItem> <Separator/> <MenuItem> <ClientEvent name="onClick">printBatchWeight();</ClientEvent> <Property name="caption">æ¹éè¿ç£ å</Property> <Property name="iconClass">fa fa-print</Property> </MenuItem> <MenuItem> <ClientEvent name="onClick">printBatchCheck();</ClientEvent> <Property name="caption">æ¹éåéªå</Property> <Property name="iconClass">fa fa-print</Property> </MenuItem> <MenuItem> igds-inout/src/main/java/com/ld/igds/inout/view/InoutSettlePR.java
@@ -19,7 +19,6 @@ import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.Expose; import com.bstek.dorado.data.provider.Page; import com.ld.igds.inout.InoutConstant; import com.ld.igds.inout.service.HInoutSettleService; import com.ld.igds.models.InoutSettle; igds-inout/src/main/java/com/ld/igds/m/service/JInoutCheckService.java
@@ -81,7 +81,6 @@ arg.add(ContextUtil.getCompanyId()); arg.add(InoutConstant.TYPE_IN); arg.add(InoutConstant.RECORD_STATUS_ERROR); arg.add(InoutConstant.RECORD_STATUS_DEL); arg.add(InoutConstant.PROGRESS_RECORD); igds-inout/src/main/java/models/inout.model.xml
@@ -156,14 +156,6 @@ <Property></Property> <Property name="label">è¿è¾æ¹å¼</Property> </PropertyDef> <PropertyDef name="specType"> <Property></Property> <Property name="label">è§æ ¼</Property> </PropertyDef> <PropertyDef name="customerId"> <Property></Property> <Property name="label">徿¥åä½ID</Property> </PropertyDef> <PropertyDef name="customerName"> <Property></Property> <Property name="label">徿¥åä½</Property> @@ -178,26 +170,6 @@ <Property name="label">ç²®é£å¹´ä»½</Property> <Property name="required">true</Property> </PropertyDef> <PropertyDef name="impurity"> <Property name="dataType">Double</Property> <Property name="label">æè´¨</Property> <Property name="displayFormat">0.00 %</Property> </PropertyDef> <PropertyDef name="wet"> <Property name="dataType">Double</Property> <Property name="label">æ°´å</Property> <Property name="displayFormat">0.00 %</Property> </PropertyDef> <PropertyDef name="deImpurity"> <Property name="dataType">Double</Property> <Property name="label">æè´¨æ£é</Property> <Property name="displayFormat">0.0 KG</Property> </PropertyDef> <PropertyDef name="deWet"> <Property name="dataType">Double</Property> <Property name="label">æ°´åå¢é</Property> <Property name="displayFormat">0.0 KG</Property> </PropertyDef> <PropertyDef name="deHandle"> <Property name="dataType">Double</Property> <Property name="label">å¼ä»æ£é</Property> @@ -206,11 +178,6 @@ <PropertyDef name="deOther"> <Property name="dataType">Double</Property> <Property name="label">å ¶ä»æ£é</Property> <Property name="displayFormat">0.0 KG</Property> </PropertyDef> <PropertyDef name="deSum"> <Property name="dataType">Double</Property> <Property name="label">æ»æ£é</Property> <Property name="displayFormat">0.0 KG</Property> </PropertyDef> <PropertyDef name="fullWeight"> @@ -271,7 +238,7 @@ </PropertyDef> <PropertyDef name="completeTime"> <Property name="dataType">DateTime</Property> <Property name="label">宿æ¶é´</Property> <Property name="label">ç¦»åºæ¶é´</Property> <Property name="required">true</Property> </PropertyDef> <PropertyDef name="completeUser"> @@ -336,7 +303,7 @@ </PropertyDef> <PropertyDef name="foodLevel"> <Property></Property> <Property name="label">ç²®é£ç级</Property> <Property name="label">ç²®é£å®ç</Property> <Property name="mapping"> <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_LEVEL_")}</Property> <Property name="keyProperty">code</Property> @@ -345,23 +312,16 @@ </PropertyDef> <PropertyDef name="checkUser"> <Property></Property> <Property name="label">åéªäºº</Property> <Property name="label">è´¨æ£äºº</Property> </PropertyDef> <PropertyDef name="checkId"> <Property></Property> <Property name="label">åéªåå·</Property> </PropertyDef> <PropertyDef name="curStorage"> <Property name="dataType">double</Property> <Property name="label">å½ååºå</Property> </PropertyDef> <PropertyDef name="price"> <Property name="dataType">double</Property> <Property name="label">åä»·</Property> </PropertyDef> <PropertyDef name="settleMoney"> <Property name="dataType">double</Property> <Property name="label">ç»ç®éé¢</Property> <Property name="label">ç²®é£å®ä»·</Property> <Property name="displayFormat">#.00 å /å ¬æ¤</Property> </PropertyDef> <PropertyDef name="foodType"> <Property></Property> @@ -371,22 +331,73 @@ <Property></Property> <Property name="label">éç¥åç¼ç </Property> </PropertyDef> <PropertyDef name="noticeName"> <Property></Property> <Property name="label">éç¥å</Property> </PropertyDef> <PropertyDef name="price"> <Property name="dataType">Double</Property> <Property name="label">åä»·</Property> <Property name="displayFormat">#.00 å /å ¬æ¤</Property> </PropertyDef> <PropertyDef name="settleTag"> <Property></Property> <Property name="label">æ¯å¦ç»ç®</Property> </PropertyDef> <PropertyDef name="remarks"> <Property name="label">夿³¨è¯´æ</Property> </PropertyDef> <PropertyDef name="foodLocationId"> <Property></Property> <Property name="label">产å°å称代ç </Property> </PropertyDef> <PropertyDef name="checkTime"> <Property name="dataType">Date</Property> <Property name="label">è´¨æ£æ¶é´</Property> </PropertyDef> <PropertyDef name="sampleUser"> <Property></Property> <Property name="label">æ¦æ ·äºº</Property> </PropertyDef> <PropertyDef name="sampleTime"> <Property name="dataType">Date</Property> <Property name="label">æ¦æ ·æ¶é´</Property> </PropertyDef> <PropertyDef name="sampleType"> <Property></Property> <Property name="label">æ¦æ ·æ¹å¼</Property> </PropertyDef> <PropertyDef name="deCheck"> <Property name="dataType">double</Property> <Property name="label">è´¨æ£æ£é</Property> <Property name="displayFormat">0.0 KG</Property> </PropertyDef> <PropertyDef name="addCheck"> <Property name="dataType">double</Property> <Property name="label">è´¨æ£å¢é</Property> <Property name="displayFormat">0.0 KG</Property> </PropertyDef> <PropertyDef name="jjlx"> <Property></Property> <Property name="label">æ£æ¤ç±»å</Property> </PropertyDef> <PropertyDef name="dePackage"> <Property name="dataType">double</Property> <Property name="label">å è£ æ£é</Property> <Property name="displayFormat">0.0 KG</Property> </PropertyDef> <PropertyDef name="deOtherInfo"> <Property></Property> <Property name="label">å ¶ä»æ£éåå </Property> </PropertyDef> <PropertyDef name="settleId"> <Property></Property> <Property name="label">ç»ç®åå·</Property> </PropertyDef> <PropertyDef name="bzw"> <Property></Property> <Property name="label">å è£ ç©</Property> </PropertyDef> <PropertyDef name="dbz"> <Property name="dataType">Double</Property> <Property name="label">åå é</Property> <Property name="displayFormat">0.0 KG</Property> </PropertyDef> <PropertyDef name="bzbjs"> <Property name="dataType">int</Property> <Property name="label">å ä»¶æ°</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">Date</Property> <Property name="label">æ°æ®æ´æ°æ¶é´</Property> </PropertyDef> </DataType> <DataType name="dtInoutSettle"> <Property name="matchType">com.ld.igds.models.InoutSettle</Property> igds-inout/src/main/resources/mapper/InoutRecordMapper.xml
@@ -83,7 +83,6 @@ <if test="param.id != null and param.id != '' ">AND ID_ = #{param.id}</if> <if test="param.progress != null and param.progress != '' ">AND PROGRESS_ = #{param.progress}</if> AND PROGRESS_ != 'RECORD' AND RECORD_STATUS_ != 'ERROR' AND RECORD_STATUS_ != 'DEL' </where> </select> @@ -110,7 +109,6 @@ COMPLETE_TIME_ <![CDATA[ > ]]>#{param.start,jdbcType=TIMESTAMP} </if> AND PROGRESS_ = 'RECORD' AND RECORD_STATUS_ != 'ERROR' AND RECORD_STATUS_ != 'DEL' ORDER BY COMPLETE_TIME_ </where> @@ -156,7 +154,6 @@ COMPLETE_TIME_ <![CDATA[ < ]]>#{param.end,jdbcType=TIMESTAMP} </if> </where> AND RECORD_STATUS_ != 'ERROR' AND RECORD_STATUS_ != 'DEL' ORDER BY COMPLETE_TIME_ DESC LIMIT 1 @@ -171,7 +168,7 @@ <if test="param.intelCard != null and param.plateNum != null"> AND ( INTEL_CARD_ = #{param.intelCard} OR PLATE_NUM_ = #{param.plateNum} ) </if> and PROGRESS_ <> 'RECORD' and RECORD_STATUS_ != 'DEL' and RECORD_STATUS_ != 'ERROR' and PROGRESS_ <> 'RECORD' and RECORD_STATUS_ != 'DEL' </where> </select> @@ -189,16 +186,16 @@ <update id="inoutStop" parameterType="com.ld.igds.inout.dto.InoutParam"> update D_INOUT_RECORD <set> RECORD_STATUS_ ='ERROR', PROGRESS_ = 'RECORD', <if test="param.recordStatus != null and param.recordStatus != '' ">RECORD_STATUS_ = #{param.recordStatus},</if> <if test="param.checkStatus != null and param.checkStatus != '' ">CHECK_STATUS_ = #{param.checkStatus},</if> <if test="param.msg != null and param.msg != '' ">REMARKS_ = concat(REMARKS_,#{param.msg})</if> </set> <where> <if test="param.companyId != null and param.companyId != '' ">COMPANY_ID_ = #{param.companyId}</if> <if test="param.id != null and param.id != '' ">AND ID_ = #{param.id}</if> </where> <where> COMPANY_ID_ = #{param.companyId}, AND ID_ = #{param.id} </where> </update> @@ -476,7 +473,6 @@ and TYPE_ = #{param.type} and COMPANY_ID_ = #{param.companyId} and RECORD_STATUS_ != 'DEL' and RECORD_STATUS_ != 'ERROR' </update> <!-- æ¥è¯¢æµç¨æªå®æçæµæ°´ä¿¡æ¯ --> @@ -505,7 +501,6 @@ AND RECORD_STATUS_ != 'DEL' AND PROGRESS_ != 'RECORD' AND PROGRESS_ != 'PAY' AND RECORD_STATUS_ != 'ERROR' </select> @@ -517,7 +512,6 @@ where PROGRESS_ = 'RECORD' AND RECORD_STATUS_ != 'DEL' AND RECORD_STATUS_ != 'ERROR' <if test="param.type != null and param.type != ''">AND TYPE_ = #{param.type}</if> <if test="param.companyId != null and param.companyId != ''">AND COMPANY_ID_ = #{param.companyId}</if> <if test="param.deptId != null and param.deptId != ''">AND DEPT_ID_ = #{param.deptId}</if> @@ -542,7 +536,6 @@ AND TYPE_ = #{param.type} AND (PLATE_NUM_ = #{param.plateNum} or INTEL_CARD_ = #{param.intelCard}) AND PROGRESS_ != 'RECORD' AND RECORD_STATUS_ != 'ERROR' AND RECORD_STATUS_ != 'DEL' <if test="param.start != null"> AND REGISTER_TIME_ <![CDATA[ > ]]> #{param.start,jdbcType=TIMESTAMP}