|
|
@@ -1,17 +1,26 @@
|
|
|
package com.uas.eis.serviceImpl;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+import javax.servlet.http.HttpUtils;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.uas.eis.core.support.TokenHandler;
|
|
|
import com.uas.eis.dao.BaseDao;
|
|
|
import com.uas.eis.service.UserService;
|
|
|
+//import com.uas.erp.core.BaseUtil;
|
|
|
+
|
|
|
+import com.uas.eis.utils.BaseUtil;
|
|
|
+import com.uas.erp.core.support.SystemSession;
|
|
|
|
|
|
import net.sf.json.JSONObject;
|
|
|
+//import com.uas.erp.service.prodInOutService;
|
|
|
|
|
|
@Service
|
|
|
public class UserServiceImpl implements UserService {
|
|
|
@@ -31,6 +40,80 @@ public class UserServiceImpl implements UserService {
|
|
|
System.out.println("uuuu...........");
|
|
|
return baseDao.getJdbcTemplate().queryForMap("select em_auditman from employee where em_name = ?",username);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 出入库单审核接口
|
|
|
+ *
|
|
|
+ * @param id
|
|
|
+ * @param piclass
|
|
|
+ * 单据主表id
|
|
|
+ * 单据类型piclass
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void ProdInOutAuidted(int id,String piclass) {
|
|
|
+ Map<Object, Object> store = new HashMap<Object, Object>();
|
|
|
+ //传入查询code、单据ID传回单据主从表信息Map
|
|
|
+ if (piclass=="采购验收单"||piclass=="委外验收单"){
|
|
|
+ //云顶插入采购/委外验收单接口
|
|
|
+ }
|
|
|
+ if (piclass=="采购验退单"||piclass=="委外验退单"){
|
|
|
+ //云顶插入采购/委外验退单接口
|
|
|
+ }
|
|
|
+ if (piclass=="拨出单"){
|
|
|
+ //云顶插入拨出单接口
|
|
|
+ }
|
|
|
+ if (piclass=="其他入库单"){
|
|
|
+ //云顶插入其他入库单接口
|
|
|
+ }
|
|
|
+ if (piclass=="其他出库单"){
|
|
|
+ //云顶插入其他出库单接口
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 出入库单云顶数据中心传UAS过账接口
|
|
|
+ *
|
|
|
+ * @param Store
|
|
|
+ * 单据编号,类型等Json数据 Store
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void ProdInOutPOST(String Store) {
|
|
|
+ com.alibaba.fastjson.JSONObject json = JSON.parseObject(Store);
|
|
|
+ String Code=json.getString("xxxxxx").toString();
|
|
|
+ String Piclass=json.getString("xxxxxx").toString();
|
|
|
+ String Caller= String.valueOf(baseDao.getFieldDataByCondition("Form", "FO_CALLER", "FO_TITLE=" + Piclass));
|
|
|
+ int piid= Integer.valueOf(String.valueOf(baseDao.getFieldDataByCondition("ProdInOut", "pi_id", "pi_inoutno=" + Code+"and pi_class="+Piclass)));
|
|
|
+ Map<String, Object> map = new HashMap<String, Object>();
|
|
|
+ map.put("id", piid);
|
|
|
+ map.put("caller", Caller);
|
|
|
+ //调用出入库单过账的action(/scm/reserve/postProdInOut.action),返回过账是否成功
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 销售订单云顶数据中心传UAS并生成一张已过账销售出货单接口
|
|
|
+ *
|
|
|
+ * @param Store
|
|
|
+ * 销售订单主从表Json数据 Store
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void Salereceive(String Store) {
|
|
|
+ com.alibaba.fastjson.JSONObject json = JSON.parseObject(Store);
|
|
|
+ Map<String, Object> njson=BaseUtil.jsonToMap(json, keyMap);
|
|
|
+ int id= Integer.valueOf(String.valueOf(baseDao.getFieldDataByCondition("dual", "sale_seq.nextval", "1=1")));
|
|
|
+ njson.put("sa_id", id);
|
|
|
+
|
|
|
+ Map<String, Object> map = new HashMap<String, Object>();
|
|
|
+ //调用出入库单过账的action(/scm/reserve/postProdInOut.action)
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
@Cacheable(value="userEnableCache")
|