|
@@ -9,6 +9,8 @@ import javax.jws.WebService;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
|
|
+import org.springframework.data.domain.Sort;
|
|
|
|
+import org.springframework.data.domain.Sort.Direction;
|
|
import org.springframework.data.jpa.domain.Specification;
|
|
import org.springframework.data.jpa.domain.Specification;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -21,6 +23,7 @@ import com.jtgh.yjpt.common.Utils;
|
|
import com.jtgh.yjpt.controller.BaseController;
|
|
import com.jtgh.yjpt.controller.BaseController;
|
|
import com.jtgh.yjpt.entity.BaseEntity;
|
|
import com.jtgh.yjpt.entity.BaseEntity;
|
|
import com.jtgh.yjpt.entity.auth.UserEntity;
|
|
import com.jtgh.yjpt.entity.auth.UserEntity;
|
|
|
|
+import com.jtgh.yjpt.entity.common.AccessoryEntity;
|
|
import com.jtgh.yjpt.entity.jyr.BwEntity;
|
|
import com.jtgh.yjpt.entity.jyr.BwEntity;
|
|
import com.jtgh.yjpt.entity.jyr.JyrEntity;
|
|
import com.jtgh.yjpt.entity.jyr.JyrEntity;
|
|
import com.jtgh.yjpt.entity.jyrxxgl.JyrckxxEntity;
|
|
import com.jtgh.yjpt.entity.jyrxxgl.JyrckxxEntity;
|
|
@@ -223,6 +226,21 @@ public class JyrxxglWebService extends BaseController {
|
|
if (zsEntities.size() > 0) {
|
|
if (zsEntities.size() > 0) {
|
|
ryjbxxEntity.setFirstZs(zsEntities.get(0));
|
|
ryjbxxEntity.setFirstZs(zsEntities.get(0));
|
|
}
|
|
}
|
|
|
|
+ List<PredicateModel> filterList2 = new ArrayList<PredicateModel>();
|
|
|
|
+ addNotEmptyModel(filterList2, "entityType.id", Constants.FJSSLX_RYJBXX,
|
|
|
|
+ Operator.EQ);
|
|
|
|
+ addNotEmptyModel(filterList2, "recordStatus",
|
|
|
|
+ BaseEntity.RECORD_STATE_DELETE, Operator.NEQ);
|
|
|
|
+ addNotEmptyModel(filterList2, "entityId",ryjbxxEntity.getId(), PredicateModel.Operator.EQ);
|
|
|
|
+ Specification<AccessoryEntity> accSpec = SpecificationCreater
|
|
|
|
+ .searchByPredicateModels(filterList2);
|
|
|
|
+ Sort s = new Sort(Direction.DESC, "id");
|
|
|
|
+ List<AccessoryEntity> accList = accessoryService.findAll(accSpec,s);
|
|
|
|
+ if (accList != null && accList.size() > 0) {
|
|
|
|
+ AccessoryEntity acc = new AccessoryEntity();
|
|
|
|
+ acc.setId(accList.get(0).getId());
|
|
|
|
+ ryjbxxEntity.setZp(acc);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return pageList.getContent();
|
|
return pageList.getContent();
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|