瀏覽代碼

git-svn-id: https://192.168.57.71/svn/jsgkj@522 931142cf-59ea-a443-aa0e-51397b428577

ld_liufl 9 年之前
父節點
當前提交
edbd14dc8d

+ 6 - 2
gkaq/yjpt-java/trunk/java_src/com/jtgh/yjpt/webService/jyrjcxx/ryqk/RyqkxxWebService.java

@@ -1,15 +1,18 @@
 package com.jtgh.yjpt.webService.jyrjcxx.ryqk;
 
+import java.util.ArrayList;
 import java.util.List;
 
 import javax.jws.HandlerChain;
 import javax.jws.WebService;
+import javax.persistence.criteria.Predicate;
 
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import com.jtgh.yjpt.common.Constants;
 import com.jtgh.yjpt.common.GlobalData;
+import com.jtgh.yjpt.entity.cbzyhwsb.BzhwzjxxEntity;
 import com.jtgh.yjpt.entity.jyrxxgl.RyjbxxEntity;
 import com.jtgh.yjpt.entity.jyrxxgl.RyjbxxZSEntity;
 import com.jtgh.yjpt.service.jyrxxgl.RyjbxxService;
@@ -44,17 +47,18 @@ public class RyqkxxWebService {
 	/**
 	 * 外部调用
 	 */
+	@SuppressWarnings("unchecked")
 	public RyjbxxEntity saveData(RyjbxxEntity ryjbxxEntity,
 			List<RyjbxxZSEntity> zsList) {
 		ryjbxxEntity.setAddUser(GlobalData.TB_USER);
 		ryjbxxEntity.setUpdateUser(GlobalData.TB_USER);
 		ryjbxxEntity.setTbzt(Constants.NO);
 		for(RyjbxxZSEntity entity:zsList){
-			entity.setAddUser(GlobalData.TB_USER);
+			entity.setAddUser(GlobalData.TB_USER);  
 			entity.setUpdateUser(GlobalData.TB_USER);
 			entity.setTbzt(Constants.NO);
 		}
-		service.save(ryjbxxEntity, zsList, null,"tb");
+		service.save(ryjbxxEntity, zsList,new ArrayList<RyjbxxZSEntity>(),"tb");
 		return service.save(ryjbxxEntity);
 	}
 	/**